Tradingview into ninjatrader
Budget: $250 – $750 USD
Looking to convert tradingview pinescript code into ninjatrader code In essence, this indicator visually presents a series of target price lines based etf version of the future. So for instance shows QQQ levels on NQ chart. It's useful for traders who base their trading strategies on the ETF, but want to trade futures 1. Script Configuration: This section sets up the main settings for the indicator. It accepts user input for the line width, date input, smoothing value for lines, and the ticker symbols for the ETF and future. 2. Target Price Line Inputs: The user can define up to 12 target price levels. For each level, they can specify: A unique color. The Price Target (This is the etf price level in which I want to be shown on the future equivalent). A custom label. 3. Calculation of the ETF to Future Ratio The script fetches the closing prices of the provided ETF and future symbols. The ratio is calculated by dividing the closing price of the future by the ETF closing price. This then gives the difference which helps us calculate the lines 4. Price Target Lines Calculation: For each of the user-defined target price levels, the script calculates a line value. This is done by multiplying the ETF to future ratio with the user-provided pricetarget. To smoothen out any fluctuations, these values are then passed through a simple moving average (SMA) with a period defined by the user. 5. Plotting Price Target Lines: The script plots the calculated lines on the chart with user-defined colours and widths. 6. Creating Labels for Price Target Lines: For each line, the script creates a label that shows the target level and a user-defined text. 7. Deleting Previous Labels: As new labels are created with each bar/candle on the chart, to avoid clutter, the previous labels are deleted. Down below is a picture showing you what it looks like. You can see it has plotted the price target using a SMA on NQ chart from getting the level from the etf QQQ. I also attached the code for reference