Public class, passing values between scripts - futures io
futures io futures trading



Public class, passing values between scripts


Discussion in NinjaTrader

Updated by Big Mike
    1. trending_up 2,142 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 2 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Public class, passing values between scripts

(login for full post details)
  #1 (permalink)
UK
 
Experience: Intermediate
Platform: Ninja Trader Tradestation
Broker: Zenfire
Trading: EMINI
 
Posts: 34 since Feb 2010
Thanks: 0 given, 3 received

Hi all


Is it possible to post values between realtime scripts, ie to make an index or plot a value from one indicator to another plot

if so any examples

thanks

tinkerz

Reply With Quote

 
 
(login for full post details)
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,050 since Jun 2009
Thanks: 31,656 given, 94,912 received


You can do it using a DataSeries on an indicator, but I always just used a flat text file to communicate between strategies. If you look in the Downloads section you'll find a tool called 'exportdata' for NT that has 95% of the logic you need to create and write text files, to read them is not any harder.

Then the idea is the strategy first checks the text file before deciding to do something, and if is "OK" then it writes to the text file something so that the other strategy then knows to do something different, etc.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > Public class, passing values between scripts


May 11, 2010


Upcoming Webinars and Events
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts