Assigning DataSeries Close values to variables? - futures io
futures io futures trading

Assigning DataSeries Close values to variables?

Discussion in NinjaTrader

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

Welcome to futures io: the largest futures trading community on the planet, with well over 125,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

Assigning DataSeries Close values to variables?

(login for full post details)
  #1 (permalink)
chicago illinois
Experience: Advanced
Platform: multicharts
Trading: ES
Posts: 1 since Apr 2014
Thanks: 0 given, 0 received


I want to be able to do mathematical operations between the close values of two symbols, as part of my strategy logic.

I have added the additional data series in the Initialize() section and have tried assigning the Close[1] and Close[2] to separate variables in the OnBarUpdate section unsuccessfully.

I want to be able to divide these variables and assign values from dataseries into new variables and then add buy/sell rules around these objects.

Any alternatives?

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
ZigZag with Depth and Backstep
EasyLanguage Programming
Short Interest Ratio indicator?
Help Needed: TOS Options Chain IV & IMPL MOVE Calcul …
Webinar: Finding your own way in trading w/Adam Grimes
The Elite Circle
Where can I find Cost to Trade and Book Depth info?
Emini and Emicro Index
(login for full post details)
  #3 (permalink)
the coin hunter
Experience: Intermediate
Platform: ninja
Trading: NQ
cory's Avatar
Posts: 6,030 since Jun 2009
Thanks: 845 given, 7,894 received

>Close[1] and Close[2]

more like

Closes[0][0] and Closes[1][0]
NinjaTrader Version 7

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

futures io Trading Community Platforms and Indicators NinjaTrader > Assigning DataSeries Close values to variables?

Last Updated on February 22, 2015

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Battlestations! Show us your trading desk - $1,500 in prizes!


Importance of Finding Your Own Way w/Adam Grimes

Elite only

Journal Challenge w/Jigsaw


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