Need AFL Help me Friends

#1
Dear Friends n experts ..

i need AFL to plot line for high and low of Morning first 15 min candle ( mother candle ) if next 3 candles are inside 1st 15 min candle ..

pls share me AFL for above ...

Thanks in advance
 

travi

Well-Known Member
#4
Try this

_SECTION_BEGIN("15m range");

tn=TimeNum();

//define start/end hours in TimeNum format
StartTime= 91500;
Endtime = 93000;

StartBar = tn == StartTime;
EndBar = tn == Endtime;

myH = ValueWhen(EndBar,HighestSince(StartBar,High));
myL = ValueWhen(EndBar,LowestSince(StartBar,Low));

Plot(myH,"myH",colorGreen,styleThick);
Plot(myL,"myL",colorRed,styleThick);

_SECTION_END();
 
#5
Try this

_SECTION_BEGIN("15m range");

tn=TimeNum();

//define start/end hours in TimeNum format
StartTime= 91500;
Endtime = 93000;

StartBar = tn == StartTime;
EndBar = tn == Endtime;

myH = ValueWhen(EndBar,HighestSince(StartBar,High));
myL = ValueWhen(EndBar,LowestSince(StartBar,Low));

Plot(myH,"myH",colorGreen,styleThick);
Plot(myL,"myL",colorRed,styleThick);

_SECTION_END();





Thanks for ur contribution and help sir ...

Afl code is not ploting any lines ... it seems not working pls chk once sir..

thanks
 

rvlv

Active Member
#6
hI FRIEND
USE the following code
HTML:
SetChartOptions(1,chartShowArrows|chartShowDates);
Colorpetd = IIf(RSI(8)>50,colorPaleGreen,colorRed);
Plot( C, "Close", COLORPETD, styleBar, Null, Null, 0, 1, 4  );//5% THICKNESS OF BAR-SEE  LAST 4

_SECTION_BEGIN("15m range");



_SECTION_END(); 
NewDay = Day()!= Ref(Day(), -1);
Plot(NEWDAY ,"vertical line", colorBrightGreen, styleHistogram|styleOwnScale, 0, 1);

breakoutime = 093000;
SetChartBkColor(64);
afterbreakout0 = Cross(TimeNum( ),093000) ;
afterbreakout1 = TimeNum()>=093000;
NewDay = Day()!= Ref(Day(), -1);
highestoftheday = HighestSince( newday,H, 1);
Lowestoftheday =LowestSince( newday,L, 1);
ORBHigh = ValueWhen(afterbreakout0,highestoftheday,1);
ORBLow = ValueWhen(afterbreakout0,lowestoftheday,1);
ORBCOLOR =IIf(C>ORBHIGH,ColorRGB(30,150,50),IIf(C<ORBLOW,colorDarkRed,colorGrey50));
Plot(ORBHigh, "",colorGreen, styleDots) ;
Plot(ORBLow, "",colorRed, styleDots) ;
 

Similar threads