TO
Topics
04 Sep 2019, 10:19
1018
2
Replies
tomopeov
23 May 2019, 06:35
RE:
Panagiotis Charalampous said:
Hi useretinv,
You can use the code below
if (position.GrossProfit > 0) { ExecuteOrder(InitialQuantity, GetRandomTradeType()); } else { if (position.TradeType == TradeType.Buy) ExecuteOrder(position.Quantity * 2, TradeType.Sell); else ExecuteOrder(position.Quantity * 2, TradeType.Buy); }Best Regards,
Panagiotis
Hi Panagiotis,
What if I want to place an order instead of executing a trade? For example if a buy trade is closed at a take profit target I want to place a sell trade order with the same entry price, trade size and take profit limit in pips as the closed trade and vice versa?
Thank you
@tomopeov
tomopeov
05 Sep 2019, 17:53
RE:
@tomopeov