What does "Value" represents? - NinjaTrader Programming | futures.io
futures.io futures trading

Go Back   futures.io

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

What does "Value" represents?
Started:December 20th, 2011 (08:57 AM) by wolfcuring Views / Replies:1,888 / 2
Last Reply:December 20th, 2011 (11:48 AM) Attachments:0

Welcome to futures.io.

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

What does "Value" represents?

Old December 20th, 2011, 08:57 AM   #1 (permalink)
Trading Apprentice
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: Forex
Posts: 2 since Oct 2011
Thanks: 1 given, 0 received

What does "Value" represents?

Hi all,

Sorry for the simplicity of my question. I am learning to code, and stuck with the first example I am reading: SMA.

protected override void OnBarUpdate()
if (CurrentBar == 0)
double last = Value[1] * Math.Min(CurrentBar, Period);

if (CurrentBar >= Period)
Value.Set((last + Input[0] - Input[Period]) / Math.Min(CurrentBar, Period));
Value.Set((last + Input[0]) / (Math.Min(CurrentBar, Period) + 1));

It seems that Value[1] here should represent the median one bar ago, is this correct?

I tested the the "Value[0]" on a chart, but it shows that it is equal to Close[0].

Quite confused with how NinjaScript would process price data .

Reply With Quote

Old December 20th, 2011, 08:57 AM   #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 December 20th, 2011, 11:48 AM   #3 (permalink)
Elite Member
Denver, CO
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: ES
NinjaTrader's Avatar
Posts: 1,166 since May 2010
Thanks: 132 given, 1,738 received

Value represents the numeric value of the primary (1st plot) of the indicator. By default, this is initialized to the close price of the underlying data series if your indicator does not set the value to something else.

Reply With Quote
The following 2 users say Thank You to NinjaTrader for this post:


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > What does "Value" represents?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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
Saxo Bank's 10 "Outrageous Predictions" For "2012: The Perfect Storm" Quick Summary News and Current Events 0 December 17th, 2011 07:10 PM
Fukushima: "China Syndrome Is Inevitable" ... "Huge Steam Explosions", or "Nuclear Bo Quick Summary News and Current Events 0 November 22nd, 2011 01:50 AM
How to change "Stop Loss" and "Take Profit" in "shElderImpulse" Strategy javed759 NinjaTrader 1 November 1st, 2011 10:44 PM
"mid", "buy", "sell" volumes lokgotkent Traders Hideout 6 September 30th, 2011 01:24 PM
dealing with GetCurrentBidVolume and GetCurrentAskVolume , "long" casting into "int" jmejedi NinjaTrader Programming 4 May 23rd, 2011 09:33 AM

All times are GMT -4. The time now is 04:27 AM.

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

Page generated 2016-10-28 in 0.08 seconds with 19 queries on phoenix via your IP