Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to optimise parameters in a TradingView Pine script?

I want to optimise indicator parameters in a TradingView Pine backtest. This is possible with other tools, but when I search for this functionality in TradingView I don't find anything. Can anybody please help?

If it isn't possible in TradingView, then is there a way of doing it with another tool?

Thanks in advance!

like image 235
Jaspal Singh Rathour Avatar asked Feb 26 '18 23:02

Jaspal Singh Rathour


People also ask

How do you get the highest high or lowest low in Tradeview pine?

Getting the Highest High and Lowest Low This line of code is telling Pine Script “Create me a variable named 'highestHigh'. Then use the built-in function 'highest()' to search through the past 100 candles to find the highest candle high and assign that value to my variable.”

How do you write a pine script in Tradeview?

To open it, click on the Pine Editor tab at the bottom of your TradingView chart. This will open up the editor's window. We will create our first working Pine script. Start by bringing up the “New” dropdown menu at the top right of the editor and choose Blank indicator script.

How do you use strategies in TradingView?

On TradingView, strategies are calculated on all the chart's available historical data (backtesting), and then automatically continue calculations when real-time data comes in (forwardtesting). By default, during both historical and real-time calculation, code is calculated on the bar's close.

What language does TradingView Pine editor use?

TradingView has designed its own scripting language called Pine Script. It allows users to create custom indicators and run them on our servers. Pine was designed as a lightweight language focused on the specific task of developing indicators and strategies.


1 Answers

There is a TSLab software package that is designed to create trading robots. The kit has an intuitive interface for writing trading strategies, it allows you to automate optimisation the selection of parameters for running strategies using historical data.

The program is free if you do not need to run the robot for real trading. Automatic optimisation of parameters for strategies will be available without restrictions.

like image 188
AnyDozer Avatar answered Sep 18 '22 03:09

AnyDozer