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.

Attaching a strategy to specific chart
 Post subject: Attaching a strategy to specific chart Post rating: 0   Post Posted: Mon 22 Aug, 2011, 17:24 

User rating: 0
Joined: Fri 19 Aug, 2011, 20:29
Posts: 45
Location: Germany,
What would be the best way to make a strategy attach to a specific chart? e.g. I got 3x EURUSD M1 open and want to attach different strategies to each individual chart.

Thanks


 
 Post subject: Re: Attaching a strategy to specific chart Post rating: 0   Post Posted: Tue 23 Aug, 2011, 08:00 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
In JForex a strategy is not necessarily coupled with a chart - one strategy might work with multiple charts and in many cases it works with none. From a stratetgy charts are used to plot chart objects and indicators. You can retrieve a chart for a specific instrument by using IContext.getChart(instrument) and all charts for the instrument by IContext.getCharts(instrument). Find more here:
https://www.dukascopy.com/wiki/index.php?title=IChart


 

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