Property addition for position: Give expected closingprice of position. (buy:bid,Sell:ask)
Property addition for position: Give expected closingprice of position. (buy:bid,Sell:ask)
24 Feb 2020, 14:50
Please make some additions to the Position Class
It would save us making & maintaining userdefined Extentions and make code more readable.
suggestions for properties:
- public readonly double PointPrice {get;} //(is already there but hidden/inaccessible);
- public readonly double BreakEvenPrice //{get;}(incl. commission and swaps) ;
- public readonly bool IsBuy;
- public readonly bool IsSell;
- public string CloseReason {get/set};
suggestions for methods:
- public TradeResult ClosePart(int Volume);
suggestions for RobotClass:
- public static double RequiredMargin(Symbol symbol, double volumeInUnits, TradeType tradeType)
Keep up the good work !
:-)
Replies
genappsforex
24 Feb 2020, 15:18
RE:
PanagiotisCharalampous said:
Hi genappsforex,
All positions have a TakeProfit and StopLoss property which are in absolute prices. What other closing price do you need?
Best Regards,
Panagiotis
Often we do not work with absolute prices but with distances between either entryprice or currentprice
Now we use Extentions for that but it would be nicer if it was native
@genappsforex
PanagiotisCharalampous
24 Feb 2020, 14:58
Hi genappsforex,
All positions have a TakeProfit and StopLoss property which are in absolute prices. What other closing price do you need?
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous