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

[amibroker] help with exit code



PureBytes Links

Trading Reference Links





Can anyone help me with this 
code :
 
I want to exit when the price is 
below or above the 13 MA if this was <FONT face=Batang color=#0000ff 
size=2>true when I had a position.

x2=<FONT face="Courier New" 
color=#0000ff size=1>IIf(<FONT 
face="Courier New" color=#0000ff size=1>StDev<FONT face="Courier New" 
size=1>(C,<FONT face="Courier New" color=#ff00ff 
size=1>6)-<FONT face="Courier New" 
color=#0000ff size=1>ATR(<FONT 
face="Courier New" color=#ff00ff size=1>6<FONT face="Courier New" 
size=1>)>0<FONT 
face="Courier New" size=1> AND <FONT face="Courier New" 
color=#0000ff size=1>StDev<FONT face="Courier New" 
size=1>(C,<FONT face="Courier New" color=#ff00ff 
size=1>6)-<FONT face="Courier New" 
color=#0000ff size=1>Ref(<FONT 
face="Courier New" color=#0000ff size=1>StDev<FONT face="Courier New" 
size=1>(C,<FONT face="Courier New" color=#ff00ff 
size=1>6),-<FONT 
face="Courier New" color=#ff00ff size=1>1<FONT face="Courier New" 
size=1>)<0<FONT 
face="Courier New" size=1>,<FONT face="Courier New" color=#ff00ff 
size=1>1,<FONT face="Courier New" 
color=#ff00ff size=1>0<FONT face="Courier New" 
size=1>);
How can I do that?
 
Thanks again
 
<FONT face=Batang color=#0000ff 
size=2>Juan






Yahoo! Groups Sponsor


  ADVERTISEMENT 









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