Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pine-Script + Multiple Symbol Strategy

Tags:

pine-script

I would like to know if it is possible in TradingView to backtest multiple Symbol in the same script ? In other words, stand out from the symbol applied to the graphic.

I found how to call other symbol with the commande security, but after to place order, i don't succeed to stand out the symbol applied to the graph.

Thank you !

like image 845
guerin remi Avatar asked May 18 '20 04:05

guerin remi


People also ask

How do I add symbols to a pine script?

The input. symbol() function adds an instrument (symbol) search field to the 'Inputs' tab of the script's settings window. input. symbol() only has one required argument: its default value.

How difficult is pine script?

Easy to Learn – Pine script syntax is readable and simpler than other programming languages. Also, you don't have to spend much time on error checking and handling as TradingView takes care of most of that for you.

How do you make a strategy in Pine editor?

A strategy written in Pine has many of the same capabilities as a Pine study, a.k.a. indicator. When you write a strategy, it must start with the strategy annotation call (instead of study ). Strategies may plot data, but they can also place, modify and cancel orders.

What is pyramiding in Pine script?

The pyramiding setting says how many entries in the same direction a Pine Script strategy may take . The higher the value of pyramiding , the more additional long and short entries are possible.


1 Answers

Strategy orders are only generated on the chart's symbol. You can use security() to fetch information from other tickers to use in your calcs, but orders cannot be executed on them.

like image 189
PineCoders-LucF Avatar answered Oct 02 '22 11:10

PineCoders-LucF