protected override void Execute() { string strName = StrategyName; // Save current symbol in Wealth-Lab's global memory SetGlobal( strName, Bars.Symbol ); // Here we kick in: first symbol detected if( (string)GetGlobal( strName ) == DataSetSymbols[0] ) PrintDebug( "First Run on " + Bars.Symbol ); // And here we finish: if( (string)GetGlobal( strName ) == DataSetSymbols[DataSetSymbols.Count-1] ) { PrintDebug( "Last Run on " + Bars.Symbol ); ClearGlobals(); } }
protected override void Execute() { if (DataSetSymbols[0] == Bars.Symbol) PrintDebug( "First run on: " + Bars.Symbol ); if (DataSetSymbols[DataSetSymbols.Count -1] == Bars.Symbol) PrintDebug( "Last run on: " + Bars.Symbol ); }