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 ) == DataSetSymbols0 ) PrintDebug( "First Run on " + Bars.Symbol ); // And here we finish: if( (string)GetGlobal( strName ) == DataSetSymbolsDataSetSymbols.Count-1 ) { PrintDebug( "Last Run on " + Bars.Symbol ); ClearGlobals(); } }
protected override void Execute() { if (DataSetSymbols0 == Bars.Symbol) PrintDebug( "First run on: " + Bars.Symbol ); if (DataSetSymbolsDataSetSymbols.Count -1 == Bars.Symbol) PrintDebug( "Last run on: " + Bars.Symbol ); }