Simple Coding Help - No Promise.

PHP:
_SECTION_BEGIN("multiple timeframe");

n=Param("TM",1,1,60,1);
n_open = TimeFrameGetPrice("O",n*in1Minute,0,expandPoint); 
n_high = TimeFrameGetPrice("H",n*in1Minute,0,expandPoint); 
n_low = TimeFrameGetPrice("L",n*in1Minute,0,expandPoint); 
n_close = TimeFrameGetPrice("C",n*in1Minute,0,expandPoint); 


PlotOHLC(n_open,n_high,n_low,n_close,"TM",colorBlack,styleCandle);

_SECTION_END();
got this code which is multi timframe in same chart but in different panes , but when i change any chart timeframe of suppose total 3 charts , all 3 timeframe changes to new timeframe ..............how to use it

please help

PHP:
SetChartBkGradientFill(colorWhite,colorLightGrey,colorWhite);
Period= ParamList("Base","Monthly|Weekly|Daily|Hourly|15Minute|5Minute|1Minute",0);

if(Period=="Monthly"){
 TimeFrameSet(inMonthly);
PlotOHLC(Open, High, Low, Close, "Monthly Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="Weekly"){
TimeFrameSet(inWeekly);
PlotOHLC(Open, High, Low, Close, "weekly Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="Daily"){
TimeFrameSet(inDaily);
PlotOHLC(Open, High, Low, Close, "Daily Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="Hourly"){
 TimeFrameSet(inHourly);
PlotOHLC(Open, High, Low, Close, "Hourly Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="15Minute"){
 TimeFrameSet(in15Minute);
PlotOHLC(Open, High, Low, Close, "15Minute Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="5Minute"){
 TimeFrameSet(in5Minute);
PlotOHLC(Open, High, Low, Close, "5Minute Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="1Minute"){
 TimeFrameSet(in1Minute);
PlotOHLC(Open, High, Low, Close, "1Minute Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
same is the case is with this code too...........please help to use them:thumb::thumb:
 

amsin21

Well-Known Member
PHP:
_SECTION_BEGIN("multiple timeframe");

n=Param("TM",1,1,60,1);
n_open = TimeFrameGetPrice("O",n*in1Minute,0,expandPoint); 
n_high = TimeFrameGetPrice("H",n*in1Minute,0,expandPoint); 
n_low = TimeFrameGetPrice("L",n*in1Minute,0,expandPoint); 
n_close = TimeFrameGetPrice("C",n*in1Minute,0,expandPoint); 


PlotOHLC(n_open,n_high,n_low,n_close,"TM",colorBlack,styleCandle);

_SECTION_END();
got this code which is multi timframe in same chart but in different panes , but when i change any chart timeframe of suppose total 3 charts , all 3 timeframe changes to new timeframe ..............how to use it

please help

PHP:
SetChartBkGradientFill(colorWhite,colorLightGrey,colorWhite);
Period= ParamList("Base","Monthly|Weekly|Daily|Hourly|15Minute|5Minute|1Minute",0);

if(Period=="Monthly"){
 TimeFrameSet(inMonthly);
PlotOHLC(Open, High, Low, Close, "Monthly Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="Weekly"){
TimeFrameSet(inWeekly);
PlotOHLC(Open, High, Low, Close, "weekly Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="Daily"){
TimeFrameSet(inDaily);
PlotOHLC(Open, High, Low, Close, "Daily Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="Hourly"){
 TimeFrameSet(inHourly);
PlotOHLC(Open, High, Low, Close, "Hourly Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="15Minute"){
 TimeFrameSet(in15Minute);
PlotOHLC(Open, High, Low, Close, "15Minute Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="5Minute"){
 TimeFrameSet(in5Minute);
PlotOHLC(Open, High, Low, Close, "5Minute Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
if(Period=="1Minute"){
 TimeFrameSet(in1Minute);
PlotOHLC(Open, High, Low, Close, "1Minute Price Chart", colorBlack, style = styleCandle | styleOwnScale);
Plot(V,"Volume",colorWhite, styleHistogram);
}
same is the case is with this code too...........please help to use them:thumb::thumb:
If you change the interval using context menu (Right click > Intraday), all charts will have same interval. Instead use parameters to change the interval (Base = )
 

toocool

Well-Known Member
Is it possible to get crossovers of EMA's in higher timeframes to show as up and down arrows or +1 (for positive crossover) and - 1 (for negative crossover) on intraday charts?

For example same 2 ema crossover status on 1 hour, 4 hour, daily, weekly, monthly to be shown on intraday 15 minutes chart? I have seen it and know it's possible to implement

But can same be achieved for a developing EMA crossover where the EMA has crossed up or down but the time period candle is still not closed, for example 4hours or daily candle is still in progress and can it be shown on the 15 minutes chart?
 
hello


i need a scanner ( for amibroker ) when any scrip which forms a 3 /5 day higher-highs and higher lows consecutively.

and similarly lower high and lower low when any scrip forms a 3/5 day consecutively
 
Last edited:

toocool

Well-Known Member
Is it possible to get crossovers of EMA's in higher timeframes to show as up and down arrows or +1 (for positive crossover) and - 1 (for negative crossover) on intraday charts?

For example same 2 ema crossover status on 1 hour, 4 hour, daily, weekly, monthly to be shown on intraday 15 minutes chart? I have seen it and know it's possible to implement

But can same be achieved for a developing EMA crossover where the EMA has crossed up or down but the time period candle is still not closed, for example 4hours or daily candle is still in progress and can it be shown on the 15 minutes chart?
hi master coders

please guide , if showing , dynamic/developing crossover of higher time frame is possible on lower time frames ?

in form of up arrows /down arrows ...........or +1 and -1 1 for positive and negative crossovers ?
 

Similar threads