Page 1 of 3
SimpleSAR_EA
Posted:
Tue Nov 12, 2019 5:35 am
by Apprentice
Re: SimpleSAR_EA
Posted:
Mon May 11, 2020 10:28 am
by fabio70
Dear Apprentice,
Could you please add to this SimpleSAR strategy a START/STOP time for trading with manditory closing time.
Thanks
Re: SimpleSAR_EA
Posted:
Tue May 12, 2020 7:55 am
by fabio70
Sorry, I forgot to ask if you could also add a limit function.
Thank you
Re: SimpleSAR_EA
Posted:
Tue May 12, 2020 11:22 am
by Apprentice
Your request is added to the development list.
Development reference 1276.
Re: SimpleSAR_EA
Posted:
Wed May 13, 2020 4:04 am
by papynou34
Hello Apprentice,
Thanks for your work.
I noticed that the Période information is missing on panel of running stratégy.
It seems, you have to add :
strategy.parameters:setFlag("timeframe", core.FLAG_PERIODS);
Thanks
Re: SimpleSAR_EA
Posted:
Wed May 13, 2020 7:49 am
by papynou34
Hello Apprentice,
It seems there is a bug in the stratégy with mandatory closing time. I did a backtest and
-If mandatory closing time to False : in this case the strategy just runs one day.
-if mandatory closing is set to True, i Have the following error message :
C:/Program Files (x86)/Candleworks/FXTS2.test/Strategies/Custom/SimpleSAR_EA.lua:-1: stack overflow
Re: SimpleSAR_EA
Posted:
Wed May 13, 2020 7:52 am
by fabio70
Hi Apprentice,
thank you for your work, but I must say that the strategy does not work anymore, even with all the new functions disabled.
The previous version in the backtest give me back a huge number of orders, now it only opens very few orders.
Is there any parameter that should be set differently?
And I have no more the previous version since the new one substituted it.
Thank you
Re: SimpleSAR_EA
Posted:
Wed May 13, 2020 8:52 am
by Apprentice
Your request is added to the development list.
Development reference 1287.
Re: SimpleSAR_EA
Posted:
Thu May 14, 2020 4:24 am
by Apprentice
Re: SimpleSAR_EA
Posted:
Thu May 14, 2020 7:39 am
by fabio70
OK, now the strategy works when the new functions are disabled, but when mandatory closing is set to on (I tried two different times) the strategy does not open orders nor in backtest nor in optimization.