Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
How to call one strategy from another strategy http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=46967 |
Page 1 of 1 |
Author: | ajayarora71 [ Mon 26 Mar, 2012, 16:46 ] |
Post subject: | How to call one strategy from another strategy |
Hello Support , I have created Trade Trigger Strategy and Trade Management Strategy.. Is it possible to call the Trade Management Strategy from Trade Trigger Strategy.. Please advise if it is possible.. Appreciate your quick help and response.. Thx Ajay. |
Author: | API Support [ Tue 27 Mar, 2012, 08:43 ] |
Post subject: | Re: How to call one strategy from another strategy |
See: https://www.dukascopy.com/wiki/#Multiple ... a_strategy |
Author: | ajayarora71 [ Wed 28 Mar, 2012, 16:35 ] |
Post subject: | Re: How to call one strategy from another strategy |
Thanks for your email.. Can I specify the location path of my strategy .JAVA or .jfx file instead of .jar file..? and what command I need to put for .JAVA or .jfx file instead of below from example code ************ @RequiresFullAccess @Library("C:/temp/simple-strategies.jar") <******** If I need to specify .jar file only then could you please tell me how to create a jarfile of a jforex strategy. Please note that my jforex strategy file is located in C:\JForex\Strategies\Strategy.java . Please also note that I do not know how to use Eclipse etc but I am familliar with Jforex interface only. Appreciate your help.. Waiting for your reply... Thx Ajay. |
Author: | API Support [ Thu 29 Mar, 2012, 10:52 ] |
Post subject: | Re: How to call one strategy from another strategy |
There are two ways how you can possibly invoke functions from another strategy:
So in either case 1. or 2. you need to compile the strategy outside the JForex platform, since in the JForex platform you can neither obtain .class nor .jar files. We strongly suggest you using an IDE for this purpose. The most popular of them is Eclipse. Have a look at the following tutorial (The 3rd section for the beginning is rather optional): https://www.vogella.de/articles/Eclipse/article.html And then import the Standalone API project: https://www.dukascopy.com/wiki/#Use_in_Eclipse And then export the jar file (see the turial's section 4.5). |
Author: | ajayarora71 [ Thu 29 Mar, 2012, 12:28 ] |
Post subject: | Re: How to call one strategy from another strategy |
Thanks for your email.. I have Netbeans installed on my computer, can I use Netbeans to create the .jar file. If yes, do you have any example or document which shows how to create a .jar file for a jforex strategy.. Please advise... Thx Ajay. |
Author: | API Support [ Thu 29 Mar, 2012, 13:33 ] |
Post subject: | Re: How to call one strategy from another strategy |
See the second post: viewtopic.php?f=65&t=46900&p=62731 |
Page 1 of 1 |