Is it possible to trade multiple assets with one script?
up vote
1
down vote
favorite
I'm trying to implement a pairs trading algo in Pine Script but I don't know how to select a specific asset to buy or sell. It seems I'm locked with the current symbol.
pine-script
add a comment |
up vote
1
down vote
favorite
I'm trying to implement a pairs trading algo in Pine Script but I don't know how to select a specific asset to buy or sell. It seems I'm locked with the current symbol.
pine-script
1
Have a look at the security() function.
– Baris Yakut
Nov 19 at 17:39
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm trying to implement a pairs trading algo in Pine Script but I don't know how to select a specific asset to buy or sell. It seems I'm locked with the current symbol.
pine-script
I'm trying to implement a pairs trading algo in Pine Script but I don't know how to select a specific asset to buy or sell. It seems I'm locked with the current symbol.
pine-script
pine-script
asked Nov 19 at 17:04
Thiago Locks
8626
8626
1
Have a look at the security() function.
– Baris Yakut
Nov 19 at 17:39
add a comment |
1
Have a look at the security() function.
– Baris Yakut
Nov 19 at 17:39
1
1
Have a look at the security() function.
– Baris Yakut
Nov 19 at 17:39
Have a look at the security() function.
– Baris Yakut
Nov 19 at 17:39
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53379481%2fis-it-possible-to-trade-multiple-assets-with-one-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Have a look at the security() function.
– Baris Yakut
Nov 19 at 17:39