Amibroker Chart settings:

#1
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();
 
Last edited:

amitrandive

Well-Known Member
#2
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() );
_.
.
.

Try this


www.wisesto cktra der.com/indicators/1686-essential-trader-tool(remove spaces in between)
 

Abhi1284

Active Member
#4
_---------------------

Thanks Amit, but I want my chart/afl to got to appropriate settings.

hmm

i dont know what do u want but try to solve ur problem

do one thing press right click -> go to parametres -> on a style colum -> select own scale

if problem solved then please mention here

Abhishek
 

amitrandive

Well-Known Member
#5
hmm

i dont know what do u want but try to solve ur problem

do one thing press right click -> go to parametres -> on a style colum -> select own scale

if problem solved then please mention here

Abhishek
Be careful when selecting "own scale".
Only the price candle size changes , the indicators are not rescaled , so it will give a wrong indication.
 

amitrandive

Well-Known Member
#6
_---------------------

Thanks Amit, but I want my chart/afl to got to appropriate settings.
If you put indicators like pivots,fibs , etc .The chart will be compressed to show you the last value.
For example in your chart 2 the last value of maruti is 2397, so the chart looks correct.

You have put in the monthly open,low,close in the same chart.
Now to show the monthly low value the chart has to be compressed, so that that level of 1878.95 is visible.
 
Last edited:

Abhi1284

Active Member
#7
If you put indicators like pivots,fibs , etc .The chart will be compressed to show you the last value.
For example in your chart 2 the last value of maruti is 2397, so the chart looks correct.

You have put in the monthly open,low,close in the same chart.
Now to show the monthly low value the chart has to be compressed, so that that level of 1878.95 is visible.
Thanks

for giving me some knowledge

Now i cheked u r right
 

trash

Well-Known Member
#8
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.

Code:
//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();

Your Low value plot is missing stylenorescale!! That's why it gets compressed.
And next time put your code(s) within code tags!

StyleNoRescale works fine everywhere added to style! So don't listen to guys who don't know what they are talking about.

And styleOwnScale has got nothing to do with styleNoRescale on top of that. Apples and oranges.

Simply use my edited code then you can change styles individually and can turn on/off stylenorescale for each extremum!

Code:
//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
style1 = ParamStyle( "Style Open", styleLine + styleDashed + styleNoRescale );
style2 = ParamStyle( "Style High", styleLine + styleDashed + styleNoRescale );
style3 = ParamStyle( "Style Low", styleLine + styleDashed + styleNoRescale );
style4 = ParamStyle( "Style Close", styleLine + styleDashed + styleNoRescale );

Plot( cdl( MO1 ), "", colorWhite, style1 );
Plot( cdl( MH1 ), "", colorBrightGreen, style2);
Plot( cdl( ML1 ), "", colorRed, style3);
Plot( cdl( MC1 ), "", colorWhite, style4);
_SECTION_END();
 

amitrandive

Well-Known Member
#9
Your Low value plot is missing stylenorescale!! That's why it gets compressed.
And next time put your code(s) within code tags!

StyleNoRescale works fine everywhere added to style! So don't listen to guys who don't know what they are talking about.

And styleOwnScale has got nothing to do with styleNoRescale on top of that. Apples and oranges.

Simply use my edited code then you can change styles individually and can turn on/off stylenorescale for each extremum!

Code:
//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
style1 = ParamStyle( "Style Open", styleLine + styleDashed + styleNoRescale );
style2 = ParamStyle( "Style High", styleLine + styleDashed + styleNoRescale );
style3 = ParamStyle( "Style Low", styleLine + styleDashed + styleNoRescale );
style4 = ParamStyle( "Style Close", styleLine + styleDashed + styleNoRescale );

Plot( cdl( MO1 ), "", colorWhite, style1 );
Plot( cdl( MH1 ), "", colorBrightGreen, style2);
Plot( cdl( ML1 ), "", colorRed, style3);
Plot( cdl( MC1 ), "", colorWhite, style4);
_SECTION_END();

Thanks for the information!!!

:clap::clap::clap:
 
#10
Your Low value plot is missing stylenorescale!! That's why it gets compressed.
And next time put your code(s) within code tags!

StyleNoRescale works fine everywhere added to style! So don't listen to guys who don't know what they are talking about.

And styleOwnScale has got nothing to do with styleNoRescale on top of that. Apples and oranges.

Simply use my edited code then you can change styles individually and can turn on/off stylenorescale for each extremum!
.
.
.
.
-----------------

Thanks trash,

it worked finally.

Thanks again.