Relative Content

Tag Archive for pine-scriptpine-script-v5financetradingview-apitechnical-indicator

accurate calculation for pitchfork indicator

I’m working on creating a manual pitchfork drawing indicator in Pine Script (version 5). The issue I’m facing is that the pitchfork drawn by my indicator is not as accurate as the one drawn using the TradingView drawing tool. The main problem seems to be related to the fact that we can’t use float values for bar indices, which is causing the inaccuracy.