Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

couol not build strategy JSON decoding error: 4
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=141&t=50842
Page 1 of 1

Author:  4x756 [ Tue 25 Feb, 2014, 00:36 ]
Post subject:  couol not build strategy JSON decoding error: 4

could not build strategy
all time
JSON decoding error: 4
the strategy attached.

Attachments:
smacrosV2.vfs [56.28 KiB]
Downloaded 165 times

Author:  dirk_r1 [ Tue 25 Feb, 2014, 10:15 ]
Post subject:  Re: couol not build strategy JSON decoding error: 4

Greetings!

You received the error because the strategy is not conclusive.

Could you please tell me briefly the scope of the strategy. I will then modify it to make it compilable.

Thanks!

Author:  4x756 [ Tue 25 Feb, 2014, 11:10 ]
Post subject:  Re: couol not build strategy JSON decoding error: 4

The strategic logic as following:

Opening condition:
When current price movement is crossing a SMA 50 (calculated on 1 min chart) from top / bottom => open sell/buy position.
Only one position allowed being trade.

Current price movement defined as: current bid tick vs. previous 1 min candle closing price.

So to check if cross done:
First I compare current bid tick price with current SMA 50.
Next Compare: previous 1 min candle closing price with previous SMA 50 (SMA shifted 1)

Every time as condition to open at market is met - before open position lot amount calculated as following:
If last trade was negative (loss) the previous lot size multiplied by coefficient (martin10)
If last trade was positive (profit) then we checks condition of STOCH (calculated on 1 min chart)
•If fast K% is above 70 (if we a going to buy) or below 30 (if we a going to sell) default lot size multiplied by coefficient (martin10)
•If above condition of STOCH are not met we trade default lot size

Closing condition:
1.By stop loss 20pip.
2.If profit in pip = 3 and STOCH below 80 for long position or above 20 for short position.

Strategy triggered on every bid tick.

Thank you for the support

Author:  4x756 [ Tue 04 Mar, 2014, 16:32 ]
Post subject:  Re: couol not build strategy JSON decoding error: 4

Any feedback?

Author:  dirk_r1 [ Wed 05 Mar, 2014, 08:39 ]
Post subject:  Re: couol not build strategy JSON decoding error: 4

Greetings!

Indeed there is a JSON error. I have tried to mix things up in your strategy without being successful, unfortunately.

Right now, your strategy is being fixed by our developers.

I will write you back as soon as they have finished.

Author:  amine_chourou [ Wed 07 May, 2014, 08:38 ]
Post subject:  Re: couol not build strategy JSON decoding error: 4

Greetings,

Thanks for your patience !
please be informed that this issue is fixed using the current version of Visual Jforex.

Enjoy!

  Page 1 of 1