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

Go Back   futures.io

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

What's the best way to store these values?
Started:January 8th, 2016 (04:38 AM) by kaywai Views / Replies:103 / 0
Last Reply:January 8th, 2016 (04:38 AM) Attachments:1

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's the best way to store these values?

Old January 8th, 2016, 04:38 AM   #1 (permalink)
Trading for Fun
Futures Experience: Intermediate
Platform: ninjatrader
Broker/Data: IB
Favorite Futures: ES, forex, oil
Posts: 131 since Nov 2009
Thanks: 11 given, 7 received

What's the best way to store these values?


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
What's the best way to store these values?-usdsgd-daily-8_19_2015-12_26_2015.jpg  
Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > What's the best way to store these values?

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
TCS The Container Store Big Mike Stocks and ETFs Trading 1 November 1st, 2013 06:58 PM
Looking for Software to store Price data in MySQL caliph Matlab, R project and Python 4 January 7th, 2013 02:11 PM
Chart Values/Tool Values Window is missing Big Mike Sierra Chart 17 August 24th, 2012 07:05 PM
How do you create a List to store variables? forrestang NinjaTrader Programming 15 March 27th, 2012 05:43 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 10:17 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-24 in 0.07 seconds with 20 queries on phoenix via your IP