Hi all, this could go in indicators, correct me if I’m wrong and put it there – but I use it in probacktest.
I am having a problem with this indicator here:
timeframe (3 month)
QO = open
timeframe (1 month)
MO = open
timeframe (1 week)
WO = open
timeframe (1 day)
DayO = open
timeframe (default)
if close>QO and close>MO and close>WO and close>DayO then
num=1
else
num=0
endif
return num
The above works fine – if I have up to 3,000 units selected.
If I go over 3,000 units, the following error is displayed – see pic.
If i put the code into probacktest to use as a condition, it doesn’t throw an error and I can test on 100k units – the error only comes up when it is displayed as a separate indicator, as per above.
How can I get this indicator to work – would be good to have.
Thanks,
Finning.
I have no problem with that code. What is the timeframe used and instrument please?
Hi Nicolas,
I just tried to re-run the code and got the same error.
I tried it on AUDUSD mini, timeframe 1 hour, 100k units.
Thanks,
Finning.
It works on US Tech 100 Cash (1€), but not on US Tech 100 Cash (100$).
It seems to be working on most Indeces, Gold,…. but not on currencies.