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

how to make the strategy to work on only one instrument?
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=141&t=51282
Page 1 of 1

Author:  chxaoao [ Thu 22 May, 2014, 10:56 ]
Post subject:  how to make the strategy to work on only one instrument?

I made some strategy that the close of last trade will trigger the next trade open. But sometimes it trigger the next trade in another instrument.
This only happens when I use the strategy in Jforex (remote run), in visual jforex I had no problem.
Is there some way to get around this? Thanks!

Author:  amine_chourou [ Thu 22 May, 2014, 12:27 ]
Post subject:  Re: how to make the strategy to work on only one instrument?

Greetings,

Did the strategy subscribed to a proper currency pair and trade on another ?
Can we have a look on your vfs file in order to provide accurate help?

Thx

Author:  chxaoao [ Fri 23 May, 2014, 20:48 ]
Post subject:  Re: how to make the strategy to work on only one instrument?

Hi:

Thanks for your reply. I did apply the strategy on the right currency. If I only trade one currency in one account, that's no problem. But once I trade some other currency, the strategy is confused. It's even more confused if I apply the strategy on several currencies at the same time. Hope you can find my error from the jfx file.

The strategy is quite simple, just reverse the direction and put a new order once the SL is triggered, I made this to be able to start the trading loop from my phone. It's close to be done and I appreciate your help in making it really working.

Attachments:
SemiMartingale_market3_multiple.jfx [28.84 KiB]
Downloaded 89 times

Author:  amine_chourou [ Mon 26 May, 2014, 13:57 ]
Post subject:  Re: how to make the strategy to work on only one instrument?

Greetings,

Thanks for the provided information but this forum is dedicated to Visual Jforex strategy builder platform. If you need support on your Jfx strategy please re-post your question under automated trading section.
ps: you may be asked to post a .java file rather than a compiled one;
Thanks

Author:  chxaoao [ Mon 26 May, 2014, 20:17 ]
Post subject:  Re: how to make the strategy to work on only one instrument?

Oh Sorry. I just realized I could export the .vjf file format. So here it is as attached. Thanks for your help!

Attachments:
SemiMartingale_market3_multiple.vfs [50.82 KiB]
Downloaded 98 times

Author:  amine_chourou [ Tue 27 May, 2014, 12:06 ]
Post subject:  Re: how to make the strategy to work on only one instrument?

Greetings,

Thanks for that./ Your strategy doesn't trade at all, at least the attached version as "Begin" variable is stuck at 0 value. On the other hand, subscribing to an instrument out of the trade Event start point is not needed and doesn't make sens so you can delete this block/
feel free to raise any question...

Thx

  Page 1 of 1