Hello
I am starting to learn JForex, working my way through Youtube instructional videos. I want to start designing simple strategies but I am running into a topic which I haven't been able to find on the forum. Today Daily Range
Perhaps I am asking too early in my learning curve, but as part of a strategy I would like only commence if the current daily range is at least a certain size, eg 50 pips, to keep the strategy from activating trade entry conditions in periods of low volatility, ie typical Asian session or into a low volatility Euro session and so forth.
I could not find any pre-built TDR like I have on MT4/5, so I guess I will have to build one.
If we define the day starting at GMT 2100, I need to calculate the highest-high and lowest-low since this period, running this through the day, subtracting the low from the high to get the range, until it resets to 0 at the next GMT 2100.
From this thread I have a glimpse of an idea how it may be achieved:
https://www.dukascopy.com/swiss/english ... nge#p84892 I see a Highest-High to Lowest Low counter for 5 bars, but how add to this bar counter, so that working from a default period of M15, the counter for bars starts at 0, then 1 after 2115, 2 after 2130 up to 95 bars in the new days 2045?
Then I can subtract lowest low from highest high to get the current daily range (up to the last M15 bar at least), then an IF statement that if TDR > 50 then proceed.
Can someone let me know if I am on the right track, and any tips on the bar counter, but also let me know if this is the most efficient way to achieve the result or is there a better one?
Thanks
LiamsDad