Dukascopy
 
 
Wiki JStore Search Login

Error compiling indicator
 Post subject: Error compiling indicator Post rating: 0   New post Posted: Thu 15 May, 2014, 23:58 

User rating: 0
Joined: Thu 15 May, 2014, 23:49
Posts: 2
Location: Belgium, Brecht
Hello,

I am having trouble compiling my mq4 indicator.
Every time i get some errors:

10:10:50 ----------
10:10:50 TimeWrapperMql cannot be resolved to a type
10:10:50 ^^^^^^^^^^^^^^^
10:10:50
NewBar_LastTime=toDateTimeObject(iTime(toInstrument(Symbol()),toPeriod(Period()),toInt(0))+time_offset);
10:10:50 4. ERROR in C:\Users\Ruben\Local
Settings\JForex\Ruben\jfxide\tmp\compile\ShvedSupplyandDemande600.java (at
line 839)
10:10:50 ----------
10:10:50 TimeWrapperMql cannot be resolved to a type
10:10:50 ^^^^^^^^^^^^^^^
10:10:50 if
(notEqual(iTime(toInstrument(Symbol()),toPeriod(Period()),toInt(0))+time_offset,
toIntTime(NewBar_LastTime))){
10:10:50 3. ERROR in C:\Users\Ruben\Local
Settings\JForex\Ruben\jfxide\tmp\compile\ShvedSupplyandDemande600.java (at
line 838)
10:10:50 ----------
10:10:50 TimeWrapperMql cannot be resolved to a type
10:10:50 ^^^^^^^^^^^^^^^
10:10:50 NewBar_LastTime=toDateTimeObject(0);
10:10:50 2. ERROR in C:\Users\Ruben\Local
Settings\JForex\Ruben\jfxide\tmp\compile\ShvedSupplyandDemande600.java (at
line 835)
10:10:50 ----------
10:10:50 TimeWrapperMql cannot be resolved to a type
10:10:50 ^^^^^^^^^^^^^^
10:10:50 static TimeWrapperMql NewBar_LastTime;
10:10:50 1. ERROR in C:\Users\Ruben\Local
Settings\JForex\Ruben\jfxide\tmp\compile\ShvedSupplyandDemande600.java (at
line 168)
10:10:50 ----------

As i don't know how to add a file here i will add the link where the original indicator can be downloaded.
I hope this is oke.

https://www.forex-tsd.com/adownload.php? ... tid=197852

Anybody who can help me please?


 
 Post subject: Re: Error compiling indicator Post rating: 0   New post Posted: Fri 16 May, 2014, 16:07 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello!

This is Converter bug and it's fixed in next API release.


 
 Post subject: Problem compiling MQ4 indicator. Post rating: 0   New post Posted: Fri 16 May, 2014, 22:08 

User rating: 0
Joined: Thu 15 May, 2014, 23:49
Posts: 2
Location: Belgium, Brecht
Earlier today i tried to compile one of my MQ4 indicators for using it in Jforex.
Unfortunately i keep getting some errors and i was not in able to fix these.

Here are the errors i got.

10:10:50 ----------
10:10:50 TimeWrapperMql cannot be resolved to a type
10:10:50 ^^^^^^^^^^^^^^^
10:10:50
NewBar_LastTime=toDateTimeObject(iTime(toInstrument(Symbol()),toPeriod(Period()),toInt(0))+time_offset);
10:10:50 4. ERROR in C:\Users\Ruben\Local
Settings\JForex\Ruben\jfxide\tmp\compile\ShvedSupplyandDemande600.java (at
line 839)
10:10:50 ----------
10:10:50 TimeWrapperMql cannot be resolved to a type
10:10:50 ^^^^^^^^^^^^^^^
10:10:50 if
(notEqual(iTime(toInstrument(Symbol()),toPeriod(Period()),toInt(0))+time_offset,
toIntTime(NewBar_LastTime))){
10:10:50 3. ERROR in C:\Users\Ruben\Local
Settings\JForex\Ruben\jfxide\tmp\compile\ShvedSupplyandDemande600.java (at
line 838)
10:10:50 ----------
10:10:50 TimeWrapperMql cannot be resolved to a type
10:10:50 ^^^^^^^^^^^^^^^
10:10:50 NewBar_LastTime=toDateTimeObject(0);
10:10:50 2. ERROR in C:\Users\Ruben\Local
Settings\JForex\Ruben\jfxide\tmp\compile\ShvedSupplyandDemande600.java (at
line 835)
10:10:50 ----------
10:10:50 TimeWrapperMql cannot be resolved to a type
10:10:50 ^^^^^^^^^^^^^^
10:10:50 static TimeWrapperMql NewBar_LastTime;
10:10:50 1. ERROR in C:\Users\Ruben\Local
Settings\JForex\Ruben\jfxide\tmp\compile\ShvedSupplyandDemande600.java (at
line 168)
10:10:50 ----------

I will try to attach the original file.
Hope somebody can give me some idea's to fix these errors.


Attachments:
Shved Supply and Demand (e600)2.mq4 [48.98 KiB]
Downloaded 70 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.
 

Jump to:  

  © 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