I have two moving averages.
When the fast MA crosses above the slower, I save the open of the bar on which the cross has happened in the Series<T> as followed:
myOpen[0] = Open[0];
the faster MA crosses AGAIN above the slower one and I save the open of the bar on which the cross has occured again in:
myOpen[0] = Open[0];
If(myOpen[0] > myOpen[1])
{
DrawArrow();
}
Unfortunatelly, everytime the fast MA crosses above, I am seeing the arrow, and this is not what I expect.
Finally, I have the following code:
private Series<double> myOpen; if(MAFast[1] < MASlow[1] && MAFast[0] > MASlow[0]) { myOpen[0] = Open[0]; } if(myOpen[0] > myOpen[1]) { DrawArrow(); }
Many thanks in advance!

Comment