I want to calculate 1st one hour 915am to 1015 am fibonacci level. Can you please tell how i can do it in afl?
The code given on amibroker site is now displaying anything
tn = TimeNum(); // define start/end hours in TimeNum format StartTime = 93000; Endtime = 113000; // these conditions are true when TimeNum of the bar equals startime/endtime StartBar = tn == StartTime; EndBar = tn == Endtime; // on the end bar we read the value of highest high or lowest low since the start bar myH = ValueWhen( EndBar, HighestSince( StartBar, High ) ); myL = ValueWhen( EndBar, LowestSince( StartBar, Low ) ); // display price and high / low arrays Plot( Close, "Close", colorDefault, styleBar|styleThick ); Plot( myH, "myH", colorGreen, styleThick ); Plot( myL, "myL", colorRed, styleThick ); // grey lines show how highest high / lowest low develop since start bar Plot( HighestSince( StartBar, High ), "", colorgrey50 ); Plot( LowestSince( StartBar, Low ), "", colorgrey50 ); // area chart shows the zone we are reading our values from Plot( tn >= StartTime AND tn <= Endtime, "", ColorBlend( colorYellow, colorWhite, 0.9 ), styleArea | styleOwnScale, 0, 1, 0, -1);
.
This code is not displaying high low .I have copied from amibroker site. Please guide me .
Regards