You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The Indicator I'm making works this way, it reads the Histogram bars of this custom indicator I made (MACD from TradingView). It finds the previous 4 chunks of bars separated by groups of above or below 0, then inside each group it finds the highest candle in the Price chart (if bars are above 0) and the lowest candle in the Price chart (if bars are below 0), finally it draws a trend line connecting the 2 high candles and the 2 low candles.
For now I'm trying to get the code to find and store those values, to check if the values are correct I want it to draw vertical lines at the beginning and at the end, but it draws the 4 lines at the candle (1).