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

[amibroker] Re: Anyone back testing with intraday stops on EOD data?


  • Date: Wed, 23 Dec 2009 23:40:22 -0000
  • From: "onelkm" <LKMCD1@xxxxxxx>
  • Subject: [amibroker] Re: Anyone back testing with intraday stops on EOD data?

PureBytes Links

Trading Reference Links





                                                                      You could try            
ApplyStop( stopTypeNBar, stopModeBars, 1,2 ); 
which will stop out the following day. Also, remember this from the help files under applystop:

If two or more different stops are triggered on the VERY SAME bar then they are evaluated in this fixed order:
Fixed Ruin stop (loosing 99.96% of the starting capital)
Max. loss stop
Profit target stop
Trailing stop
N-bar stop

I have found that trading with trail, profit and loss stops in the same afl with end of day data using activete stops immediately is very misleading. You get some result when a backtest is run, but due to the statement above, you don't know in real trading what the order of the high and low was throughout the day. Thus if the low preceded the high, you might get stopped out first, switch it around and you may have hit your profit stop first. For these reasons, I only use intraday data if I am using multiple stops in the same code with activete stops immediately. I only used stops based on the closing price for daily data.
 

--- In amibroker@xxxxxxxxxxxxxxx, "peter843" <yahoogroups@xxx> wrote:
>
> I am using ApplyStop 3 times in my code - ProfitStop, MaxLoss, and a 1 bar stop. When I uncheck "activate stops immediately" (as instructed by tech support) then only the 1 bar stop is triggered even though the data shows that the other stops should be triggering.
> 
> When I check "activate stops immediately" then I get stopped out on the bar of entry even though I am buying on the close.
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

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