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.

Auto Launching from within JForex
 Post subject: Auto Launching from within JForex Post rating: 0   Post Posted: Thu 07 Mar, 2013, 17:14 
User avatar

User rating: 0
Joined: Thu 13 Oct, 2011, 17:27
Posts: 21
Location: SwitzerlandSwitzerland
hello, i have read this
https://www.dukascopy.com/wiki/#Auto_launching
and i am wondering if you could kindly also provide an example for within JForex.

Assume there are 4 strategies stored in my workspace, called
main.java,
strategy1.java,
strategy2.java,
strategy3.java

I would like to manually start the main.java and this one should then automatically start all the strategy1-3.java.
Those strategy1-3.java should not ask for settings but simply run with their default parameters.

Also when i stop main.java it should stop strategy1-3.java before stopping itself. So basically the purpose of main.java is only the management of those other strategies which are trading one currency pair each.

What would be outstanding is if main.java collects one boolean "Answer" upon startup and hands over my input for "Answer" as a public variable to each strategy. Thus i could run the strategies in 2 different modes depending if "Answer" was yes or no.

Thank you for your help.


 
 Post subject: Re: Auto Launching from within JForex Post rating: 0   Post Posted: Thu 07 Mar, 2013, 17:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
See:
https://www.dukascopy.com/wiki/#JForex_SDK/Running_strategies


 

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