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.

Strategy error
 Post subject: Strategy error Post rating: 0   New post Posted: Sat 24 Sep, 2011, 16:40 

User rating: 0
Joined: Sat 24 Sep, 2011, 16:10
Posts: 16
Location: Netherlands, Rotterdam
Good day,

(Please don't move this topic to a sub-forum where nobody will ever read it.)

I would very much appreciate some help with the following 3 errors I get when compiling my strategy that I converted to java from mq4. I have zero knowledge about coding.

The method seta(String, int, double, double, int, int, int) in the type Pivot_1 is not applicable for the arguments (String, int, long, double, int, Color, int)
^^^^
seta(Name,0,TimeCurrent(),High(iHighest(null,0,MODE_HIGH,5,0)),234,Red,2);

The method OE(int, int, boolean, boolean, String) in the type Pivot_1 is not applicable for the arguments (int, int, Number, boolean, String)
^^
return OE(Magic.intValue(), tipo.intValue(), any, Bool(false), "".toString());

The method SendOrder(String, int, double, double, String, double, double, int, boolean) in the type Pivot_1 is not applicable for the arguments (Instrument, int, double, double, String, int, int, int, boolean)
^^^^^^^^^
SendOrder(Instrument(),0,PercentRisk,Ask,EAName,TakeProfit,StopLoss,MagicNumber,false);

I really hope some can help me out. It would be greatly appreciated.

Kind regards,

Martin


 
 Post subject: Re: Strategy error Post rating: 0   New post Posted: Mon 26 Sep, 2011, 08:00 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We need full strategy source code in order to assist you, please send it to [email protected] with a reference to this post.


 
 Post subject: Re: Strategy error Post rating: 0   New post Posted: Mon 26 Sep, 2011, 15:33 

User rating: 0
Joined: Sat 24 Sep, 2011, 16:10
Posts: 16
Location: Netherlands, Rotterdam
Dear support,

Could you please only tell me if the following three lines are valid java coding language? And if not what would be the correct code or keyword? I don't really like the idea of sending my strategy source code.


seta(Name,0,TimeCurrent(),High(iHighest(null,0,MODE_HIGH,5,0)),234,Red,2);

return OE(Magic.intValue(), tipo.intValue(), any, Bool(false), "".toString());

SendOrder(Instrument(),0,PercentRisk,Ask,EAName,TakeProfit,StopLoss,MagicNumber,false);


Martin


 
 Post subject: Re: Strategy error Post rating: 0   New post Posted: Mon 26 Sep, 2011, 15:52 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The error you get means, that there have not been generated several methods that your strategy calls. In order to fix it manually, the strategy source is needed.


 

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