Could anyone help me with the code for this strategy?
Using any indicator open an order (Buy or Sell)
The close is the take profit.
Second case and after
If the price go against the opened order direction for the same take profit amount, another order will be opened with a lot value that should be 1.5 higher ( if possible one should have a way to adjust this externaly)
When the price come back to the right direction the close will be at the open price of the last open order more any value of swap and comission.
thanks in advance for the help