and also, how can I retrieve the property of an existing market analyser column programmatically? I have the notes column customized. but I want to run some scans based on this column value. how can I retrieve the value programmatically so I can do a quick cross above or cross below comparision.
public class CrossAbove : MarketAnalyzerColumn { protected override void OnStateChange() {if (State == State.SetDefaults) { Description = "crossabove"; Name = "crossabove"; IsDataSeriesRequired = false; DataType = typeof(string); IsEditable = true; } } protected override void OnMarketData(Data.MarketDataEventArgs marketDataUpdate) { int a; // if (marketDataUpdate.MarketDataType == MarketDataType.Ask ) // { // Print(DateTime.Now + marketDataUpdate.Instrument.FullName + marketDataUpdate.Instrument.MasterInstrument.FormatPrice(marketDataUpdate.Price) + "Crossed below ask" + mobject.ask ); // } }
Comment