I have found a indicator on this website which provides previous day (or week / /month) high and low prices. I want to use this as the basis of creating my own EA to place buystops and sellstops at the previous day high and low.
The indicator shows the High, Close and Low of the previous day, week or month. These levels are very commonly used as support and resistance among traders, so the indicator will draw them and leave a gap between periods to make it easy to distinguish when a new one started. Update 1.1: Added some optimizations. Update 1.1.1: Fixed compilation...
I have found a indicator on this website which provides previous day (or week / /month) high and low prices. I want to use this as the basis of creating my own EA to place buystops and sellstops at the previous day high and low.
Link: https://www.mql5.com/en/code/14410
I can see the code I want to extract and connect to in my enter trade section (full code provided in the link):
In my enter trade section I have tried a variety of codes to link them for example: DayHigh = TempData.PeriodHigh etc.. which just returns 0.
The indicator codes looks very useful but can anyone help me use it to get the high low information to use as buy/sell stop process?