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

Re: [amibroker] formula help needed



PureBytes Links

Trading Reference Links

I see your point you are there with me, but i am still wonding about 
using something like this

x= Param("use O=1 H=2  L=3 C=4  V=5 P=6",1,6,4);
x =IIf(x=1,O,IIf(x=2,H,IIf(x=3,L,IIf(x=5,V,IIf(x=6,P,C)))));
and also this 

Plot (Param("EMA=1, Dyn EMA pds=2, Vol avg=3, Crossovers=4",1,4,1);


--- In amibroker@xxxxxxxxxxxxxxx, "John" <jea55129@xxxx> wrote:
> Try this:
> x = Param("Op=1 Hi=2 Lo=3 Cl=4 Vol=5",4,1,5,1);
> x = IIf(x==1,O,IIf(x==2,H,IIf(x==3,L,IIf(x==4,C,V))));
> 
> John
> --- In amibroker@xxxxxxxxxxxxxxx, "goldwing01" 
<goldwing01_1999@xxxx> 
> wrote:
> > x= Param("use", Open=1, High=2, Low=3, Close=4 ,Volume=5, 
> P=6,1,6,4);
> > 
> > Line 3, Column 69:
> > pds =Param("EMA periods",1,2520,21);
> > 
> > VAvgPds=Param("Volume sample periods",2,252,21);
> > 
> > x= Param("use", Open=1, High=2, Low=3, Close=4 ,Volume=5, 
> P=6,1,6,4);
> > ------------------------------------------------------------------
--
> ^
> > 
> > Error 11.
> > Too many arguments



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/