What's the best way to store these values? - futures io
futures io futures trading

What's the best way to store these values?

Discussion in NinjaTrader

    1. trending_up 565 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 1 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

What's the best way to store these values?

(login for full post details)
  #1 (permalink)
Posts: 131 since Nov 2009
Thanks: 11 given, 7 received


I'm trying to store values when the condition below is valid:-

if(CurrentBar < 5) return;

if (Math.Max(Close[2],High[1])>Math.Max(Close[1],High[0]) && Math.Max(Close[2],High[1])>Math.Max(Close[3],High[2]))

I've tried using a dataseries and upon "printing" (read: verifying) the values, it appears fine at the beginning of the chart (that is ignoring the zeroes that are generated when there is no valid point) but goes awry by the time we get to the more current bars (no more zeroes but actually successive points of reference which is not possible). Values appear to be plucked from the air appear in the dataseries.

What I'm trying to achieve:-
1) Get the data so that I can draw rays (see attached chart)
2) To draw a ray however, I need to be able to identify 2 points for the "bars ago" parameter and the values associated with those points.
3) The more current points can have multiple lines drawn through them from the older points provided the older points have a higher value that the current point.

Any suggestions?


Kay Wai

Attached Thumbnails
Click image for larger version

Name:	$USDSGD (Daily)  8_19_2015 - 12_26_2015.jpg
Views:	45
Size:	113.9 KB
ID:	200715  
Reply With Quote

futures io Trading Community Platforms and Indicators NinjaTrader > What's the best way to store these values?

Last Updated on January 8, 2016

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Journal Challenge w/$1500 prizes from Topstep!


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


Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only

Copyright © 2021 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