PureBytes Links
Trading Reference Links
|
Hello,
Remove //--indicator end
it is obsolete.
Instead use
if (status("action") == actionCommentary )
{
... interpretation code here - MUST use printf to output any text !
}
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Glenn" <glennokb@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, August 14, 2005 4:23 AM
Subject: [amibroker] Re: Toggle #include "Off|On"
> Thanks Graham,
>
> That works fine well. But! ...I actually have more then just that Plot
> line in my charting.afl
>
> I also have Interpretation code as well with //--Indicator-End--
> after the plotting code. This //--Indicator-End-- causes an error and
> without it I can't see the Interpretation. Any idea how to keep the
> plot and interpetation within the #include file and still turn it all
> on/off please?
>
> Glenn
>
> --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
>> here is one I use
>> the on/off are actually binary 1/0
>>
>> SellType = ParamToggle( "Selltype", "SellLine,SellRdm" );
>> if( SellType ) { Sell = SellRdm; }
>> else { Sell = SellLine; }
>>
>> so your example
>> Charting = ParamToggle("Charting","Off|On");
>> #include "C:\Program Files\AmiBroker\Formulas\Charting.afl"
>> if (Charting==1)
>> {
>> Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |
>> ParamStyle("Style") | GetPriceStyle() );
>> }
>>
>> I included the ==1 to show that you use two equal signs for checking
>> the value of a variable. A single = assigns a value
>>
>>
>>
>>
>> --
>> Cheers
>> Graham
>> AB-Write >< Professional AFL Writing Service
>> Yes, I write AFL code to your requirements
>> http://e-wire.net.au/~eb_kavan/ab_write.htm
>
>
>
>
>
> 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=12h6j7p8g/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124015094/A=2894350/R=0/SIG=10tj5mr8v/*http://www.globalgiving.com">Make a difference. Find and fund world-changing projects at GlobalGiving</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/
|