[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

<<In any case, your advice may become more effective if you add a touch of constructiveness to it.  ;)>>
I tried with " proceed incrementally and get pieces to work" and " Perhaps a comment or two would help, as would meaningful variable
names."
Other things I've found useful in catching obvious and insidious bugs are to 
--use a programming editor for logic checking and revisions
--add debugging code [addcolumn() and writeval()]  and run it through AA and IB.

Bob

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



> 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!!! ].

Not reused at all.  Note pds/prds.


> <<So, any thoughts on why this doesn't work:>>
> The code I saw was
> ----
> IIf(display=2, // <-----
>  Plot(0,"",colorBlue,styleLine),
>  Plot(Close,"",1,128));
> 
> IIf(display=2, // <----
>  Plot(signals,"EMA signals",colorRed,styleLine),
>  Plot(EMA1,"EMA",colorRed,styleLine));
> ----
> We all copy Jose, [as with your <<x = IIf(x==1,O,IIf(x==1,H,
IIf(x==1,L,IIf(x==1,V,C))));>>], the proof's in remebering to make the
> changes you intended before inflicting it on the world.


Bob, I really have no idea what you're on about.
I'll give you the benefit of the doubt, and put this down to my 
inexperience with AFL.  ;)

Where I come from, we have to deal with MetaStock idiosyncrasies, 2Kb 
formula size limits, max 20 variables, insufficient functions, and 
more.  Anyone trying to adapt from that environment to AFL is likely 
to strike a few teething problems.

In any case, your advice may become more effective if you add a touch 
of constructiveness to it.  ;)

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/ 
 << File: [amibroker] Re_ EMA_breakout signals composite indicator.txt >> 

------------------------ 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/ 


<<attachment: winmail.dat>>