i´m trying to program Opening Range breakout strategy, which contains the following conditions:
- Trend Indicators on the Daily Chart
- customized Opening Range on a 15 Min Chart
Since i´m right at the start and I need to do some experiments on this topic, i´ll leave this Trend Indicators on Daily for later programming sessions, but i now have a problem on constructing the opening range on a 15 min chart.
i use the predefined CurrentDayOHL indicator for calculating the open of the session and i want to add and subtract certain numbers to/from the open.
However, it is impossible to use"+" and "-" with strings and a bolean or a double, lets say. The only thing, thats possible, is comparing strings.
So I tried for example
if (Close[0]> CurrentDayOHL.CurrentOpen[0]+ATR(periods))
as a condition, but this will give me a compiling errorcode.
How do I overcome this problem??
I´m not a programmer and i also tried it via the wizzard, but it also looks like it isn´t possible
Thanks alot for your help


Comment