Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
How to buy or sell when working with multiple data streams?
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!
Can you help answer these questions from other members on NexusFi?
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.
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.