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.

Indicator issue
 Post subject: Indicator issue Post rating: 0   Post Posted: Sun 16 Sep, 2012, 20:48 

User rating: 1
Joined: Sun 22 Jul, 2012, 13:35
Posts: 40
Hello support,

Is possible acces to open orders from IIndicator? I need to draw PL according to specific criteria (instrument, direction, label, etc.).

It is analogy profit loss indicator in ITesterChartController.

Thank You


 
 Post subject: Re: Indicator issue Post rating: 0   Post Posted: Mon 17 Sep, 2012, 07:16 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
No, you should call indicator from the strategy and make your orders from the strategy.


 
 Post subject: Re: Indicator issue Post rating: 0   Post Posted: Mon 17 Sep, 2012, 07:57 

User rating: 1
Joined: Sun 22 Jul, 2012, 13:35
Posts: 40
Thank you for answer, but i need not to manage positions, only draw PL lines according to specific criteria. For example one output will draw current P/L from open EURUSD positions, other one from open GBPUSD etc...


 
 Post subject: Re: Indicator issue Post rating: 0   Post Posted: Wed 19 Sep, 2012, 14:11 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
A strategy can also draw such lines or strategy can call an indicator by passing the P/L value as an optional input. However, as we mentioned, already before, indicators don't have access to order data.


 

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