Can someone help me to find a way to creat a script that can:
Plot the value of the difference between
1) a Condition met and 2) the last time that Condition was also met in the past?
Here is a very simplistic example of what I would like to do.
Condition set
If Close [0] < Open [0]
&& Close [1] > Open[1]
&& Close [2] > Open[2]
Then
Plot the value of the difference between
Close[0]
And
Close[i]
... Where Close[i] is
The Value of the Close when that same condition was met last in the past. One or even several Bars Ago.
Close [i] < Open [i]
&& Close [i1] > Open[i1]
&& Close [i2] > Open[i2]
Thanks in advance
H
Comment