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


Reply via email to