Position volume breakup

Created at 20 Jun 2022, 19:02
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!
M4

m4trader4

Joined 19.09.2021

Position volume breakup
20 Jun 2022, 19:02


Dear Ahmad

I place a trade with 10 Lots with SL 10 pips, after placing order want to break the 10Lot into 

A)  10 * 33.33% Lots with TakeProfit 10 pips

B) 10 * 33.33% Lots with TakeProfit 20 pips

B) 10 - (A - B) Lots with TakeProfit 30 pips 


@m4trader4
Replies

amusleh
21 Jun 2022, 09:23

Hi,

You can't break a position, but you can check if the position profit reached x pips and then close x% of it's volume.


@amusleh

m4trader4
21 Jun 2022, 10:13

RE:

With the above approach there can be positive or negative pips at target (take profit). The same can be done through CTrader gui.

How to approach the same?

 


@m4trader4

amusleh
21 Jun 2022, 10:43

RE: RE:

m4trader4 said:

With the above approach there can be positive or negative pips at target (take profit). The same can be done through CTrader gui.

How to approach the same?

 

Hi,

Not sure what do you mean by positive / negative Pips, you can create the same cTrader advanced take profit functionality inside your cBot.

Check the number of Positions Pips on each OnTick, if it reached X pips close X% of it's volume, and record the position on a collection like a List.

It all depends on your coding skill.


@amusleh

m4trader4
21 Jun 2022, 10:58

RE: RE: RE:

I did that in 4.1, when for position which reached position.pips +10, close position with 33.33% profits can be +10.2 or 9.5, 95% of time its been negative. The reason for having 1 order is to avoid slippages at time of order execution and to breaking up TP with one order.

Currently placing 3 orders with +10, +20, +30 pips TP and there is positive/negative slippage for 3 orders. 

 

 


@m4trader4