[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] A simpler way?



PureBytes Links

Trading Reference Links

Hello,

You can do this already:

if( GetChartID() == 10023 ) Plot (...)
if( GetChartID() == 10104 ) Plot(...)

http://www.amibroker.com/f?getchartid
http://www.amibroker.com/guide/w_param.html


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "keithmccombs" <kmccombs@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, August 14, 2005 6:35 AM
Subject: [amibroker] A simpler way?


> Most of my chart sheets contain multiple charts used for a single
> system, primarily because most of my systems use multiple signals.
> For example, I may have four .afl files for four charts
> for "MySystem": "MySystem Price", "MySystem StochD", "MySystem MACD",
> and "MySytem Equity".  The code for all four .afl files is the same
> except in each I have commented out all the plot() functions except
> for the one(s) for that individual chart.  This begins as an
> inefficient method and quickly develops into a real nuisance when I
> change parameters.
>
> One way to deal with the nuisance of changing parameters might be to
> keep all of my code with the exception of the plot() statements
> in "MySystem" and then use: #include "C:\Program
> Files\AmiBroker\Formulas\custom\MySystem.afl" in each of the other
> four .afl files.  But then, I have five separate .afl files.
>
> I believe a much simpler solution (for me) would be to have AmiBroker
> number the charts for each sheet beginning at the top.  Then I could
> have a single .afl file with statements like:
>   if(chart==1)plot(myprice,etc.);
>   if(chart==2)plot(mystoch,etc.);
>   if(chart==3)plot(mymacd,etc.);
>   if(chart==4)plot(myequity,etc.);
>
> Hoping TJ reads this and agrees.
> -- Keith
>
>
>
>
>
>
> 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=12h4n063v/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124015226/A=2894354/R=0/SIG=11qvf79s7/*http://http://www.globalgiving.com/cb/cidi/c_darfur.html";>Help Sudanese refugees rebuild their lives through 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/