Hi Amine,
I doing some homework over the weekend and attach strategy with little modification.
amine_chourou wrote:
Hi there,
Actually I'm not really able to assess your strategy in terms of performance and therefore suggesting any trading period but it is clear that there is useless checks that consumes a lot of CPU and my guess was based on the OnTick starts. Meanwhile, let me bring to your attention that your strategy is generating errors when run in real-time mode. These errors should be resolved prior to going further.
If you wish to provide a detailed description of the conditions that you are not 100% sure of their implementation in VJF , I can try to help you
PS: A trailing step based on 1 pip is really too sensitive in my opinion but generally speaking you can still work OnCandle with trailing step commands.
OnTick start point connection was removed and everything is connected with OnCandle start point as you suggest me.
I also noticed errors when start strategy in test mode (now you said in real time) and these errors are present in first defaultperiod (1day) when tested, after that errors gone. I haven't luck to correct this but looking to java console, I suspect it has something with problem for strategy to get past daily candles values. So please for advice to solving that.
Java console:
java.lang.NullPointerException
at com.dukascopy.vfruntime.handlers.k.a(Unknown Source)
at com.dukascopy.vfruntime.handlers.c.c(Unknown Source)
at com.dukascopy.vfruntime.handlers.c.c(Unknown Source)
at com.dukascopy.vfruntime.handlers.c.c(Unknown Source)
at com.dukascopy.vfruntime.handlers.n.a(Unknown Source)
at com.dukascopy.vfruntime.c.l.a(Unknown Source)
at com.dukascopy.vfruntime.c.l.a(Unknown Source)
at com.dukascopy.vfruntime.c.l.a(Unknown Source)
at com.dukascopy.vfruntime.c.l.a(Unknown Source)
at com.dukascopy.vfruntime.c.l.a(Unknown Source)
at com.dukascopy.vfruntime.c.j.onBar(Unknown Source)
at com.dukascopy.dds2.greed.agent.strategy.tester.AbstractStrategyRunner.historicalCandleReceived(AbstractStrategyRunner.java:428)
at com.dukascopy.dds2.greed.agent.strategy.tester.StrategyRunner.run(StrategyRunner.java:370)
at java.lang.Thread.run(Unknown Source)
Also, I increase trailing step value.
amine_chourou wrote:
An example from your strategy:
You are checking CCIup / Down variable on daily basis but you are pushing trades based on 10sec candles ! Why ??
In any case the CCIup/down Boolean variable could get the value true (if confirmed) only at the end of the day so using ticks/10sec candles is in some ways a paradox ...
I recommend you to restructure the strategy conditions and rebuild it from scratch.
For trading, strategy look for CCI up/down state and also RSI(14) value based on current candle. In past, strategy missed some good trade opportunities because RSI get value +50/-50 later that day. So idea is to check this value more frequently. Maybe I totally missed and went to wrong direction, so kindly ask You to help me with that.
Reagards