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

[amibroker] Backtest Market Order



PureBytes Links

Trading Reference Links




Maybe someone can help with this....do I need a 
loop 
 
Lets say we buy when we have a cross of 2 moving 
averages...
 
Movingavg1=ema(c,10);
Movingavg2=ema(c,20);
 
buy=cross(movingavg1,movingavg2);
 
Now, we only want to stay in the trade if the 
difference between the 2 moving averages is greater than the previous days 
difference....and that difference should be greater by min. .05.....if the 
difference is less than this, the rise is slowing...possible change of trend or 
consolidation ...
 
 
Thanks
Anthony
 
 
 
 
---Outgoing mail is certified Virus 
Free.Checked by AVG anti-virus system (<A 
href="">http://www.grisoft.com).Version: 6.0.583 / 
Virus Database: 369 - Release Date: 2/10/2004


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








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 the Yahoo! Terms of Service.