Public class, passing values between scripts - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

Public class, passing values between scripts
Started:May 10th, 2010 (05:43 PM) by tinkerz Views / Replies:1,238 / 2
Last Reply:May 11th, 2010 (11:41 AM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Public class, passing values between scripts

Old May 10th, 2010, 05:43 PM   #1 (permalink)
Elite Member
Futures Experience: Intermediate
Platform: Ninja Trader Tradestation
Broker/Data: Zenfire
Favorite Futures: EMINI
Posts: 34 since Feb 2010
Thanks: 0 given, 3 received

Public class, passing values between scripts

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



Reply With Quote

Old May 10th, 2010, 05:43 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old May 11th, 2010, 11:41 AM   #3 (permalink)
Site Administrator
Manta, Ecuador
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
Big Mike's Avatar
Posts: 45,432 since Jun 2009
Thanks: 28,836 given, 79,560 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.


Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Public class, passing values between scripts

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some Matlab scripts around vwap wh Matlab, R project and Python 6 July 21st, 2015 06:56 PM
Expose Public Class List TAJTrades NinjaTrader Programming 6 January 6th, 2013 05:55 PM
Passing indicator parameters hawks67 NinjaTrader Programming 7 November 29th, 2012 09:04 AM
Communicate Between Scripts webart NinjaTrader Programming 6 April 30th, 2010 02:42 PM
Translating EMA-values to ZN-values or visaversa max-td NinjaTrader Programming 17 June 22nd, 2009 03:42 PM

All times are GMT -4. The time now is 06:24 PM.

Copyright © 2016 by 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

Page generated 2016-10-23 in 0.08 seconds with 20 queries on phoenix via your IP