Value in an array for 2 matching arrays
and gets a value in memory . Whenever the price is above the moving average, and the previous price has open and close on upper and lower to the moving average 100 , it stores the MA 100 value for the Bar in an array . The second indicator launches the confirmation and the buy order is sent . How to store the MA 100 for the most current bar where the price is above the MA 100 ? The expert has two choice : storing the indicated value or set it to 0 .
How to fix this ?
Thank you
I have tried this EA :
The EA indicates 500 after the 10th value . How to get the value of MA 100 stored for the last occurence of the Bar Shift on an array?will have to set this for the next EA