Conversion of PineScript strategy (TradingView)

Forums ProRealTime English forum ProBuilder support Conversion of PineScript strategy (TradingView)

Viewing 2 posts - 1 through 2 (of 2 total)
  • #225124

    I have a trading strategy developed in PineScript language, but I want to be able to backtest it on ProRealTime. It is not a particularly complex strategy, it is based around a single indicator on TradingView. A lot of the code is related to how to display the strategy on a chart which isn’t needed, I just want the entry signals, profit targets and stop loss exits converted so I can backtest. I am attaching a screenshot of how the strategy is displayed on a chart, but as I say, I don’t need all this.

    One thing about the trade exit on a loss to point out, exit is not at the actual value of the calculated stop loss, exit only happens if a price bar closes below the value of the set stop loss, exit is then at the open of the next price bar. On the other hand, trade exit at a profit should happen immediately when the price touches the preset target profit (TP) level.

    I am pasting the code below that is working in TradingView, is there anyone that can convert this to the code for a system I can probacktest in ProRealTime?

     

    #229776

    Hello. I can't translate this code because it is not copied correctly. I've tried to fix it but it's too much… If you want me to try to translate the code, send it to me in the correct format so I can read it and insert it into Tradingview to check it. Greetings

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login