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

Re: [amibroker] Can ApplyStop be used in an IIF statement ?



PureBytes Links

Trading Reference Links

Hello,

No you can't. ApplyStops provides instruction to backtester to use specific
stops at a later stage (i.e. backtest stage)

To have different stops on long/short side you would need to implement
them on your own using loop. 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "qweds_560" <qweds_560@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, February 15, 2005 4:31 PM
Subject: [amibroker] Can ApplyStop be used in an IIF statement ?


> 
> 
> Can ApplyStop be used in an IIF statement e.g.:
> 
> Buy=IIf(ApplyStop(0,2,20,1),0,1);
> Short=IIf(ApplyStop(0,2,20,1),0,1);
> 
> ApplyStop doesn't actually return anything, however is it a 
> condition that AA can evaluate?
> 
> 
> 
> 
> 
> 
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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:
    http://docs.yahoo.com/info/terms/