I was told to post here instead of Strategy Development. Okay, so I been stuck on creating dynamic stop-losses. I looked at ATM in NInjascript, but I can't use those with historical data, so that was out the window. I then looked at using stop-losses and trail-stops at the same time, but that wasn't possible. So then I decided to look at implementing things with just SetStopLoss method only and then lastly, I tried using the ChangeOrder too.
So here is my code:
If anybody can provide me with some useful tips to make dealing with SetStopLoss alot easier, please, please tell me. Unfortunately, I can't cancel previous stop-losses, which might make it easier for me to code. Also, can someone tell me the Pips variable. Like NJ7, we used something like 15 * TickSize for 15 pips. Here, that wasn't compatible, so I was using 0.0015. The problem with that is when I used this on a JPY pair, I will run into problems.
UPDATE It appears that I didn't change the last part, the short position order management, and it appears that I'm making progress. I'm checking out everything right now to see if my stop-losses are acting the exact way as I have planned. Thanks.
Comment