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

Re: [amibroker] Specifying an exact SellPrice for FirstProfitTarget when ScaleOut



PureBytes Links

Trading Reference Links

Scaling is all done using Buy and BuyPrice

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com



On 30/10/2007, dralexchambers <dralexchambers@xxxxxxxxx> wrote:
> Hi - I'm using the code supplied in the manual for partial exit
> scaling out on profit target stops (Manual: example 4, page =
> "Pyramiding (scaling in/out) and mutliple currencies in the portfolio
> backtester").
>
> The code snipet for scaling out on TP1 is as follows:
>
> FirstProfitTarget = 10; // TP1 at 10% profit
>
> //....rest of code ...//
>
> if( exit == 0 AND
>    High[ i ] >= ( 1 + FirstProfitTarget * 0.01 ) * priceatbuy )
>    {
>        // first profit target hit - scale-out
>        exit = 1;
>        Buy[ i ] = sigScaleOut;
>     }
>
>
> I am confused how you specify the actual SellPrice for the 1st TP
> above? All we did in the code was set a sigScaleOut marker, but not a
> price at which this should be done - I think???
>
> I would like to specify an exact SellPrice for TP1 of:
>
> ( 1 + FirstProfitTarget * 0.01 ) * priceatbuy
>
>
> Thanks,
> Alex
>
>
>
>
> 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
>
>
>
>


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/