I need to find manually drawn Horizontal Line price in strategy to use it in simple algorithm: when current price crosses Horizontal Line price go long.
My main issues is to find price of drawn Horizontal Line. I am using this code to filter and find Horizontal Line in Objects lists.
foreach (DrawingTool draw in DrawObjects) { if (draw.GetType().Name == "HorizontalLine") { Print("Name: " + draw.Name + " GetType().Name: " + draw.GetType().Name + " draw.Tag: " + draw.Tag + " draw.Tag: "); } }
Please help me.
Thank you.
Comment