how edit Pending Orders after open positions
Created at 16 Jul 2014, 08:01
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
Replies
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, 09:47
RE:
Hi,
read:
/api/guides/trading_api
/api/guides/trading_api#el7
or cancel pending order and set new one
Bye
@breakermind