仕事が完了した
指定
Hello,
I need to convert my simple MT5 indicator to Tradingview and have it worked the same way. I need this done ASAP.
This is what the indicator has currently:
-
Custom Indicator Initialization Function (indInit): This function initializes the settings for each buffer used in the indicator. It sets parameters such as buffer type, line width, color, and label.
-
OnCalculate Function: This function is called every time a new bar appears. It calculates the indicator values based on the current price data. In this script, it identifies swing highs and lows (fractals) based on certain conditions and calculates the moving average if enabled.
-
isHigh and isLow Functions: These functions determine whether a specific bar is a high or low fractal based on the high and low prices and the surrounding bars.
Overall, the indicator aims to visualize fractal points (swing highs and lows) on the chart along with an optional moving average line.
Thanks,
Joseph