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

[amibroker] Re: Converting AIQ to Amibroker



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Anthony,
I do 
not see why you would need a loop just make the sell the criteria you outlined 
below. 
<FONT face=Arial color=#0000ff 
size=2>Diff=ema(c,10)-ema(c,20);
<FONT face=Arial color=#0000ff 
size=2>sell=diff<ref(diff,-1) or diff<.05;
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: Anthony Faragasso 
[mailto:ajf1111@xxxxxxxx]Sent: Friday, March 05, 2004 9:37 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Need a 
loop ?
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/2004Send BUG 
REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 



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.