NexusFi: Find Your Edge


Home Menu

 





Is there a GlobalVar solution that works with 32 and 64bit?


Discussion in NinjaTrader

Updated
    1. trending_up 1,549 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 shazzmoe 
Denver Colorado
 
Experience: Advanced
Platform: NinjaTrader
Trading: ES
Posts: 10 since Aug 2012
Thanks Given: 0
Thanks Received: 3

A while back I made a system that used the TS GlobalVariable.dll to control the max number of contracts that could be traded by a strategy at any given time (if the max was set to 10 and 3 strategies were running it would make sure the collective total being traded was never more than 10)

However when I decided to resurrect my old strategy I've found that it doesn't work in 64bit NT. I've seen this topic brought up once or twice before and the answer seems to be static variables. Is the static variable method something that will only work with NT64bit? (sorry I don't yet know how static variables work)

I'm hoping for a solution that will allow the strategy to work on both 32bit and 64bit system without having to make two versions.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Friday Update: Markets Now Pricing Fed Rate HIKES as Sta …
Traders Hideout
Synapse Pro - Trade Copier with topstep and MT5 integrat …
NinjaTrader
Prediction Markets Expiry Day: Trump Eyes War Exit, $230 …
Prediction Markets & Event Contracts
$134M Ground Entry Contract in Disputed Final Review Aft …
Prediction Markets & Event Contracts
MegaETH Proves the Crowd Right: Prediction Markets Calle …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 shazzmoe 
Denver Colorado
 
Experience: Advanced
Platform: NinjaTrader
Trading: ES
Posts: 10 since Aug 2012
Thanks Given: 0
Thanks Received: 3


After working on it a little bit more, I have it working in 64bit on real time trades however when I'm using static variables it doesn't work on backtests.

I have yet to see if it still work in 32bit but I'm not sure why it wouldn't


Started this thread Reply With Quote




Last Updated on August 15, 2012


© 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