Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

compile error
 Post subject: compile error Post rating: 0   New post Posted: Wed 21 Mar, 2012, 02:11 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
hello support,

i'm complety newbie on programming so be patient with me please.

i try to compile a strategy that i modified, but i have a error and i don't understand why.
i looked on the net but i have found nothing about it.
could you help me please.

error message when compile :

00:56:16 The method submitOrder(IEngine.OrderCommand, double) in the type TwoBarStratmodifytrailing is not applicable for the arguments (IEngine.OrderCommand, double, double)
00:56:16 ^^^^^^^^^^^
00:56:16 order = submitOrder(OrderCommand.SELLLIMIT, sellPrice, askBar.getClose());
00:56:16 2. ERROR in C:\DOCUME~1\root\LOCALS~1\Temp\jfxide\tmp\compile\TwoBarStratmodifytrailing.java (at line 130)
00:56:16 ----------
00:56:16 The method submitOrder(IEngine.OrderCommand, double) in the type TwoBarStratmodifytrailing is not applicable for the arguments (IEngine.OrderCommand, double, double)
00:56:16 ^^^^^^^^^^^
00:56:16 order = submitOrder (OrderCommand.BUYLIMIT, buyPrice, bidBar.getClose());
00:56:16 1. ERROR in C:\DOCUME~1\root\LOCALS~1\Temp\jfxide\tmp\compile\TwoBarStratmodifytrailing.java (at line 124)

my syntax seem good for me :roll: . i use demo platform version 2.6.60.1.

best regards


Attachments:
TwoBarStratmodifytrailing.java [13.87 KiB]
Downloaded 267 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: compile error Post rating: 0   New post Posted: Wed 21 Mar, 2012, 08:30 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This is because you pass 3 arguments to the function instead of 2.


 
 Post subject: Re: compile error Post rating: 0   New post Posted: Wed 21 Mar, 2012, 11:22 

User rating: 1
Joined: Wed 07 Mar, 2012, 05:56
Posts: 101
Location: New CaledoniaNew Caledonia
ok thanks you.


 

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