Esempio n. 1
0
 public static double GetMinTradeVolumeForSymbol(this SymbolHandle symbol)
 {
     if (Currencies.Symbols.Contains(symbol.LongAsset))
     {
         return(1000);
     }
     else if (Indices.Symbols.ContainsKey(symbol.LongAsset))
     {
         return(0.1); // Sometimes also 1
     }
     else if (symbol.LongAsset == "BTC")
     {
         return(0.01);
     }
     return(double.NaN);
     // TODO ENH - allow configuration of this, to allow the user to choose the minimum for whatever broker they plan to trade with.
     //var broker = trade.Component.BacktestResult.Broker
 }
Esempio n. 2
0
 public SymbolProvider(ProcessHandle processHandle)
 {
     _handle = new SymbolHandle(processHandle);
 }
Esempio n. 3
0
 public SymbolProvider()
 {
     _handle = new SymbolHandle();
 }
Esempio n. 4
0
 public SymbolProvider(ProcessHandle processHandle)
 {
     _handle = new SymbolHandle(processHandle);
 }
Esempio n. 5
0
 public SymbolProvider()
 {
     _handle = new SymbolHandle();
 }
 public static extern SymbolHandle agprvattr(EdgeHandle component, SymbolHandle attribute);
 public static extern SymbolHandle agnxtattr(NodeHandle component, SymbolHandle attribute);