Support, resistance and pivot lines
-
Hi. I want to make an EA opening and closing trades based on the S/R and pivot lines. Please advise how to get the lines to be drawn at spaces/angles similar to those in TradingView (see screenshots below). The TradingView settings are the same as the ones in the link below and MT5 screenshot - so I'm not sure why the lines appear so distinctly different.
Link - https://fxdreema.com/shared/S23LhcUyc
TradingView:

MT5:

-
Do you really need to see the lines? That will make a very cumbersome code in fxDreema that will be terrible to optimize. Using variables will hide the lines but will make the code far more efficient.
-
The final EA won't need to actually draw the lines - the above is merely for demonstration. I only want to know what settings I should use for the lines to be in same position/space/distance from the current price as the ones from the TradingView i.e. the current settings make the lines much closer to the price; also, the lines change positions too frequently
-
First and foremost you need to start with that blue line. I'm assuming that everything else hinges off of it. Don't worry about the other lines now. Use a trendline like trading view has and see if your lines matches up with the trading view chart. Once you are lined up with that, then proceed to the next step.
-
@JayPhillbrooks Agreed.