public FXCommodityClose(QREBridgeBase bridge, Symbol symbol) : base(bridge, symbol, bars => commoditySignal(bridge.arguments().parameters.get <int>("signal"), bars)) { maFX = new Average(bars.close, maDays); currencyReversed = symbol.name.StartsWith("USD"); maxBarsHeld = parameter <int>("MaxBarsHeld"); addToPlot(upperBand, "UpperBand", Color.Blue, "Commodity"); addToPlot(lowerBand, "LowerBand", Color.Blue, "Commodity"); addToPlot(ma, "commodMovingAverage", Color.Red, "Commodity"); }
public MultipleSymbolsExample(QREBridgeBase bridge) : this(bridge, bridge.arguments().symbols) { }
public SectorRotationShort(QREBridgeBase bridge) : this(bridge, bridge.arguments().symbols) { }
public void writeCurveFiles(QDirectory directory) { bridge.statistics().writeCurveFiles(bridge.arguments().liveSystem(), directory); }