[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Keeping graphs and indicators out of TEXT at TOP of Graph-William



PureBytes Links

Trading Reference Links


Thanks William !

Regards

Jim




--- In amibroker@xxxxxxxxxxxxxxx, William Peters <william@xxxx> wrote:
> G'Day Jim,
> 
> I don't use those buttons either.
> 
> I've made some changes to your formula which should help the 
indicators
> and title fit better within the pane.
> 
> I've added the graphXspace function to the end of the formula but it
> doesn't seem to matter where you place it and also added a small 
piece of
> code to the name parameter of the volume plot function.
> 
> i.e. Plot( Volume, "\n" + _DEFAULT_NAME(), ParamColor("Color", 
colorBlueGrey ),
> 
> notice the addition of the following characters "\n" +
> they will cause the volume and subsequent title text to fall on a 
new line.
> There is a small side effect to this - there is an additional blank 
line in
> the tool tip for each bar on the chart.
> 
> 
> Regards,
> William Peters (AmiBroker Group Moderator)
> www.amitools.com
> 
> 
> _SECTION_BEGIN("Price");
> SetChartOptions(0,chartShowArrows);
> 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", colorBlack ), styleNoTitle | 
> ParamStyle("Style", styleCandle, maskPrice ) ); 
> _SECTION_END();
> 
> _SECTION_BEGIN("MA");
> P = ParamField("Price field",-1);
> Periods = Param("Periods", 15, 2, 200, 1, 10 );
> Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", 
> colorCycle ), ParamStyle("Style") ); 
> _SECTION_END();
> 
> _SECTION_BEGIN("MA1");
> P = ParamField("Price field",-1);
> Periods = Param("Periods", 15, 2, 200, 1, 10 );
> Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", 
> colorCycle ), ParamStyle("Style") ); 
> _SECTION_END();
> 
> _SECTION_BEGIN("MA2");
> P = ParamField("Price field",-1);
> Periods = Param("Periods", 15, 2, 200, 1, 10 );
> Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", 
> colorCycle ), ParamStyle("Style") ); 
> _SECTION_END();
> 
> _SECTION_BEGIN("Volume");
> Plot( Volume, "\n" + _DEFAULT_NAME(), ParamColor("Color", 
colorBlueGrey ), 
> ParamStyle( "Style", styleHistogram | styleOwnScale | styleThick, 
> maskHistogram  ) );
> _SECTION_END();
> 
> _SECTION_BEGIN("EMA");
> P = ParamField("Price field",-1);
> Periods = Param("Periods", 15, 2, 200, 1, 10 );
> Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", 
> colorCycle ), ParamStyle("Style") ); 
> _SECTION_END();
> 
> _SECTION_BEGIN("EMA1");
> P = ParamField("Price field",-1);
> Periods = Param("Periods", 15, 2, 200, 1, 10 );
> Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", 
> colorCycle ), ParamStyle("Style") ); 
> _SECTION_END();
> 
> _SECTION_BEGIN("EMA2");
> P = ParamField("Price field",-1);
> Periods = Param("Periods", 15, 2, 200, 1, 10 );
> Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", 
> colorCycle ), ParamStyle("Style") ); 
> _SECTION_END();
> 
> GraphXSpace = 3;





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/