Dukascopy
 
 
Wiki JStore Search Login

Build error - JSON decoding error: 4
 Post subject: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Sat 15 Jun, 2013, 09:05 
User avatar

User rating: 0
Joined: Thu 13 Jun, 2013, 08:09
Posts: 13
Location: China, Shanghai
I was trying to "Compiler -> Build" my strategy, but unfortunately hit the error: JSON decoding error: 4.

I have checked the thread below, but did not address the build problem.

https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=139&t=49224&p=71289&hilit=json+decoding+error#p71289

Anyone has the idea that what is going wrong? Is it because of my strategy logic?


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Mon 17 Jun, 2013, 12:30 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Greetings.

That is a bug. And it is hard to "catch".
Please provide the strategy or any details to reproduce that error.
Thanks in advance.


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Wed 19 Jun, 2013, 03:13 
User avatar

User rating: 0
Joined: Thu 13 Jun, 2013, 08:09
Posts: 13
Location: China, Shanghai
vadim_berezhnoj wrote:
Greetings.

That is a bug. And it is hard to "catch".
Please provide the strategy or any details to reproduce that error.
Thanks in advance.


Hi vadim_berezhnoj,

So far I still cannot build my strategy. This strategy is my "advanced trailing stop", with LastTick, OpenPosition and OriginalSLPips passed in.
It will be called by my main strategy, but independently I am not able to build it, so that I cannot drag and drop it to my main strategy from "My Strategies" panel.

Attached files are the error screenshot and the VFS file. Thanks.

Image


Attachments:
AdvTrailingStop.png [400.38 KiB]
Downloaded 1135 times
AdvancedTrailingStop.vfs [58.36 KiB]
Downloaded 721 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: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Fri 28 Jun, 2013, 15:14 
User avatar

User rating: 0
Joined: Fri 08 Feb, 2013, 09:11
Posts: 3
Location: BulgariaBulgaria
And I have same error, help please ...


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Mon 01 Jul, 2013, 15:42 
User avatar

User rating: 11
Joined: Tue 05 Feb, 2013, 10:39
Posts: 104
Location: Romania, Iasi
Same error here. Strategy used to work fine... now it doesn't anymore.
I get this error when I try to upload it to contest.
I attached a screen of my strategy. Can anyone tell me why that red glow is there ?
I'm thinking it's an error of somekind... but I can't figure it out.
Image


Attachments:
File comment: Strategy
Screen.jpg [393.1 KiB]
Downloaded 1054 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: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Tue 02 Jul, 2013, 10:08 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Hello Everyone.

"JSON decoding error: 4" - is a main bug for today. We are working on it. Thanks for your reports, it really helps.


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Wed 17 Jul, 2013, 09:59 

User rating: 0
Joined: Fri 12 Jul, 2013, 12:21
Posts: 57
Hi Guys,

I have the same problem as you all. Any way to fix this?


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Wed 17 Jul, 2013, 13:05 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Hello Bmvajta.
We've captured that bug. It'll be corrected ASAP.


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Thu 01 Aug, 2013, 07:13 
User avatar

User rating: 3
Joined: Fri 28 Jun, 2013, 17:16
Posts: 39
vadim_berezhnoj wrote:
Hello Bmvajta.
We've captured that bug. It'll be corrected ASAP.


I am pretty sure that's code overflow! My strategy has approximately 200 blocks over there. It'll show the "JSON decoding error: 4" warning message when I click "build". So, I cut it out around 100 blocks, and it works again.
Please fix it, it's despaired! :cry:


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Thu 01 Aug, 2013, 21:51 
User avatar

User rating: 11
Joined: Tue 05 Feb, 2013, 10:39
Posts: 104
Location: Romania, Iasi
I use around 15 blocks and I get the Error. I think this error is too generic.
It could be very helpful both ways to know the exact trigger for the error. At least what is meant for...
Just a thought.

Cheers


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Fri 02 Aug, 2013, 06:41 

User rating: 2
Joined: Thu 25 Jul, 2013, 08:40
Posts: 58
Location: ItalyItaly
Hi all!!
I've tried to re-write my strategy and then when i build it no error appear..
maybe you can try to re-write..


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Fri 02 Aug, 2013, 07:32 
Visual JForex expert at Dukascopy
User avatar

User rating: 27
Joined: Fri 03 May, 2013, 18:25
Posts: 366
Location: GermanyGermany
Hey all!

Thank you for the effort helping to find where the error is.

I kindly ask you to upload the concerned strategy and the time when you have tried to build it. After that the developers can reproduce the error message and they will be fixing the problems.

Thanks in advance!!!

Regards


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Fri 02 Aug, 2013, 07:48 
User avatar

User rating: 3
Joined: Fri 28 Jun, 2013, 17:16
Posts: 39
Lord! You gotta be kidding me! I got the same error message everywhere, even I log in VJF this morning, and failed. What the hxxx is this "JSON decoding error:4"!

Image


Attachments:
Error.JPG [35.89 KiB]
Downloaded 1085 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: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Fri 02 Aug, 2013, 08:07 
User avatar

User rating: 3
Joined: Fri 28 Jun, 2013, 17:16
Posts: 39
Loukota29EU wrote:
Hi all!!
I've tried to re-write my strategy and then when i build it no error appear..
maybe you can try to re-write..


Re-write?! 200 blocks?! thank you buddy, no!


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Sat 03 Aug, 2013, 10:33 
User avatar

User rating: 3
Joined: Fri 28 Jun, 2013, 17:16
Posts: 39
Thank god, DUKASCOPY genius guys fixed the crucial code overflow issue! I just tested my 200 blocks strategy,and building source again, bingo!
About the log in problem, it still going on. Whatever, I can get over it. Such as register a new ID, it seems no longer pop out the error massage again!
Thank you VJF team's contribution and effort!


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Wed 11 Sep, 2013, 22:18 

User rating: 0
Joined: Thu 03 May, 2012, 08:50
Posts: 1
Location: Slovenia, Portoroz
Hi !
I have the same problem. Could anyone please help me ?
this is my strategy.
thanks !


Attachments:
luis.vfs [26.65 KiB]
Downloaded 434 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: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Wed 25 Sep, 2013, 20:07 
User avatar

User rating: 11
Joined: Tue 05 Feb, 2013, 10:39
Posts: 104
Location: Romania, Iasi
Almost 2 months now.... still no fix for that JSON Error: 4... :|


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 1   New post Posted: Thu 26 Sep, 2013, 13:46 
User avatar

User rating: 3
Joined: Tue 09 Oct, 2012, 11:59
Posts: 20
Location: Finland, Turku
From the limited amount i know and this is not a fix or anything, just how i deal with them, not even 100% sure how it helps but it does as I also get them Json errors at times.

1
Something wrong in my variables, it is calling for something that is not calculated, some for example a calculation I deleted but the variable is still in a IF block, so I check everything by running the tester and pulling every variable out an look that it is working, over 100 variables easy at times.

2
If this dosen't work and all looks OK I delete in user variables, all order related ie. CurrentPosition etc. might be multiple ones depending on strategy but even if only a single one.
Then i remove any Calculate Expressions, drag them to the side and replace them with multiple calculations.
After that i make groups, as big ass possible, maybe 3 to 4, leaving out the items that cant be in a group of course.
Start a new strategy, copy paste the groups into that, manually add the few items that could not be copy pasted in a group.
Save as draft, export to computer, add new user position names and compile, works for me almost always.

3
In the case that it dosent work i repeat step 2 but also delete all open position, close position, position viewer, any position related block, from work space and user variables and once in the new strategy i save draft, export to computer and compile it without any pos info. Havent had a problem after doing that, add one thing, save as version number 002 draft and export and so on, leaving the calculate expression out untill i have it working as I want and then maybe replacing multiple calculations with expressions.

Sorry this is not very scientific and have no idea why it works but it does work for me and i always have one version back to revert to if i get a problem.

Edit: I newer import data from another strategy that contains any order related information, for example in my library of components for strategies, money management or whatever i have saved for further use, I only copy paste the complex parts, newer any pos info, ie open, close or whatever even if it has the default position naming scheme in use in the strategies I build, somehow I believe this is the biggest cause of json errors.

And again this is just how I work with them, no idea why but but it works for me, hope it helps you.


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Thu 26 Sep, 2013, 21:02 
User avatar

User rating: 11
Joined: Tue 05 Feb, 2013, 10:39
Posts: 104
Location: Romania, Iasi
Fusion wrote:
From the limited amount i know and this is not a fix or anything, just how i deal with them, not even 100% sure how it helps but it does as I also get them Json errors at times.

1
Something wrong in my variables, it is calling for something that is not calculated, some for example a calculation I deleted but the variable is still in a IF block, so I check everything by running the tester and pulling every variable out an look that it is working, over 100 variables easy at times.

2
If this dosen't work and all looks OK I delete in user variables, all order related ie. CurrentPosition etc. might be multiple ones depending on strategy but even if only a single one.
Then i remove any Calculate Expressions, drag them to the side and replace them with multiple calculations.
After that i make groups, as big ass possible, maybe 3 to 4, leaving out the items that cant be in a group of course.
Start a new strategy, copy paste the groups into that, manually add the few items that could not be copy pasted in a group.
Save as draft, export to computer, add new user position names and compile, works for me almost always.

3
In the case that it dosent work i repeat step 2 but also delete all open position, close position, position viewer, any position related block, from work space and user variables and once in the new strategy i save draft, export to computer and compile it without any pos info. Havent had a problem after doing that, add one thing, save as version number 002 draft and export and so on, leaving the calculate expression out untill i have it working as I want and then maybe replacing multiple calculations with expressions.

Sorry this is not very scientific and have no idea why it works but it does work for me and i always have one version back to revert to if i get a problem.

Edit: I newer import data from another strategy that contains any order related information, for example in my library of components for strategies, money management or whatever i have saved for further use, I only copy paste the complex parts, newer any pos info, ie open, close or whatever even if it has the default position naming scheme in use in the strategies I build, somehow I believe this is the biggest cause of json errors.

And again this is just how I work with them, no idea why but but it works for me, hope it helps you.


Thx for the detailed information... I'll try that, maybe it works.
The thing that bothers me the most is the 15 points bonus in the strategy contest for people who use VJFx and I can't use it !

Cheers


 
 Post subject: Re: Build error - JSON decoding error: 4 Post rating: 0   New post Posted: Fri 27 Sep, 2013, 18:19 
User avatar

User rating: 3
Joined: Tue 09 Oct, 2012, 11:59
Posts: 20
Location: Finland, Turku
Ahh, the contest, hope it works, as I am going to need some competition after I gate the latest bot running :D


 

Jump to:  

cron
  © 1998-2025 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