OHLC based on previous day's close - NinjaTrader Programming | futures io social day trading
futures io futures trading


OHLC based on previous day's close
Updated: Views / Replies:3,000 / 9
Created: by asf008005 Attachments:2

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
 

OHLC based on previous day's close

  #1 (permalink)
Trading Apprentice
Hartford CT
 
Futures Experience: Intermediate
Platform: Ninjatrader
Favorite Futures: Stocks
 
Posts: 6 since May 2012
Thanks: 6 given, 0 received

OHLC based on previous day's close

Hi,
I'm new to ninjatrader and excited to begin learning the program. I noticed that ninja trader's OHLC bar charts are a little different than others i'm used to. Is there an indicator available that plots each bar according to the previous day's close? As it is now, the bars are colored based on the close versus the open of the same bar. I want them to be colored based on the current close versus the previous day's close.
Thanks all, Andrew

Reply With Quote
 
  #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.

 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary



asf008005 View Post
Hi,
I'm new to ninjatrader and excited to begin learning the program. I noticed that ninja trader's OHLC bar charts are a little different than others i'm used to. Is there an indicator available that plots each bar according to the previous day's close? As it is now, the bars are colored based on the close versus the open of the same bar. I want them to be colored based on the current close versus the previous day's close.
Thanks all, Andrew


The way NinjaTrader colors the bars is needed for candle sticks. Otherwise you would not be able to tell whether a bar that has its full body above or below the prior close is an upclose or downclose.

Many charting programs like TradeStationor MultiCharts have unicolor OHLC bars, others like Wealth Lab follow the rules of candlesticks as NinjaTrader does.

If you need another rule, just code a small indicator and apply it to your chart.

This would be the code for the colors you want to see:

 
Code
private override void Initialize()
{
      CalculateOnBarClose = false;
}

private override void OnBarUpdate()
{
      if (CurrentBar < 1) 
             return;
      if(Close[0] > Close[1])
             BarColor = Color.LimeGreen;
      else if (Close[0] < Close[1])
             BarColor = Color.Red;
      else
             BarColor = Color.Orange;
}


Just edit any indicator, remove all stuff in public class <your indicator name>: Indicator and replace it with the code above. Not tested.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #4 (permalink)
Trading Apprentice
Hartford CT
 
Futures Experience: Intermediate
Platform: Ninjatrader
Favorite Futures: Stocks
 
Posts: 6 since May 2012
Thanks: 6 given, 0 received

Thanks Fat tails!
Unfortunately, I don't think i'm able to do that in my version. I just joined mirus and downloaded the direct edition. It's not a full license key, and I cant create my own ninjascript strategies. Do you think there is a way around this?

-Andrew

Reply With Quote
 
  #5 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary

You will need somebody to code the indicator and export it as a zip file. You can then import the indicator with your direct edition.

Have attached the indicator below, just import it. I have not serialized the colors, so you cannot currently select them. Maybe someone will add that code, I can do it as well, but do not have the time now.



Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Attached Files
Register to download File Type: zip BarColorsOHLC.zip (1.7 KB, 44 views)
Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #6 (permalink)
Trading Apprentice
Hartford CT
 
Futures Experience: Intermediate
Platform: Ninjatrader
Favorite Futures: Stocks
 
Posts: 6 since May 2012
Thanks: 6 given, 0 received

Wow, thanks a lot fat tails. I loaded your file and it looks good! Changing color isn't a big deal, they match up with my original format. Great work!!

-I forgot about wanting the volume bars to match up as well. I'm assuming its an easy fix, same idea just with volume. Thanks again, happy Memorial Day!
-Andrew

Reply With Quote
 
  #7 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


asf008005 View Post
Wow, thanks a lot fat tails. I loaded your file and it looks good! Changing color isn't a big deal, they match up with my original format. Great work!!

-I forgot about wanting the volume bars to match up as well. I'm assuming its an easy fix, same idea just with volume. Thanks again, happy Memorial Day!
-Andrew

Did you try to apply the indicator to volume bars?

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #8 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,216 since Jun 2009
Thanks: 628 given, 6,314 received
Forum Reputation: Legendary


asf008005 View Post
Thanks Fat tails!
Unfortunately, I don't think i'm able to do that in my version. I just joined mirus and downloaded the direct edition. It's not a full license key, and I cant create my own ninjascript strategies. Do you think there is a way around this?

-Andrew

@asf008005 send email to support@NinjaTrader.com

here is my email, remember to change to suite your broker;
Hi,
I am with AMP future,
my NT doesn't have AMT feature can you send me the free license with full functionality as Ray said, thanks.

Reply With Quote
The following user says Thank You to cory for this post:
 
  #9 (permalink)
Trading Apprentice
Hartford CT
 
Futures Experience: Intermediate
Platform: Ninjatrader
Favorite Futures: Stocks
 
Posts: 6 since May 2012
Thanks: 6 given, 0 received

Cory: I just sent them an email, i'll cross my fingers. Thanks
FT: I'm having trouble with that. I'm going into indicators menu, adding a new "BarColorsOHLC", and changing the input series to my VolumeUpDown indicator. I tried using plain VOL as well, but can't seem to get it.

Reply With Quote
 
  #10 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,651 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary



asf008005 View Post
Cory: I just sent them an email, i'll cross my fingers. Thanks
FT: I'm having trouble with that. I'm going into indicators menu, adding a new "BarColorsOHLC", and changing the input series to my VolumeUpDown indicator. I tried using plain VOL as well, but can't seem to get it.

The BarColorsOHLC will not color the VolumeUpDown indicator.

You would have to modify the VolumeUpDown indicator directly. Best you post on this thread

https://futures.io/elite-circle/1261-want-your-ninjatrader-indicator-created-free.html

and someone might do it, as it only takes a few minutes.

Reply With Quote
The following user says Thank You to Fat Tails for this post:

Reply



futures io > > > > > OHLC based on previous day's close

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
Limit Strategy backtesting based on time of day blenderking NinjaTrader Programming 4 July 2nd, 2016 11:23 AM
Close position based on day of week guppy EasyLanguage Programming 3 October 21st, 2011 04:31 PM
effect of gains and losses of previous day on next day tradersam Psychology and Money Management 2 May 18th, 2011 04:35 PM
Calculate GAP (Close of Prior Day, Open of Current Day) bluemele NinjaTrader Programming 16 January 19th, 2011 10:19 PM
Previous Day OHLC for Range Chart? essiar NinjaTrader 2 October 15th, 2009 11:28 AM


All times are GMT -4. The time now is 11:48 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-12 in 0.14 seconds with 20 queries on phoenix via your IP 54.234.255.29