Dukascopy
 
 
Wiki JStore Search Login

please give the right button strategy start in workspace back
 Post subject: please give the right button strategy start in workspace back Post rating: 0   New post Posted: Mon 20 Feb, 2012, 12:03 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
The new demo version is complicated. I cannot start/stop a strategy with the right click in the workspace.
I always have to go to the Strategy tab. If one develops a new strategy this is quite complicated, because one has to do this very often.
Please redo this workspace feature.

Also if you save an existing strategy with another name. It is not changed any more in the tab and in the workspace.
Please redo this feature.

Found in
JForex Demo
Dukascopy ver. 2.14.24.3
JForex API 2.6.58


 
 Post subject: Re: please give the right button strategy start in workspace back Post rating: 0   New post Posted: Sun 18 Mar, 2012, 19:39 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
There is another circumstantial issue.
If you take an existing strategy, save it with another name and compile it, the name of the new strategy is not changed in the Workspace and in the Strategies/Historical Tester tabs. It keeps the old name still.
So you have to remove this strategy and reopen the just compiled one, then you can go to the Strategies or Historical Tester tab and start your test (after another 2-3 clicks).
This is very circumstantial!
I really miss the old version where in Workspace you get the actual name and you can start a strategy with the right mouse click. This is way easier than now!

Dukascopy DEMO ver. 2.14.28.4
JForex API ver. 2.6.60.1


 
 Post subject: Re: please give the right button strategy start in workspace back Post rating: 0   New post Posted: Tue 20 Mar, 2012, 13:44 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
I'm in too !

Already posted this demand here : viewtopic.php?f=84&t=46899


 
 Post subject: Re: please give the right button strategy start in workspace back Post rating: 0   New post Posted: Tue 20 Mar, 2012, 14:05 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
Yes and the new DEMO has many changes we here could not lay about for.
How to start and stop a strategy is completely different now.
If a strategy is stopped and then restarted again the java object of the strategy is not renewed, but the old (stopped) object is used again!
Before this change, when the start/stop of a strategy was still in the Workspace, JForex instantiated a new object of the strategy anytime you started the strategy.

E.g. if you have an object already instatiated outside the
public void onStart(IContext context) throws JFException
routine you have to change this now!
So tons of the old strategies do not work again if restarted in the strategy tab and have to be recompiled with this change background.

I really ask DC intensely to give us (developers)
1) A BETA link of the new DEMO version. So we can test it and can give feedback BEFORE the new version comes into practice as official DEMO.
2) Always keep official DEMO and LIVE at the same version, so tests are convincing.

Support! Does anybody hear me?
What is you opinion?


 
 Post subject: Re: please give the right button strategy start in workspace back Post rating: 0   New post Posted: Tue 20 Mar, 2012, 22:27 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
We will analyse your requests.


 
 Post subject: Re: please give the right button strategy start in workspace back Post rating: 0   New post Posted: Thu 22 Mar, 2012, 10:07 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
"Before this change, when the start/stop of a strategy was still in the Workspace, JForex instantiated a new object of the strategy anytime you started the strategy."

Could you please elaborate on this. The sample of the strategy would be highly appreciated.


 
 Post subject: Re: please give the right button strategy start in workspace back Post rating: 0   New post Posted: Thu 22 Mar, 2012, 11:00 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
My strategies are very complex, so I try to give you a simple example.
Therefore this is an assumption, I could not test it on the old platform any more.

package jforex;

import java.util.*;

import com.dukascopy.api.*;

public class StrategyTestShowNewInstance implements IStrategy {
    private IEngine engine;
    private IConsole console;
    private IHistory history;
    private IContext context;
    private IIndicators indicators;
    private IUserInterface userInterface;
   
    private String test = "Hello Dukascopy!";
    private boolean firstRun = true;
   
   
     
    public void onStart(IContext context) throws JFException {
        this.engine = context.getEngine();
        this.console = context.getConsole();
        this.history = context.getHistory();
        this.context = context;
        this.indicators = context.getIndicators();
        this.userInterface = context.getUserInterface();
       
        print(test);
    }

    public void onAccount(IAccount account) throws JFException {
    }

    public void onMessage(IMessage message) throws JFException {
    }

    public void onStop() throws JFException {
    }

    public void onTick(Instrument instrument, ITick tick) throws JFException {
        if (firstRun){
            firstRun = false;
            test = "This instance is restarted!";
        }
    }
   
    public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
    }
    public void print(String string) {
        console.getOut().println(string);
    }
}


in the current version this is the output if started - stopped - started in the strategies tab.
2012-03-22 09:55:55 This instance is restarted!
2012-03-22 09:55:51 Hello Dukascopy!

In the old version (start/stop in Workspace) this should give "Hello Dukascopy!" each time when it was started.


 
 Post subject: Re: please give the right button strategy start in workspace back Post rating: 0   New post Posted: Thu 22 Mar, 2012, 12:27 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1054
Location: Geneva, Switzerland
Fixed. Will be out next week on DEMO.


 
 Post subject: Re: please give the right button strategy start in workspace back Post rating: 0   New post Posted: Tue 10 Apr, 2012, 15:41 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
When on Live ?

Thanks


 

Jump to:  

cron
  © 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