Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Add strategy
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=81&t=52195
Page 1 of 1

Author:  volforex [ Wed 28 Jan, 2015, 18:09 ]
Post subject:  Add strategy

Hello !

I cannot find out how to add the same strategy to a different pair chart .I can only for 1 pair.?

Thanks

Author:  tcsabina [ Mon 02 Feb, 2015, 12:51 ]
Post subject:  Re: Add strategy

Hi,

A strategy is 'listening' to events from every instrument, not only those that have an opened chart.
For example onTick(), onBar() has an instrument parameter that is telling you which instrument received a new tick, bar.

But if don't explicitly exclude to not to listen to a specific instrument (by creating an check in the code), the strategy will catch every price movement for every instrument, by default.


If I am not mistaken, there is a slight difference in this concept when a strategy is running in the Remote environment, because there you have to explicitly subscribe to instruments which you want to listen to, but let's not get too far yet.


So, you don't 'add' a strategy to a 'pair', like you do it in MetaTrader. You just start the strategy and it will listen to every instrument.

Hope this helps.

  Page 1 of 1