@HowUTrade Usually open positions are trailed by points in % related to that stock, alternatively could it be trailed by an absolute amount? e.g my positions should trail by every Rs500 .......if yes, could you advise how and which method should be used?
@VenkateshV You can write a function that takes your real time MTM/PnL and trails it. You can refer the trailed MTM to take any actions like exiting position etc.
You can just manually simulate this function by enter some value in a cell as MTM and change that value up/down to see how the trail works.
P.S. If only single order constitute your position, then no logic in using trail MTM as you can directly trail the price, trail MTM will be useful only if your position is made up of several orders.
You can write a function that takes your real time MTM/PnL and trails it. You can refer the trailed MTM to take any actions like exiting position etc.
The Bridge class has one such function, refer this below link
https://howutrade.in/docs/kitenet/bridge/?topic=html/M_KiteNet_Bridge_GetTrailMTM.htm
You can just manually simulate this function by enter some value in a cell as MTM and change that value up/down to see how the trail works.
P.S. If only single order constitute your position, then no logic in using trail MTM as you can directly trail the price, trail MTM will be useful only if your position is made up of several orders.