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

RE: [amibroker] Re: EMA/breakout signals composite indicator



PureBytes Links

Trading Reference Links

I don't begin to understand your logic, Juan.
You are trying to write a opus; did you proceed incrementally and get pieces to work?
Perhaps a comment or two would help, as would meaningful variable names.

pds = Param("EMA periods",21,1,252,1);
x = Param("Op=1 Hi=2 Lo=3 Cl=4 Vol=5",4,1,5,1); // 5-> V vs. 4 below
P = IIf(x==1,O,IIf(x==2,H,IIf(x==3,L,IIf(x==4,V,C)))); //  don't reuse x!!!

I haven't a clue what you intend by prds = IIf(Cum(x!=-101)<pds,Cum(x!=-101),pds);
the sum of any of the prices arrays will never be negative [and you reused prds again!!! ].

Bob 


-----Original Message-----
From: Jose [mailto:josesilva22@xxxxxxxxx]
Sent: Friday, June 13, 2003 1:00 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: EMA/breakout signals composite indicator


> > x = IIf(x==1,O,IIf(x==1,H,IIf(x==1,L,IIf(x==1,V,C))));
> 
> In this line you wonder all the time if x==1.
> Perhaps you want to do something else...

Oopsey...typo.   Thank you.

x = IIf(x==1,O,IIf(x==2,H,IIf(x==3,L,IIf(x==5,V,C))));


Any idea why the display Parameter doesn't work for me?

j '-)



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/