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.

getLabel
 Post subject: getLabel Post rating: 0   New post Posted: Sun 02 Jan, 2011, 20:56 

User rating: 0
Joined: Tue 15 Sep, 2009, 00:44
Posts: 20
After opening an order I am trying to capture the order label.

public class ............ IStrategy {
private IOrder MyOrder = null;

public boolean Order( .... ){
MyOrder = engine.submitOrder(getLabel(myInstrument), myInstrument, Type, Quantity, Entry, Slippage, Stop, Target);
string MyOrderLabel = MyOrder.getLabel();

I get the following error msg. The API shows getLabel() as a string. Why do I get the error msg?

error msg= 19:48:35 string cannot be resolved to a type


 
 Post subject: Re: getLabel Post rating: 0   New post Posted: Fri 07 Jan, 2011, 16:25 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
Please use String MyOrderLabel with capital S.


 

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