Dukascopy
 
 
Wiki JStore Search Login

couol not build strategy JSON decoding error: 4
 Post subject: couol not build strategy JSON decoding error: 4 Post rating: 0   New post Posted: Tue 25 Feb, 2014, 00:36 

User rating: 0
Joined: Tue 14 Jan, 2014, 23:23
Posts: 4
Location: SwitzerlandSwitzerland
could not build strategy
all time
JSON decoding error: 4
the strategy attached.


Attachments:
smacrosV2.vfs [56.28 KiB]
Downloaded 126 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: couol not build strategy JSON decoding error: 4 Post rating: 0   New post Posted: Tue 25 Feb, 2014, 10:15 
Visual JForex expert at Dukascopy
User avatar

User rating: 26
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
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!


 
 Post subject: Re: couol not build strategy JSON decoding error: 4 Post rating: 0   New post Posted: Tue 25 Feb, 2014, 11:10 

User rating: 0
Joined: Tue 14 Jan, 2014, 23:23
Posts: 4
Location: SwitzerlandSwitzerland
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


 
 Post subject: Re: couol not build strategy JSON decoding error: 4 Post rating: 0   New post Posted: Tue 04 Mar, 2014, 16:32 

User rating: 0
Joined: Tue 14 Jan, 2014, 23:23
Posts: 4
Location: SwitzerlandSwitzerland
Any feedback?


 
 Post subject: Re: couol not build strategy JSON decoding error: 4 Post rating: 0   New post Posted: Wed 05 Mar, 2014, 08:39 
Visual JForex expert at Dukascopy
User avatar

User rating: 26
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
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.


 
 Post subject: Re: couol not build strategy JSON decoding error: 4 Post rating: 0   New post Posted: Wed 07 May, 2014, 08:38 
Visual JForex expert at Dukascopy
User avatar

User rating: 288
Joined: Thu 18 Apr, 2013, 09:26
Posts: 1496
Location: Switzerland, Geneva
Greetings,

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

Enjoy!


 

Jump to:  

cron
  © 1998-2011 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com