Req:- Different Time Frame charts in panes on same screen?

pkgmtnl

Well-Known Member
#1
Can Any senior guide me to put syntax to add in AFL so that Differnt time frame charts are on same screen, in differnt panes.

This synatx did not worked, TimeFrameSet(inDaily); when I put it in chart when on 5min mode.

plz guide
 
Last edited:

hitesh

Active Member
#2
Can Any senior guide me to put syntax to add in AFL so that Differnt time frame charts are on same screen, in differnt panes.

This synatx did not worked, TimeFrameSet(inDaily); when I put it in chart when on 5min mode.

plz guide
This might be useful.

_SECTION_BEGIN("Daily Price Graph");
Dailyopen = TimeFrameGetPrice("O",inDaily);
Dailyhigh = TimeFrameGetPrice("H",inDaily);
Dailylow = TimeFrameGetPrice("L",inDaily);
DailyClose = TimeFrameGetPrice("C",inDaily);

DailyOpen = TimeFrameCompress(DailyOpen, inDaily );
DailyHigh = TimeFrameCompress( DailyHigh, inDaily );
DailyLow = TimeFrameCompress( DailyLow, inDaily );
DailyClose = TimeFrameCompress( DailyClose, inDaily );

PlotOHLC(DailyOpen,Dailyhigh,Dailylow,Dailyclose,"Daily",colorBlack,styleCandle);

Title = "Daily Chart, O:" + WriteVal(DailyOpen,1.2) + ", H:" + WriteVal(DailyHigh,1.2) + ", L:" + WriteVal(DailyLow,1.2) + ", C:" + WriteVal(Dailyclose,1.2);

_SECTION_END();
 

hitesh

Active Member
#3
Dear pkgmtnl,

_SECTION_BEGIN("15 Minutes Price Graph");
FMinuteopen = TimeFrameGetPrice("O",in15Minute);
FMinutehigh = TimeFrameGetPrice("H",in15Minute);
FMinutelow = TimeFrameGetPrice("L",in15Minute);
FMinuteClose = TimeFrameGetPrice("C",in15Minute);

FMinuteOpen = TimeFrameCompress(FMinuteOpen, in15Minute );
FMinuteHigh = TimeFrameCompress( FMinuteHigh, in15Minute );
FMinuteLow = TimeFrameCompress( FMinuteLow, in15Minute );
FMinuteClose = TimeFrameCompress( FMinuteClose, in15Minute );

PlotOHLC(FMinuteOpen,FMinutehigh,FMinutelow,FMinuteclose,"15 Minutes",colorBlack,styleCandle);

Title = "15 Minutes Chart, O:" + WriteVal(FMinuteOpen,1.2) + ", H:" + WriteVal(FMinuteHigh,1.2) + ", L:" + WriteVal(FMinuteLow,1.2) + ", C:" + WriteVal(FMinuteclose,1.2);

_SECTION_END();


_SECTION_BEGIN("Hourly Price Graph");
Hourlyopen = TimeFrameGetPrice("O",inHourly);
Hourlyhigh = TimeFrameGetPrice("H",inHourly);
Hourlylow = TimeFrameGetPrice("L",inHourly);
HourlyClose = TimeFrameGetPrice("C",inHourly);

HourlyOpen = TimeFrameCompress(HourlyOpen, inHourly );
HourlyHigh = TimeFrameCompress( HourlyHigh, inHourly );
HourlyLow = TimeFrameCompress( HourlyLow, inHourly );
HourlyClose = TimeFrameCompress( HourlyClose, inHourly );

PlotOHLC(HourlyOpen,Hourlyhigh,Hourlylow,Hourlyclose,"Hourly",colorBlack,styleCandle);

Title = "Hourly Chart, O:" + WriteVal(HourlyOpen,1.2) + ", H:" + WriteVal(HourlyHigh,1.2) + ", L:" + WriteVal(HourlyLow,1.2) + ", C:" + WriteVal(Hourlyclose,1.2);

_SECTION_END();

You should be in 5 minutes time frame.

For third graph of 5 minutes, you should use normal price afl.

Don't forget to remove space (if any) in the above afl (eg. Hourlyclo se)
 

singhboy

Active Member
#4
@hitesh, now pls help me too bro. There is a topic abt macd on diff time frames, i hav put my question there, pls solve mine prob too
 

hitesh

Active Member
#5
@hitesh, now pls help me too bro. There is a topic abt macd on diff time frames, i hav put my question there, pls solve mine prob too
Dear Singhboy,

You want exploration of " DI+ cross DI- on 3 mint chart, n stoch on 5-15 mint time frames is upside", right?

Little complicated, let me try it out, will reply in a day or two.

Hitesh.
 

singhboy

Active Member
#6
hi dear, i did a silly attempt to make this, pls check if its right, thnx
_SECTION_BEGIN("ADX");
// ADX/DMI Indicator
range = Param("Periods", 14, 2, 200, 1 );
Plot( ad = ADX(range), _DEFAULT_NAME(), ParamColor( "ADX color", colorBlue ), ParamStyle("ADX style", styleThick ) );
Plot( pd = PDI(range), "+DI", ParamColor( "+DI color", colorGreen ), ParamStyle("+DI style") );
Plot( md = MDI(range), "-DI", ParamColor( "-DI color", colorRed ), ParamStyle("-DI style") );
A= PDI(range);
b= MDI(range);

Buy= Cross(a,b)
AND ( TimeFrameSet( in15Minute ));
( StochK( 5,3) > StochD(5,3,3));
TimeFrameRestore();
( TimeFrameSet( in5Minute ));
( StochK( 5,3) > StochD(5,3,3));


Sell= Cross(b,a)
AND ( TimeFrameSet( in15Minute ));
( StochK( 5,3) < StochD(5,3,3));
TimeFrameRestore();
( TimeFrameSet( in5Minute ));
( StochK( 5,3) < StochD(5,3,3));



PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBlue,0,Graph1);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,Graph1);
Filter=(Volume>50000) AND (Buy OR Sell) AND (Close>200);
AddColumn(Close,"Close",1.4);
AddColumn(Buy,"buy",1.2);
AddColumn(Sell,"sell",1.2);
 

Similar threads