hello sir..
I want to plot 1st one hour candle Fibonacci level 9:15 am to 10:15am
please guide me .
following afl's are not displaying anything
1.//
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);
Source:- Amibroker.com
2//
OST=091500; //Observation Start Time
OET=101500; //Observation End Time
MET=153000; //Market End Time
Currtime =TimeNum(); //get current time
ob_end = Cross(TimeNum(),OET); //detect the observation end time
ob_st = Cross(TimeNum(),OST); //detect the observation start time
Highest_since = HighestSince(ob_st,H,1); //capture the 1 hour high
Lowest_since = LowestSince(ob_st,L,1); //capture the 1 hour low
ORBH = ValueWhen(ob_end ,Highest_since,1); //
ORBL = ValueWhen(ob_end ,Lowest_since,1);
Plot(ORBH,"",colorGreen,styleDots);
Plot(ORBL,"",colorBlue,styleDots);
_SECTION_END();
Source:- Marketcalls.com
I will be really thankfull to you.
Reagards
I want to plot 1st one hour candle Fibonacci level 9:15 am to 10:15am
please guide me .
following afl's are not displaying anything
1.//
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);
Source:- Amibroker.com
2//
OST=091500; //Observation Start Time
OET=101500; //Observation End Time
MET=153000; //Market End Time
Currtime =TimeNum(); //get current time
ob_end = Cross(TimeNum(),OET); //detect the observation end time
ob_st = Cross(TimeNum(),OST); //detect the observation start time
Highest_since = HighestSince(ob_st,H,1); //capture the 1 hour high
Lowest_since = LowestSince(ob_st,L,1); //capture the 1 hour low
ORBH = ValueWhen(ob_end ,Highest_since,1); //
ORBL = ValueWhen(ob_end ,Lowest_since,1);
Plot(ORBH,"",colorGreen,styleDots);
Plot(ORBL,"",colorBlue,styleDots);
_SECTION_END();
Source:- Marketcalls.com
I will be really thankfull to you.
Reagards