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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
timeframe(3month)
QO=open
timeframe(1month)
MO=open
timeframe(1week)
WO=open
timeframe(1day)
DayO=open
timeframe(default)
ifclose>QOandclose>MOandclose>WOandclose>DayOthen
num=1
else
num=0
endif
returnnum
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.