string tradingSystemName = "ChartSystem"; Chart chart = Charts.GetSelectedChart(); if(chart != null) { // Get Chart's Data string symbol = chart.SymbolName; int timeframe = chart.TimeFrame; bool isEOD = chart.IsHistorical; string formula = ""; for(int i=0;i