I am trying to save the value of a bar such as Low[0], and to be able to use it in the future.
Here is what I have done:
doubleLow;
bool breakh = false;
If (EMA(Close, 5) > EMA(Close, 7))
{
doubleLow = Low[0] ;
breakh = true;
}
At this point, the low of the bar where the crossover occurred is saved in doubleLow. The prices moved up for a certain period of time (the time span is not important here) and finally drop and close below doubleLow. Here, I do the math as follow:
If(Low[0] < doubleLow && breakh)
{doTheMath;}
I would appreciate any help.

Comment