Assigning DataSeries Close values to variables? - NinjaTrader Programming | futures trading

Go Back

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

Assigning DataSeries Close values to variables?
Started:February 22nd, 2015 (06:41 PM) by hrrsh Views / Replies:183 / 2
Last Reply:February 22nd, 2015 (07:12 PM) 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

Assigning DataSeries Close values to variables?

Old February 22nd, 2015, 06:41 PM   #1 (permalink)
Elite Member
chicago illinois
Futures Experience: Advanced
Platform: multicharts
Favorite Futures: ES
Posts: 1 since Apr 2014
Thanks: 0 given, 0 received

Assigning DataSeries Close values to variables?


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?

Reply With Quote

Old February 22nd, 2015, 06:41 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 February 22nd, 2015, 07:12 PM   #3 (permalink)
Elite Member
reston, va
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
cory's Avatar
Posts: 5,072 since Jun 2009
Thanks: 606 given, 6,065 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:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Assigning DataSeries Close values to variables?

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
Daily open and close values rounder8 Beginners and Introductions 5 February 9th, 2016 11:46 AM
Ninja Close Position / Close Button / ChartTrader vantojo NinjaTrader Programming 1 October 15th, 2012 05:51 PM
ACSIL - Getting the high/low/open/close values of the cumulative delta study yonatan Sierra Chart Programming 4 October 12th, 2012 03:29 PM
Chart Values/Tool Values Window is missing Big Mike Sierra Chart 17 August 24th, 2012 07:05 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 04:08 AM.

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.07 seconds with 20 queries on phoenix via your IP