With reference to the Data attached with this mail, I want to inform you that I was not able to overcome a problem I faced after coding the strategy using NT7 ATM (indicator & 2 Strategies I coded & Screenshots are attached)
Description:
If you run the indicator you will notice that it is a simple WMA one with green and red plots:
I want to go long when it plots green and go short when it plots red and cancel/close all the order when it is flat.
Actually you will notice that I open 3 different orders with different target profits in each trade executed.
The problem:
I think I wrote the code with the right conditions, somehow I found that:
-It executes trades in the wrong locations. Example (Executes Long position in clearly Red plot locations)
- Executes “Buy to cover”. I do not want the platform executing trades I do not wish to.
Request:
Please can you help me to understand what I missed here. And how can I come over it.
The objective is I wish to have a simple strategy that is able to execute this:
- Entry long when it plots green in both conditions (slope up or WMA up)
- Entry short when it plots Red< (slope down or WMA down)
- Exit all trades when the indicator showing flat.
Is there any possibility to help me with the subject please.
Thank you
Yassine
Comment