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/ 
 
  
     
    
 
      
   
__,_._,___
 |