Gamestudio Links
Zorro Links
Newest Posts
Tradestation Multi-sessions??
by TipmyPip. 06/27/26 04:19
Z9 getting Error 058
by jcl. 06/26/26 14:07
ZorroGPT
by TipmyPip. 06/24/26 18:31
Lapsa's very own thread
by Lapsa. 06/20/26 18:18
Ranger by Robert Pardo - now for Zorro
by Smallz. 06/20/26 11:23
Z12 live performance
by jcl. 06/19/26 11:21
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 20,137 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Tradestation Multi-sessions?? #489494
06/25/26 20:18
06/25/26 20:18
Joined: Sep 2024
Posts: 14
robbinsville, nj USA
W
walt_Schwarz Offline OP
Newbie
walt_Schwarz  Offline OP
Newbie
W

Joined: Sep 2024
Posts: 14
robbinsville, nj USA
I see where Zorro-S allows multi-sessions BUT the Tradestation platform only allows ONE connection.
A couple questions:
1. Can one session (connection) trade the same strategy on multiple stocks?
2. Is one session limited to one strategy?
3. does the Tradestation plug-in support the data feed?

Thanks and looking forward the answers...
Walt

Last edited by walt_Schwarz; 06/25/26 21:39. Reason: added question
Re: Tradestation Multi-sessions?? [Re: walt_Schwarz] #489495
Yesterday at 14:03
Yesterday at 14:03
Joined: Jul 2000
Posts: 28,112
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,112
Frankfurt
Yes, AFAIK Tradestation supports multiple stocks in the same session. A session is limited to one script, which can contain multiple strategies. You can use separate data feeds regardless of the plugin.

Re: Tradestation Multi-sessions?? [Re: jcl] #489497
Yesterday at 19:09
Yesterday at 19:09
Joined: Sep 2024
Posts: 14
robbinsville, nj USA
W
walt_Schwarz Offline OP
Newbie
walt_Schwarz  Offline OP
Newbie
W

Joined: Sep 2024
Posts: 14
robbinsville, nj USA
Thank you, Would I need to build code to use Tradestation data feed?

Re: Tradestation Multi-sessions?? [Re: walt_Schwarz] #489498
Yesterday at 20:08
Yesterday at 20:08
Joined: Sep 2017
Posts: 313
TipmyPip Online
Senior Member
TipmyPip  Online
Senior Member

Joined: Sep 2017
Posts: 313
May I know what do you mean by "Build Code"? Building requires understanding of syntax, syntax, requires understanding of grammar, grammar requires understanding of logic, and logic requires creative magic...
while if you don't have creative magic, than we don't build code, we only give you code for free... Free for you to study, and after you study building code, than you understand logic, and if you have lots of logic...
than you start getting relationship of mathematics and money, but money here after building code, is for free, only if you truly have patience for grammar, but if you don't have patience for grammar than you have problems with syntax...
but if you love grammatical problems than syntax is no problem for your brain, and after that building code is easy, because you love making too many mistakes, and enjoy learning from all ups and downs in your money account.
but this is not magic without God... Thank you for your understanding.

Last edited by TipmyPip; Yesterday at 20:10.
Re: Tradestation Multi-sessions?? [Re: TipmyPip] #489499
Yesterday at 21:29
Yesterday at 21:29
Joined: Sep 2024
Posts: 14
robbinsville, nj USA
W
walt_Schwarz Offline OP
Newbie
walt_Schwarz  Offline OP
Newbie
W

Joined: Sep 2024
Posts: 14
robbinsville, nj USA
I'm not new to code as I made a successful career contracting at FORTUNE 100 clients AND have coded many different stock programs including:

AmiBroker AFL
Tradestation EasyLanguage
MultiCharts PowerLanguage(c#)
VB3 through VB.NET
C#
Pascal
PowerBuilder
Zorro C-lite

I could go on but I think you get the picture...
Again, does using the Tradestation data require coding or is this part of the plug-in.

Last edited by walt_Schwarz; Yesterday at 21:30.
Re: Tradestation Multi-sessions?? [Re: walt_Schwarz] #489500
1 hour ago
1 hour ago
Joined: Sep 2017
Posts: 313
TipmyPip Online
Senior Member
TipmyPip  Online
Senior Member

Joined: Sep 2017
Posts: 313
1. Can one session trade the same strategy on multiple stocks?

Yes. One Zorro strategy session can trade multiple stocks through the same broker connection, as long as the script loops through multiple assets.

Zorro’s portfolio examples explicitly use asset(loop(...)) for multiple symbols and algo(loop(...)) for multiple strategy components inside the same run() function.

Example structure:

Code
function run()
{
    BarPeriod = 5;

    while(asset(loop("AAPL","MSFT","NVDA","SPY")))
    {
        tradeMyStrategy();
    }
}

Or for all assets in your selected asset list:

Code
function run()
{
    BarPeriod = 5;

    while(asset(loop(Assets)))
    {
        tradeMyStrategy();
    }
}

Zorro’s manual also states that assets must be selected with asset(), and that while(asset(loop(Assets))) can be used to select all available assets in the asset list.

So for TradeStation, this is the preferred solution:

One Zorro instance
One TradeStation API connection
One portfolio strategy
Many stocks
2. Is one session limited to one strategy?

Technically, one Zorro session normally runs one script at a time, but that one script can contain many strategies.

So the limitation is not really “one strategy.” It is more like:

One Zorro session = one running script
But one script can contain many strategy modules

For example:

Code
function run()
{
    BarPeriod = 5;

    while(asset(loop("AAPL","MSFT","NVDA")))
    while(algo(loop("ARIMA","TREND","MEANREV")))
    {
        if(Algo == "ARIMA")
            tradeArimaStrategy();

        if(Algo == "TREND")
            tradeTrendStrategy();

        if(Algo == "MEANREV")
            tradeMeanReversionStrategy();
    }
}

Zorro’s loop documentation shows exactly this kind of structure: multiple assets and multiple algos can be looped inside the same run() function.

So if TradeStation allows only one connection, you should not run many independent Zorro instances connected to TradeStation. Instead, merge the strategies into a single Zorro portfolio controller.

3. Does the TradeStation plug-in support the data feed?

Yes, but with conditions.

Zorro’s broker plugin architecture uses the broker API for both placing orders and getting market data. The Zorro TradeStation plugin is specifically designed for the TradeStation v3 Web API, and Zorro says you need Zorro S for that plugin.

TradeStation’s API documentation says the API provides brokerage and market-data services and supports stocks, options, and futures through the same interface.

So the answer is:

Live quote / price feed: yes, through the TradeStation API/plugin.
Historical bars: TradeStation API supports market-data bars, but you should test your exact plugin version.
Real-time data: requires the proper TradeStation market-data subscriptions.
Limits: API rate limits and connection/session limits can affect large portfolios.

TradeStation also applies API rate limits; if quota is exceeded, the API can return a quota-exceeded response.

Practical recommendation

For your setup, I would structure it like this:

Zorro-S
?
Single TradeStation connection
?
One portfolio script
?
Asset loop: AAPL, MSFT, NVDA, SPY, etc.
?
Algo loop: ARIMA / Trend / Filter / Risk controller
?
TradeStation orders + TradeStation data feed

This avoids fighting the “one TradeStation connection” rule while still letting you trade many stocks and multiple strategy components.

In addition you can share with us lots of code, and we can learn from you alot, please consider that, we can share with you free code too.

Last edited by TipmyPip; 1 hour ago.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1