I am learning to code a very simple strategy in Ninjascript for NT7. There are a couple of things with which I am having difficulty. The first is coding a user defined trailing stop. I have been searching for a strategy which has this feature and I am sure I will find it but help here would be appreciated.
The other is a more difficult task and despite my efforts I have been frustrated. I am applying my strategy to several charts, each with a different stock index. (I hope it will also work with bonds, commodities, etc). Having each index trade the strategy is working well. My first objective is to code a daily total TP or SL in each chart which will prevent further trades in that index for that day.
More challenging is to build a daily total TP or SL which will close all charts from further trades for that day. There are very good multi chart managers in Forex Factory but I do not know if such a script or manager exists or can be built for NT7.