OK, thanks - but I'm still confused :) How would I specify the actual ScaleOut price for a trade, eg:
I buy 10 contracts at 100.00 I sell (ScaleOut) 5 contracts at 100.05 I sell the final 5 contracts at 100.09 Alex --- In [email protected], Graham <[EMAIL PROTECTED]> wrote: > > Scaling is all done using Buy and BuyPrice > > -- > Cheers > Graham Kav > AFL Writing Service > http://www.aflwriting.com > > > > On 30/10/2007, dralexchambers <[EMAIL PROTECTED]> 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 > > > > > > > > >
