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.

Function - Main Rutin / SubRutin Data Exchange
 Post subject: Function - Main Rutin / SubRutin Data Exchange Post rating: 0   Post Posted: Sun 24 Jun, 2012, 16:55 

User rating: 2
Joined: Tue 08 Nov, 2011, 15:23
Posts: 29
Location: Slovenia,
.... All strategy examples are done in common java file. I would like to distribute logic-rutin into more files. For example one file is handling account issues, the other logging issues, third is handling decision creteria and data reading, fourth is doing trading etc.. In MT4 this was done by using functions ..

I would appreciate example (function deffinition -Send Data variables, Get Data Variables) where main rutin is connected with subrutin. Main rutin is sending values to subrutin, sub-rutin once finished return value to main rutin ..


 
 Post subject: Re: Function - Main Rutin / SubRutin Data Exchange Post rating: 2   Post Posted: Sun 24 Jun, 2012, 20:13 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi Federro:

wow, a lot of questions:

With JForex strategies you can access your external jar files with the annotation "@Library("path_your_lib1;path_your_lib2;and_so_on"). Wiki example here.
Also you can do inner classe objects inside your strategy file. One example of that can be this strategy from other user with external jar and modified by me to not need the external jar here. Here with both examples (the original strategy and my modifications) you can see examples for both of your questions.

Trade well and good luck

JL


 

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