Storing previous signal in a buffer.

To add comments, please log in or register
killerkitten
176
killerkitten  

Helllo All,

 

I am working on an indicator (and also VERY new to MT4 programming).

The concept of the indicator is to find break out opportunities, after which a signal is sent out via a buffer to be fed to a possible EA.

Now the problem I have is that when a new signal is identified (using certain criteria), say the signal n+1, the indicator looks at the maximum and minimum excursion of the market for the PREVIOUS SIGNAL (signal n) to plot out trend lines showing these two value in the chart is attached to. This of course cannot be done until the signal n+1 is received. Also the indicator classifies the signal as buy or sell only when n+1 is received. So the problem I have is that I need to store whether the signal n was a buy or sell so that when n+1 signal is received, the indicator draw the trend lines according to whether the signal was sell or buy.

I hope I am making sense.

 

Thank you all

To add comments, please log in or register