How should I change this code ?
privateint period = myinput;
double myHigh1=MAX(High,period)[0];
double myLow1=MIN(Low,period)[0];
bullishthrust.Set((3*Close[0]-2*myLow1-Open[period])/Close[0]*100);
bearishthrust.Set((Open[period]+2*myHigh1-3*Close[0])/Close[0]*100);
My guess is that I should a condition that wouuld substract the range between the close of the last session bar and the open of the current session bar when the session begins but I don't know how to do.
May someone help ?
Comment