I just started with ninjatrader and need some help modifying the OHLC bar chart. I would like the bars to be colored based on the previous bar's close, on all time frames.
Fat Tails was generous enough to help code the price bars.
private override void Initialize()
CalculateOnBarClose = false;
However, I forgot to mention I would like the volume bars to be set-up the same way. So now I need this code to be modified to work with volume bars. I sent ninja an email requesting a license upgrade so I can try coding myself, we'll see.
coloring other stuff than price bar is more elaborate, in this case you have 3 colors so you have to add 3 color plots.
ps. the secrete sauce to draw on both panels is to declare "Overlay = false;" then set it to true/false as needed.
Last edited by cory; May 29th, 2012 at 10:03 AM.
The following 5 users say Thank You to cory for this post:
Also, please use a more descriptive thread title next time. It helps keep things organized. 10,000 threads of "please help" makes things impossible to locate later. I updated your thread title.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.