by yolerap » Wed Jun 17, 2020 1:02 pm
Thank you but it doesn't work whilst the parameters for strategy are good ( Re-download the latest version, Based on HA, no MVA filter, Direct/End of turn, ... )
Please, look picture :
Line 1 : Long position is open and close -> It's ok for me
Line 2 : Long position should have been open because there are 3 green candles before ( in relation to my last post )
Line 3 : Long position should have been open also because there are 3 green candles before
Lines 4,5 and 6 show you the same problem until the line 10.
I think the strategy open a new position only after opposite consecutive candles ( circled ).
For a variant and for you, it could be easier for you to code like this :
- When one long position is opened ( because there are 2/3/... consecutive green candles ) so at each green candle, open a new long
- When one short position is opened ( because there are 2/3/... consecutive red candles ) so at each red candle, open a new short
Thank you for further modifications,
- Attachments
-