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 2,714 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #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?
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
Increase in trading performance by 75%
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
27 thanks
Tao te Trade: way of the WLD
24 thanks
Diary of a simple price action trader
22 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

Hi tannerhelton,

welcome to futures.io. 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 Twitter 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,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

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 Twitter 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,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

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 Twitter Reply With Quote
Thanked by:




Last Updated on April 9, 2019


© 2024 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 - Privacy Policy - Downloads - Top
no new posts