I want to develop using ninja script a stop loss strategy, however I am struggling to understand even after looking through other forum posts and tutorials how to achieve what I want,
An example of what I want to do is:
1) On a Long entry signal create a market order with a stop loss of 1%
2) If that position goes above 2% profit then I want to enable a trailing stop loss at 0.5%
The things I am struggling with are how to identify the open positions profit and how can I set the stop loss for that position?
Thank you In advance, please let me know if you need any more details to help me!

Comment