Import Tradingview indicator to Tradovate

Hi,

I don’t know uf the topis is here somewhere already, could not find the answers. I have pine script code for a indicator, which I want to use on Tradovate chart. Can someone please help me, how to easily convert the pine script to Java script.
Thank you very much in advance for your support.

Here is the pine script I need to convert:

//@version=5
strategy(“Nasdaq Futures Day Trading”, overlay=true)

// Define strategy parameters
fastLength = input(10, title=“Fast MA Length”)
slowLength = input(30, title=“Slow MA Length”)
profitTargetPercent = input(1, title=“Profit Target (%)”) / 100
stopLossPercent = input(1, title=“Stop Loss (%)”) / 100

// Calculate moving averages
fastMA = ta.sma(close, fastLength)
slowMA = ta.sma(close, slowLength)

// Strategy logic
enterLong = ta.crossover(fastMA, slowMA)
enterShort = ta.crossunder(fastMA, slowMA)

if (enterLong)
strategy.entry(“Long”, strategy.long)
strategy.exit(“TakeProfit/StopLoss”, from_entry=“Long”, profit=close * profitTargetPercent, loss=close * stopLossPercent)

if (enterShort)
strategy.entry(“Short”, strategy.short)
strategy.exit(“TakeProfit/StopLoss”, from_entry=“Short”, profit=close * profitTargetPercent, loss=close * stopLossPercent)

// Plot moving averages
plot(fastMA, title=“Fast MA”, color=color.blue)
plot(slowMA, title=“Slow MA”, color=color.red)

Hello, I can help you convert this strategy. Just message me

Hi,

Thank you for your response.

Where I can send you a message?

Hi need help to convert Tradingview indicator to tradovate

Greetings, which indicator do you want to convert?

i have several indicators that i would like converted. if you are able to do this i would be willing to pay you for your time. please advise. i group trade so i can simply just connect to trading view through tradeovate ( would be so simple !!) im sick of looking at multiple charts and would like to just have all the indicators i use in 1 space .

hi I can help. drop me an email to timmfain@gmail.com

hey need your help converting tradingview indicator to tradovate plz and thank you, indicator name is bbtrend.
//@version=5
indicator(“BBTrend”, timeframe=“”, timeframe_gaps=true)

shortLengthInput = input.int(20, “Short BB Length”, minval = 1)
longLengthInput = input.int(50, “Long BB Length”, minval = 1)
stdDevMultInput = input.float(2.0, “StdDev”, minval = 0.001)

[shortMiddle, shortUpper, shortLower] = ta.bb(close, shortLengthInput, stdDevMultInput)
[longMiddle, longUpper, longLower] = ta.bb(close, longLengthInput, stdDevMultInput)

BBTrend = (math.abs(shortLower - longLower) - math.abs(shortUpper - longUpper)) / shortMiddle * 100

posColorStrong = color.new(#089981, 25)
negColorStrong = color.new(#F23645, 25)
posColorWeak = color.new(#089981, 50)
negColorWeak = color.new(#F23645, 50)

histColor = switch
BBTrend > 0 and BBTrend >= BBTrend[1] => posColorStrong
BBTrend > 0 and BBTrend < BBTrend[1] => posColorWeak
BBTrend < 0 and BBTrend > BBTrend[1] => negColorWeak
BBTrend < 0 and BBTrend <= BBTrend[1] => negColorStrong
=> posColorWeak

plot(BBTrend, “BBTrend”, style = plot.style_columns, color = histColor)
hline(0, “Zero line”)

Hi
Send me an email on timmfain@gmail.com
I am code developer and will be happy do discuss this with you.