Convertinb Double to DataSeries - NinjaTrader Programming | futures io social day trading
futures io futures trading


Convertinb Double to DataSeries
Updated: Views / Replies:643 / 3
Created: by patbateman Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Convertinb Double to DataSeries

  #1 (permalink)
Elite Member
NY, NY
 
Futures Experience: None
Platform: T4, NinjaTrader
Favorite Futures: All!
 
patbateman's Avatar
 
Posts: 235 since Mar 2012
Thanks: 113 given, 193 received

Convertinb Double to DataSeries

I'm trying to use some indicators used for price, such as the CurrentOHL, on an indicator. Unfortunately OHL will not do indicators because it's designed for a dataseries.

I'm wondering if it's possible to convert a normal double indicator into a dataseries, and feed it into OHL? I looked at the source for the CurrentOHL, and it clearly is designed for a dataseries only, and not a double value.

"A Jedi's strength flows from the force."
-Yoda
Reply With Quote
 
  #2 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received

Not sure I am clearly understanding what you asking, but all indicators are called the same, you can do either,

Output[0] = InputIndicator(parameters)[0];
or
double Output = InputIndicator(parameters)[0];

the only difference is if you want to evaluate prior bars on Output then you have to create a dataseries, for example you can do,

Output[0] = InputIndicator(parameters)[0];
Offset2Bars[0] = Output[2];

but you can't do,

double Output = InputIndicator(parameters)[0];
Offset2Bars[0] = Output[2];

If you aren't sure how to call another indicator then you can open the strategy wizard and use the indicator in a formula then view the code to see which parameters are included and the order they are used.

Reply With Quote
The following user says Thank You to vegasfoster for this post:
 
  #3 (permalink)
Elite Member
NY, NY
 
Futures Experience: None
Platform: T4, NinjaTrader
Favorite Futures: All!
 
patbateman's Avatar
 
Posts: 235 since Mar 2012
Thanks: 113 given, 193 received



vegasfoster View Post
Not sure I am clearly understanding what you asking, but all indicators are called the same, you can do either,

Output[0] = InputIndicator(parameters)[0];
or
double Output = InputIndicator(parameters)[0];

the only difference is if you want to evaluate prior bars on Output then you have to create a dataseries, for example you can do,

Output[0] = InputIndicator(parameters)[0];
Offset2Bars[0] = Output[2];

but you can't do,

double Output = InputIndicator(parameters)[0];
Offset2Bars[0] = Output[2];

If you aren't sure how to call another indicator then you can open the strategy wizard and use the indicator in a formula then view the code to see which parameters are included and the order they are used.

So InputIndicator(parameters) is where the indicator would go? I'll give this a shot, it looks promising.

What I'm trying to do is convert an indicator to a dataseries, so the CurrentDayOHL will tell me the Open and the Close of an indicator.

"A Jedi's strength flows from the force."
-Yoda
Reply With Quote
 
  #4 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received


patbateman View Post
So InputIndicator(parameters) is where the indicator would go? I'll give this a shot, it looks promising.

What I'm trying to do is convert an indicator to a dataseries, so the CurrentDayOHL will tell me the Open and the Close of an indicator.

I understand better, I don't have NT installed anymore so I couldn't try it, but I don't think you have to create a new dataseries, simply replace Open[0], High[0] and Low[0] with your indicator call and that should work.


Last edited by vegasfoster; October 10th, 2012 at 12:20 PM.
Reply With Quote
The following user says Thank You to vegasfoster for this post:

Reply



futures io > > > > > Convertinb Double to DataSeries

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple dataseries Breakout NinjaTrader 28 March 30th, 2015 01:14 PM
Double Top / Double Bottom indicator for Multicharts / Tradestation, one available? PositiveDeviant MultiCharts 12 February 15th, 2012 02:10 AM
Double bottom and Double top with DIV benbrooke NinjaTrader Programming 36 December 6th, 2011 01:29 PM
DOUBLE DOUBLE STOCHASTICS Jeff Castille The Elite Circle 112 September 5th, 2011 12:40 AM
catching dataseries from DoubleMA max-td NinjaTrader Programming 1 June 12th, 2009 07:56 AM


All times are GMT -4. The time now is 09:01 PM.

Copyright © 2017 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
Page generated 2017-12-11 in 0.08 seconds with 19 queries on phoenix via your IP 54.83.122.227