Hi Tomasz,

Are you talking about the Preferences within the Tool menu bar?

Or are you talking about the Settings button in the Automatic 
Analysis where there is a tab for Long trades and Short Trades?

It allows me to choose open, close, high, low and average but I don't 
understand why this setting exists since aren't we supposesd to set 
Buy Prices or Sell prices in our formula?  I've set all the prices to 
Open anyhow.  I've tried the backtester again but the n-bar stop 
keeps exiting at the exit days high.

Is there some sort of code I need to include in my AFL formula to 
tell it to use these settings within the Automatic Analysis tool?  

I've just lost a fair bit fo money because of this so I'd really like 
to get to the bottom of it.  Please tell me what I'm doing wrong. I'm 
using Amibroker 4.90

Thanks,
--- In [email protected], "Tomasz Janeczko" <[EMAIL PROTECTED]> 
wrote:
>
> It will exit at trade price as defined in preferences. If you set 
trade price to OPEN (in the settings) it will exit on OPEN.
> 
> The line should read:
> ApplyStop(stopTypeNBar,stopModeBars,2, 0, False, 2);
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "holygrail168" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Tuesday, October 16, 2007 2:21 PM
> Subject: [amibroker] How do you change stopTypeNBar to exit at the 
open of the exit day?
> 
> 
> > Hi,
> > 
> > I'm trying to get the stopTypeNBar to work such that on the 3rd 
day 
> > (including trade day) after purchasing the share, it will exit on 
the 
> > market when it opens.
> > 
> > At the moment, my historical backtest keeps showing an exit price 
which 
> > is at the market's high and not the market opening.
> > 
> > This is the line of code which I'm using and I've read and re-
read the 
> > applystop AFL code description but I can't find anything which 
allows 
> > me to control the level at which we exit the N-bar stop.
> > 
> > ApplyStop(stopTypeNBar,stopModeBars,2, 1, False, 2);
> > 
> > 
> > 
> > Please note that this group is for discussion between users only.
> > 
> > To get support from AmiBroker please send an e-mail directly to 
> > SUPPORT {at} amibroker.com
> > 
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> > 
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> > 
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> >
>


Reply via email to