Improve Positions.Modified event


09 May 2019, 09:06Improve Positions.Modified event#1
Xavier Rposts: 90since: 12 May 2015

Currently the Positions.Modified event handler is helpful, however, I'd like to know:

  1. The reason (PositionModifyReason), like the one we have in the Positions.Closed event, the PositionCloseReason enum which is very helpful too.
  2. The old values that have been modified:
    1. TradeType
    2. EntryPrice
    3. EntryTime
    4. SL
    5. TP
    6. Quantity
    7. Others if apply

I was able to implement some code to monitor the changes, however, I think this event handler can be improved this way.

Thanks for your hard work.

¨You are not what you have done, you are what you have overcome.¨ - Anonymous