Here is the idea :
"from the open to the close of each Bar ":
Up=0;
Dn=0; //reset upticks/downticks
Value1 = Close[0];
if (Value1>Close[1])
Up=Up+1;//count upticks
if (Value1<Close[1])
Dn=Dn+1;//count downticks
The thing is I don't know how to translate this idea "from the open to the close of each Bar ". My guess is that I should use the OnMarketData() method but I'm not sure.
Can anyone help ?
Comment