Page 1 of 3
HA_Strategy
Posted:
Fri Jan 03, 2020 8:05 am
by Apprentice
Re: HA_Strategy
Posted:
Mon Jun 08, 2020 8:19 am
by Protrader
Dear,
Is it possible to modify this code ?
When one position is closed, recalculate if the conditions are always valid and open a new position on the next candle. Picture explains better.
Thank you.
Re: HA_Strategy
Posted:
Tue Jun 16, 2020 2:59 pm
by Protrader
Dear,
Is the strategy was modified by your team Apprentice with the Yolerap's modifications ?
This could be very nice !
Thank you,
Re: HA_Strategy
Posted:
Tue Jun 16, 2020 6:53 pm
by Apprentice
Modifications are added.
Re: HA_Strategy
Posted:
Wed Jun 17, 2020 1:02 pm
by yolerap
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,
Re: HA_Strategy
Posted:
Wed Jun 17, 2020 3:35 pm
by Apprentice
Your request is added to the development list.
Development reference 1509.
Re: HA_Strategy
Posted:
Thu Jun 18, 2020 5:25 am
by Apprentice
I don't have any issues. It works every time
Re: HA_Strategy
Posted:
Thu Jun 18, 2020 7:50 am
by yolerap
Yes it's working ; the strategy open positions one time but after your arrows, many other Red/green candles are closed and strategy doesn't open position. So once a position is open, you have to open a position for each candle of the same color as explained in the previous** post.
**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,
Re: HA_Strategy
Posted:
Fri Jun 19, 2020 4:22 am
by Apprentice
Can you share the parameters used?
Re: HA_Strategy
Posted:
Fri Jun 19, 2020 7:18 am
by yolerap
Sure,
Here the parameters and what strategy should do.
Thank you,