NexusFi: Find Your Edge


Home Menu

 





How to buy or sell when working with multiple data streams?


Discussion in TradeStation

Updated
      Top Posters
    1. looks_one ABCTG with 3 posts (1 thanks)
    2. looks_two tannerhelton with 2 posts (0 thanks)
    3. looks_3 eoweft with 1 posts (0 thanks)
    4. looks_4 Sharon9999 with 1 posts (0 thanks)
    1. trending_up 4,045 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
tannerhelton
Leawood + Kansas
 
Posts: 2 since Feb 2019
Thanks Given: 0
Thanks Received: 0

I'm trying to create a strategy that can buy a share of something and short a sell of another. I have already found the Data1 and Data2 to analyze various data from each symbol (like the close of one and the close of the other), but I can't figure out how to make a trade. To make a trade I'm using "Buy next bar at market", but is there a way to write something like "Buy next bar at market of Data2" that would specify which symbol to purchase? Thanks!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
World Cup Opens: USA at 45.5% Tonight as Markets Push Ba …
Prediction Markets & Event Contracts
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

Hi tannerhelton,

welcome to NexusFi. Using legacy EasyLanguage you can only execute orders on Data1, so you would require two separate charts. Using Object Oriented EasyLanguage order objects you could trade more than one symbol from the same chart, but this would be a lot more complex and you wouldn't be able to back test it.
You will likely find some discussions about what you have in mind in the official Tradestation forum that might be worth checking out.

Regards,

ABCTG


Follow me on X Reply With Quote
  #3 (permalink)
tannerhelton
Leawood + Kansas
 
Posts: 2 since Feb 2019
Thanks Given: 0
Thanks Received: 0


What do you mean by legacy easylanguage is there some sort of new thing I’m missing? Also thanks for the info!


Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

Hi tannerhelton,

legacy EasyLanguage is basically the EasyLanguage before the Object Oriented EasyLanguage additions.

Regards,

ABCTG


tannerhelton View Post
What do you mean by legacy easylanguage is there some sort of new thing I’m missing? Also thanks for the info!


Follow me on X Reply With Quote
  #5 (permalink)
eoweft
Singapore
 
Posts: 3 since Apr 2014
Thanks Given: 5
Thanks Received: 1


tannerhelton View Post
I'm trying to create a strategy that can buy a share of something and short a sell of another. I have already found the Data1 and Data2 to analyze various data from each symbol (like the close of one and the close of the other), but I can't figure out how to make a trade. To make a trade I'm using "Buy next bar at market", but is there a way to write something like "Buy next bar at market of Data2" that would specify which symbol to purchase? Thanks!

If you wanna trade 2 diff stocks the same time. you have to run 2 charts and strategy.

that means you only can trade data1.


Reply With Quote
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

eoweft,

as far as legacy Easylanguage is concerned that is correct. However you can trade multiple symbols from the same chart or even from Radarscreen using Object Oriented Easylanguage. The downside is that this will only work in real time and generally takes a lot more code compared to legacy Easylanguage strategies.

Regards,

ABCTG


eoweft View Post
If you wanna trade 2 diff stocks the same time. you have to run 2 charts and strategy.

that means you only can trade data1.



Follow me on X Reply With Quote
Thanked by:




Last Updated on April 9, 2019


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts