PureBytes Links
Trading Reference Links
|
Reinsley,
Thanks for the code.
--- In amibroker@xxxxxxxxxxxxxxx, "reinsley" <reinsley@xxx> wrote:
>
>
> I posted the following formula two days ago via Thunderbird. As my answer does nor appear, I post it again via web. Sorry for the double if it appears...
>
> Best regards
>
> // Tooltip display
>
> _SECTION_BEGIN("Price");
> SetChartOptions(0,chartShowArrows|chartShowDates);
> _N(Title = StrFormat("{{INTERVAL}} - {{NAME}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C,
> SelectedValue( ROC( C, 1 )) ));
> Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
> _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") );
> if( ParamToggle("All Values", "No | Yes" )){
> ToolTip=StrFormat("\nEMA:" +NumToStr( EMA( P, Periods ), .2 )) + StrFormat("\n\nOpen: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: " + NumToStr( V, 1 ) , O, H, L, C, SelectedValue( ROC( C, 1 )));//NumToStr( EMA( P, Periods ), .2 )
> }
> _SECTION_END();
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "binjobingo" <binjobingo@> wrote:
> >
> > Thanks for your effort
> >
> > The problem remains same .I am attaching a .bmp file.As you can see using your AFL the data window doesnot show the EMAS even after ticking all values.The AFL applied is yours as shown in .BMP chart
> >
> > It shows correctly all values i.e OHLC plus EMAS only in Sheet 1 as I said earlier but doesnot show all values i.e EmA etc in Sheet 2/3/4 etc.
> >
> > I want o/h/l/c PLUS Emas to be shown in other sheets also.Is it appearing corectly in your Amibroker.My version is 5
> >
> >
> > http://groups.yahoo.com/group/amibroker/photos/album/1323481956/pic/list
> >
> > Regards
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, Keith McCombs <kmccombs@> wrote:
> > >
> > > You must use "Yes | No", or "0|1", "true|false|, or define some other
> > > constants as 0 and 1.
> > > See a version that works below:
> > >
> > > BTW, don't forget to check your code in the Editor (you need '_' at
> > > beginning of _SECTION_BEGIN).
> > >
> > > |_SECTION_BEGIN("Price");
> > > SetChartOptions(0,*chartShowArrows*|*chartShowDates*);
> > > _N(*Title* = StrFormat("{{INTERVAL}} - {{NAME}} {{DATE}} Open %g, Hi %g,
> > > Lo %g, Close %g (%.1f%%) Vol " +WriteVal( *V*, 1.0 ) +" {{VALUES}}",
> > > *O*, *H*, *L*, *C*,
> > > SelectedValue( ROC( *C*, 1 )) ));
> > > Plot( *C*, "Close", ParamColor("Color", *colorBlack* ), *styleNoTitle* |
> > > ParamStyle("Style") | GetPriceStyle() );
> > > *if*( ParamToggle("All Values", "No | Yes" )){
> > > *ToolTip*=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g
> > > (%.1f%%)\nVolume: " + NumToStr( *V*, 1 ), *O*, *H*, *L*, *C*,
> > > SelectedValue( ROC( *C*, 1 )));
> > > }
> > > _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();|
> > >
> > > binjobingo wrote:
> > > >
> > > >
> > > > When I paste the formula given below in Sheet 1 I get O/H/L/C and ema
> > > > 10 in "DISPLAY WINDOW" when I say "All Values" in tooltip
> > > >
> > > > But in Sheet 2/3/4 etc When I say all values in Tooltip it shows only
> > > > "close" & EMA 10 in "DISPLAY WINDOW"
> > > >
> > > > I want it to Display O/H/L/C & other OScillators like Sheet 1 In
> > > > "DISPLAY WINDOW"
> > > >
> > > > What may be the reason ?
> > > >
> > > > SECTION_BEGIN("Price");
> > > > SetChartOptions(0,chartShowArrows|chartShowDates);
> > > > _N(Title = StrFormat("{{INTERVAL}} - {{NAME}} {{DATE}} Open %g, Hi %g,
> > > > Lo %g,
> > > > Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C,
> > > > SelectedValue( ROC( C, 1 )) ));
> > > > Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |
> > > > ParamStyle("Style") | GetPriceStyle() );
> > > > if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
> > > > {
> > > > ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g
> > > > (%.1f%%)\nVolume:
> > > > "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
> > > > }
> > > > _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();
> > > >
> > > > Regards
> > > >
> > > >
> > >
> >
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|