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

[amibroker] Forex DDE



PureBytes Links

Trading Reference Links

Bill,
An indirect method would solve the situation.
Have a look at

p1=Param("p1",10,10,200,10);
p2=Param("p2",100,100,200,10);
P=IIf(LastValue(StochD())>50,p1,p2); 
y=MA(C,p);Plot(y,"MA"+WriteVal(P,1.0),1,1);

It will automatically select 10 or 100 according to the IIf criterion.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "wavemechanic" <wd78@xxxx> wrote:
> As noted in the User's Guide default/min/max/step values have to be 
a constant because the values are cached and not re-read during 
subsequent executions.  This eliminates using something like IIF
(COND, x, y) to define the default value where, for example, COND 
could be Interval(), etc.  Has anyone found a work around to this 
limitation in Param() or have a suggestion as to how to proceed?
> 
> Bill



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/