screener and array
Forums › ProRealTime English forum › ProScreener support › screener and array
- This topic has 13 replies, 2 voices, and was last updated 4 years ago by
Robb.
-
-
01/02/2021 at 9:39 PM #156021
Hello,
I built an indicator that return one value only, such as a price level.
This indicator has several arrays in it.
Then I called this indicator in a new screener, in this way:
12345myValue = CALL "myIndicator" //(myIndicator hasn't got any parameter)ind = myValue > lowest[20](low) //(of course this is only a test in order to be sure I'll get some results)screener[ind]Unfortunately I don’t get any results, although I know there are.
In my opinion, there’s something does not work properly in the function CALL…And I think this is because in myIndicator there are some arrays, and Prorealtime is not able to deal with them with a screener, yet.
Can anyone help me on that, and tell me if my feeling is correct or not.
Thank you
Roberto
01/02/2021 at 10:22 PM #15602401/02/2021 at 10:24 PM #15602601/02/2021 at 11:14 PM #156029Hello Vonasi,
Thanks for tiding up my post.
Unfortunately I don’t get your point. I have other CALL instructions, I made some tests. They work without any parameter (because the indicator doesn’t have any) and without any (close) at the end the function CALL (if this is what you refer to).
My indicator is quite complex and I don’t want to paste it in this post. But the outcome from the return function is just a price level (just imagine a resistance or support level).
So please could you explain me better your answer.
01/02/2021 at 11:27 PM #15603001/03/2021 at 9:58 AM #156049I got a message error saying
“The function “myIndicator” recall in “myScreener” is called with 1 parameter instead of zero foreseen.
I put myValue = CALL “myIndicator”[close] as you suggested, but since myIndicator does not have any parameter, it does not work again.
Any suggestion?
thank you
01/03/2021 at 10:12 AM #156054I tried to copy&paste in the screener the entire indicator code too, avoiding the call function, but some errors come out when the program meet the arrays in the code.
That’s why I suppose the problem is related to the array in the code….
01/03/2021 at 12:32 PM #156071Sorry – I deleted my last post as Roberto pointed out a typo on the screener line so the test and workaround was invalid. It seems that it is not possible to call an indicator which includes arrays from a screener. That seems odd as although they are different engines I’d have thought that a returned value from ProBuilder was a returned value whether it came via arrays or not.
01/03/2021 at 1:17 PM #156077Yes it seems so, also because in myIndicator code, the return value was already a variable and not the array itself (at a certain point there’s the association x = $myarray etc … return x).
So Vonasi, there’s a bug in the software? Any possibility to work it out?
thanks
01/03/2021 at 3:14 PM #156095There is no workaround I’m afraid. It is an incompatibility issue between the ProScreener engine and the ProBuilder engine. I believe there are plans in the pipeline to update ProScreener to bring it more in line with ProBuilder and ProOrder – so we will just have to wait for that before being able to access arrays via it.
01/03/2021 at 5:31 PM #156109thank you for the support, unfortunately this is a very sad news and I am also very disappointed to know that after spending many hours in coding my indicator….
- It would be possible to be informed as soon as the new development will be available?
- Are there any ways to speed it up?
And now, what do you suggest, to modify the indicator code and replace the arrays with standard instructions?
Regards
01/03/2021 at 6:02 PM #156112Hello Vonasi
maybe you can help me again, because I am pretty sure there should be a standard routine for having the same behaviour of an array.
Let’s imagine I have 3 variables: A, B and C. Based on a certain condition, when met, I store the value (eg the close) in A.
When A, B and C are full, I start again with A and so forth.
Hope it’s clear.
thanks
01/03/2021 at 10:29 PM #156127It would be possible to be informed as soon as the new development will be available? Are there any ways to speed it up? And now, what do you suggest, to modify the indicator code and replace the arrays with standard instructions? Regards
- I don’t work for PRT. I just help moderate these forums and offer assistance where I think I might be able to help so I have no way of informing you of progress. Nicolas gets regular info and updates from PRT so I am sure he will let everyone know as soon as ProScreener is improved or updated.
- To try to speed things up send reports and requests to PRT or use the suggestions topic in the ProRealTime Platform Support forum.
- Without the indicator code it is impossible to tell you how to adapt it so as to use standard variables and not arrays. I imagine that if it uses arrays that is so as to do something that is impossible without using them or to massively speed up an indicator that would take an eternity to calculate a result without them.
01/03/2021 at 10:56 PM #156129 -
AuthorPosts
Find exclusive trading pro-tools on