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 [email protected], Keith McCombs <kmcco...@...> 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 > > > > >
