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

Re: [amibroker] Changing the stop loss depending on the stock price?



PureBytes Links

Trading Reference Links

Louis,

> Hi,
>
> Ok I think I understand... If I want to use custom values, I need to
> build the code for the backtesting, and then I will have to click the
> "Enable custom backtest procedure" button.  I can't just use what's
> there and add some things to it.

No, you don't need custom backtester at this stage, IMHO.
>
> So, basically, if I want to:
>
> 1) Change the % loss-stop depending on the price;

Just use the code provided by Chris.

> 2) Sell half my position after a % of profit or after some other
> conditions;

An example that gives you an idea how to do it can be found in the 
manual: Tutorial -> Amibroker Formula Language -> Pyramiding/scaling 
and multiple currencies -> Example 4

Regards,

Thomas
>
> I have to build the whole backtesting procedure.  Is this right?
>
> I really like the help files, but there should be more examples with
> them. I learn a lot by watching examples!
>
> Thanks!
>
> Louis
>
> 2008/2/22, Thomas Ludwig <Thomas.Ludwig@xxxxxx>:
> >   > The Help file will explain.
> > >
> > > Help > SetOptions
> > > Help > BuyPrice
> > > Help> Applystop
> > >
> > > The Help files are full of good examples of code.
> >
> > Indeed. And a nice framework for AB beginners can be found here:
> > http://www.amibroker.com/library/detail.php?id=547
> >
> > Regards,
> >
> > Thomas




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

<*> 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:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto: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/