com.dukascopy.api
Interface IStrategies


public interface IStrategies


Method Summary
 long startStrategy(java.io.File jfxFile, IStrategyListener listener, java.util.Map<java.lang.String,java.lang.Object> configurables, boolean fullAccess)
           
 long startStrategy(IStrategy strategy, IStrategyListener listener, boolean fullAccess)
           
 void stopAll()
          Stop all nested strategies started by either startStrategy(IStrategy, IStrategyListener, boolean) or startStrategy(File, IStrategyListener, Map, boolean).
 void stopStrategy(long strategyId)
           
 

Method Detail

startStrategy

long startStrategy(java.io.File jfxFile,
                   IStrategyListener listener,
                   java.util.Map<java.lang.String,java.lang.Object> configurables,
                   boolean fullAccess)
                   throws JFException
Throws:
JFException

startStrategy

long startStrategy(IStrategy strategy,
                   IStrategyListener listener,
                   boolean fullAccess)
                   throws JFException
Throws:
JFException

stopStrategy

void stopStrategy(long strategyId)
                  throws JFException
Throws:
JFException

stopAll

void stopAll()
             throws JFException
Stop all nested strategies started by either startStrategy(IStrategy, IStrategyListener, boolean) or startStrategy(File, IStrategyListener, Map, boolean).
NOTE: The strategy that uses this method has not been stopped and must have full access rights granted.

Throws:
JFException - if main strategy has no full access, if error has been thrown on stopping of any executed strategy.