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




 
Search this Thread

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

  #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?
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Quant vue
Trading Reviews and Vendors
MC PL editor upgrade
MultiCharts
 
  #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


© 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