Hi All members,
When I plot last month's Open, High Low Close lines on the chart, it shrinks the candle size so much that it really makes hard to find if the prices are moving or now.
Please help me so that i can adjust the chart settings to the normal.
It is not necessary that all the four lines should be visible on the chart. only the lines near the current candle should be visible.
I have attached the image one with lines n other without it. see the candle sizes difference with the same stock price .
Thanks all.
//AFL
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBrightGreen ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("PreDay HLC");
function CDL( array )
{
doy = DayOfYear();
Lastdoy = doy == LastValue( doy );
Dayline = array * Lastdoy;
return IIf( Dayline, Dayline, Null );
}
//TIME FRAME CALCULATION
MH1 = TimeFrameGetPrice( "H", inMonthly, -1 ); // yesterdays high
ML1 = TimeFrameGetPrice( "L", inMonthly, -1 ); // low
MC1 = TimeFrameGetPrice( "C", inMonthly, -1 ); // close
MO1 = TimeFrameGetPrice( "O", inMonthly, -1 ); // close
DayO = TimeFrameGetPrice( "-1", inDaily ); // current day open
//PLOTS
Plot( cdl( MH1 ), "", colorBrightGreen, styleLine + styleDashed + styleNoRescale);
Plot( cdl( ML1 ), "", colorRed, styleLine + styleDashed);
Plot( cdl( MC1 ), "", colorWhite, styleLine + styleNoRescale + styleDashed);
Plot( cdl( MO1 ), "", colorWhite, styleLine + styleNoRescale + styleDashed);
_SECTION_END();
When I plot last month's Open, High Low Close lines on the chart, it shrinks the candle size so much that it really makes hard to find if the prices are moving or now.
Please help me so that i can adjust the chart settings to the normal.
It is not necessary that all the four lines should be visible on the chart. only the lines near the current candle should be visible.
I have attached the image one with lines n other without it. see the candle sizes difference with the same stock price .
Thanks all.
//AFL
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBrightGreen ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("PreDay HLC");
function CDL( array )
{
doy = DayOfYear();
Lastdoy = doy == LastValue( doy );
Dayline = array * Lastdoy;
return IIf( Dayline, Dayline, Null );
}
//TIME FRAME CALCULATION
MH1 = TimeFrameGetPrice( "H", inMonthly, -1 ); // yesterdays high
ML1 = TimeFrameGetPrice( "L", inMonthly, -1 ); // low
MC1 = TimeFrameGetPrice( "C", inMonthly, -1 ); // close
MO1 = TimeFrameGetPrice( "O", inMonthly, -1 ); // close
DayO = TimeFrameGetPrice( "-1", inDaily ); // current day open
//PLOTS
Plot( cdl( MH1 ), "", colorBrightGreen, styleLine + styleDashed + styleNoRescale);
Plot( cdl( ML1 ), "", colorRed, styleLine + styleDashed);
Plot( cdl( MC1 ), "", colorWhite, styleLine + styleNoRescale + styleDashed);
Plot( cdl( MO1 ), "", colorWhite, styleLine + styleNoRescale + styleDashed);
_SECTION_END();
Last edited: