how edit Pending Orders after open positions

Created at 16 Jul 2014, 08:01
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
RO

RootFX

Joined 09.09.2013

how edit Pending Orders after open positions
16 Jul 2014, 08:01


hi

i want set Pending Orders

my English not good i draw this picture

like this

here first open order buy or sell

stop loss in this case 100 pip ... maybe 100 or 50 or 20 ... etc but in this case 100

stopLoss / 4 = 25

here 4 space

set 3 order and last space (4) it's stop loss

thank you

 

 

 

 

 

 


@RootFX
Replies

breakermind
16 Jul 2014, 09:47

RE:

Hi,

read:

/api/guides/trading_api

/api/guides/trading_api#el7

or cancel pending order and set new one

Bye


@breakermind

breakermind
16 Jul 2014, 10:10

RE: RE:
        protected override void OnStart()
        {
            VolumeSell = Volume;
            VolumeBuy = Volume;
// positions spacing 
Spacing = 25;

 
            // set pending up(BUY)
            if (SetBUY)
            {
                for (int i = 1; i < HowMuchPositions; i++)
                {
 
                   PlaceStopOrder(TradeType.Buy, Symbol, VolumeBuy, Symbol.Ask + Spacing * i * Symbol.PipSize);
                }
            }
 
            // set pending down(SELL)
            if (SetSELL)
            {
                Multi = 0;
                for (int j = 1; j < HowMuchPositions; j++)
                {
 
                   PlaceStopOrder(TradeType.Sell, Symbol, VolumeSell, Symbol.Bid - Spacing * j * Symbol.PipSize);
                }
            }
        }

 


@breakermind

breakermind
16 Jul 2014, 10:23

RE: RE: RE:

If "my English not good" use:

https://translate.google.com/

:]


@breakermind

RootFX
17 Jul 2014, 06:47

thank you breakmind 

 


@RootFX