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

[amibroker] Stoploss



PureBytes Links

Trading Reference Links




Hi forum,
 
    
            I am developing a 
system. I selected settradedelay (1,1,1,1) and I would like to place the 
stop in the real buy/sell price (delayed) not in the price of 
signal.

StopLoss=IIf<FONT 
size=1>((BarsSince<FONT 
size=1>(Buy)<4 
AND state=1) 
OR (BarsSince<FONT 
size=1>(Short)<4 
AND state=-1<FONT 
size=1>),Min(<FONT 
color=#ff00ff size=1>5,<FONT color=#ff00ff 
size=1>2*ATR<FONT 
size=1>(20)),<FONT 
face="Courier New" color=#ff00ff size=1>0<FONT face="Courier New" 
size=1>);
ApplyStop<FONT 
size=1>(stopTypeLoss,stopModePoint,stoploss,True,True); 

How can I change the buy/short price the stoploss 
considers as a buy/short?
 
thanks
 
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.