How to get price of Chart HLine objects and calculate Fibonacci levels
问题 Three part question: How to find 2 user created horizontal lines on a chart by name and return the price of each. Then determine which HLine was crossed by the price most recently to determine trend direction. Calculate Fibonacci levels based on prices and direction 回答1: Working example of Fibonacci object that can be edited by the user and printing of fibonacci levels. #include <ChartObjects/ChartObjectsFibo.mqh> CChartObjectFibo *Fibo; int OnInit() { Fibo = new CChartObjectFibo(); #Create