PureBytes Links
Trading Reference Links
|
I see Graham explained that the result is either True or False (1 or 0)
and not "Off" or "On".
You can also set the default. Maybe it defaults to False.
Charting = ParamToggle("Charting","Off|On",1); //Defaults to True
--
Terry
| -----Original Message-----
| From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
| Behalf Of Glenn
| Sent: Saturday, August 13, 2005 19:28
| To: amibroker@xxxxxxxxxxxxxxx
| Subject: [amibroker] Toggle #include "Off|On"
|
| Hi,
|
| Anyone know why this doesn't work please?
|
|
| In my main code it have:
|
| Charting = ParamToggle("Charting","Off|On");
| #include "C:\Program Files\AmiBroker\Formulas\Charting.afl"
|
|
| In my Charting.afl I have:
|
| if (Charting = "On")
| {
| Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |
| ParamStyle("Style") | GetPriceStyle() );
| {
| else
| {
| // do nothing
| }
|
|
| Thanks, Glenn
|
|
|
|
| ------------------------ Yahoo! Groups Sponsor --------------------~--
| >
| <font face=arial size=-1><a
| href="http://us.ard.yahoo.com/SIG=12huc3gmo/M=362343.6886682.7839641.1
| 493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123990103/A=2894352/R=0/S
| IG=11fdoufgv/*http://www.globalgiving.com/cb/cidi/tsun.html">Help
| tsunami villages rebuild at GlobalGiving. The real work starts
| now</a>.</font>
| --------------------------------------------------------------------~-
| >
|
| Please note that this group is for discussion between users only.
|
| To get support from AmiBroker please send an e-mail directly to
| SUPPORT {at} amibroker.com
|
| For other support material please check also:
| http://www.amibroker.com/support.html
|
|
| Yahoo! Groups Links
|
|
|
|
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hsh4l7s/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124000861/A=2894352/R=0/SIG=11fdoufgv/*http://www.globalgiving.com/cb/cidi/tsun.html">Help tsunami villages rebuild at GlobalGiving. The real work starts now</a>.</font>
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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/
|