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

[amibroker] Trailing stops not getting triggered in real trading



PureBytes Links

Trading Reference Links

Hi all,

I had this system which worked just fine in backtesting.Now sometime
around this week I got a signal out of it and I traded it. Now as I
expected it went into profit.Also I had set the trailing stop loss by
using the ApplyStop function.Now the market went against my paper
profits and so I took my profit but when I checked my system then it
did not have the trailing stop triggered which i found funny when
according to my logic it should have gotten triggered.
This is my stop rule:

ApplyStop(stopTypeTrailing,stopmodepercent,x,0,true,0);

My trade timing entries are set to 
Buy and cover on high on no delay
sell and short on low with no delay

Some more details which can help someone diagnose the problem.

Day1 : Entry        Profit = 0
Day2 :                 Profit = 2%
Day3 :                 Profit = 1%

Now I took the exit on day 3 assuming that I had actually had a 50%
loss on my paper profit. And so the trailing would have been easily
hit.

Now either there is some setting I am missing or my understanding on
trailing stops is flawed or AB has a bug.

Can anyone help me with this? 

-Ajay


------------------------ 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/