Save candle ID and Time on a variable and compare to another variable , after reaching a major or minor logic, draw trendline
-
Hello, i am Newbye of FxDreema, i am interested to create an EA that draws different support, resistance and trendline.
I know there are many indicators specifically designed for doing this job, but ther problem is that i dont have control upon them and also the logic behind is unknown.
so I was thinking about identifying the lowest price of the candle 1 and comparing to the lowest price of the previous candle 2, so i should get a Low Price value between these two. When a "New top" block is running there should start a (search for the tops with the same reversal logic of the previous serach for min).But my problem is to save the candle value and candle ID and Time in a variable and to use it to compare the second and third consecutive high or low with the previous ones, and i dont know how to start it. -