Little help with Draw Region - NinjaTrader Programming | futures io social day trading
futures io futures trading


Little help with Draw Region
Updated: Views / Replies:3,869 / 14
Created: by jram77 Attachments:1

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 dont 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
 1  
 
Thread Tools Search this Thread
 

Little help with Draw Region

  #1 (permalink)
Elite Member
union city nj
 
Futures Experience: Intermediate
Platform: ninjatrader
Broker/Data: Mirus futures/zen-fire
Favorite Futures: es
 
jram77's Avatar
 
Posts: 6 since Apr 2010
Thanks: 16 given, 2 received

Little help with Draw Region

First off I would like to thank all the intelligent generous people on this site. Secondly, let me apologize, I know this sections is reserved for programmers and I probably the furthest thing from one. So please keep that in mind in your responses. On my charts I have the ColorZone3 Indicator and I have right margin of 100. So the indicator only plots to the current bar and I would like it to plot all the way to the end of the chart. I did some research and I think this is the line in the code that I need to modify,
"DrawRegion("Zone1", CurrentBar, 0, myDataSeries1, myDataSeries2, zone1ClrBdr, zone1Clr, opacity );"
I've tried replacing the term "CurrentBar" with some ridiculous laymen terms that I thought might work, to no avail. Any help would be appreciated.

I've attached a screenshot of what I mean.
Cheers.

Attached Thumbnails
Little help with  Draw Region-es-03-11-5-min-1_14_2011image.jpg  
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,599 received
Forum Reputation: Legendary



jram77 View Post
First off I would like to thank all the intelligent generous people on this site. Secondly, let me apologize, I know this sections is reserved for programmers and I probably the furthest thing from one. So please keep that in mind in your responses. On my charts I have the ColorZone3 Indicator and I have right margin of 100. So the indicator only plots to the current bar and I would like it to plot all the way to the end of the chart. I did some research and I think this is the line in the code that I need to modify,
"DrawRegion("Zone1", CurrentBar, 0, myDataSeries1, myDataSeries2, zone1ClrBdr, zone1Clr, opacity );"
I've tried replacing the term "CurrentBar" with some ridiculous laymen terms that I thought might work, to no avail. Any help would be appreciated.

I've attached a screenshot of what I mean.
Cheers.

This will be difficult to achieve with DrawRegion(). However, as you want to draw a rectangle, you might try DrawRectangle(). It uses variables of type double , so something like

 
Code
"DrawRectangle("Zone1", true, -10, myDataSeries1[0], CurrentBar, myDataSeries2[0], zone1ClrBdr, zone1Clr, opacity );"
should do the trick. The negative value - in bold - should extend your rectangle to the right border of the chart.

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #4 (permalink)
Elite Member
union city nj
 
Futures Experience: Intermediate
Platform: ninjatrader
Broker/Data: Mirus futures/zen-fire
Favorite Futures: es
 
jram77's Avatar
 
Posts: 6 since Apr 2010
Thanks: 16 given, 2 received

Worked great, Thanks FT. Gotta love copy + paste.

Reply With Quote
The following user says Thank You to jram77 for this post:
 
  #5 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


Fat Tails View Post
This will be difficult to achieve with DrawRegion(). However, as you want to draw a rectangle, you might try DrawRectangle(). It uses variables of type double , so something like

 
Code
"DrawRectangle("Zone1", true, -10, myDataSeries1[0], CurrentBar, myDataSeries2[0], zone1ClrBdr, zone1Clr, opacity );"
should do the trick. The negative value - in bold - should extend your rectangle to the right border of the chart.

You can do that now? I thought at one point that use to crash NT.

Reply With Quote
The following user says Thank You to monpere for this post:
 
  #6 (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,599 received
Forum Reputation: Legendary


monpere View Post
You can do that now? I thought at one point that use to crash NT.

Not aware of that problem, can you link to it?

Reply With Quote
 
  #7 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


Fat Tails View Post
Not aware of that problem, can you link to it?

I think that was early version of version 6. I had not tried it since. I remember trying that and crashing it.

NinjaTrader Support Forum - View Single Post - Draw to the right of the current bar on a chart

Reply With Quote
 
  #8 (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,599 received
Forum Reputation: Legendary


monpere View Post
I think that was early version of version 6. I had not tried it since. I remember trying that and crashing it.

NinjaTrader Support Forum - View Single Post - Draw to the right of the current bar on a chart

That was a long time ago. actually, I do not know whether is works, but so far have had no problems. Just did it.

Reply With Quote
 
  #9 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


Fat Tails View Post
That was a long time ago. actually, I do not know whether is works, but so far have had no problems. Just did it.

That's good to know. Man! I had to jump thru so many hoops a couple of years ago just to do something simple like that, and I made sure to give Ray at NT a good piece of my mind about it I guess that is progress. Now, I have to go back and change all my code

Reply With Quote
 
  #10 (permalink)
Market Wizard
Las Vegas, NV
 
Futures Experience: Advanced
Platform: Abacus, Slide Rule, HP-65, Metastock, TOS, NT
Favorite Futures: Futures
 
aligator's Avatar
 
Posts: 3,424 since Aug 2010
Thanks: 1,053 given, 5,822 received
Forum Reputation: Legendary


@Fat Tails,

Can one use the Drawregion to fill between say the 30 and 70 lines on RSI indicator in indicator panel?

I tried it, but it painted inside the entire main series panel.

Thanks.

Reply With Quote

Reply



futures io > > > > > Little help with Draw Region

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
Get all draw objects dimkdimk NinjaTrader Programming 18 February 14th, 2015 12:46 PM
Fib extenions I can draw ricktrades ThinkOrSwim 3 July 7th, 2014 02:38 PM
Massive Undiscovered Oil and Gas Reserves in the Cook Inlet Region kbit Commodities Futures Trading 1 July 1st, 2011 11:44 PM
NT7 MA region color indicator Doppio NinjaTrader 10 June 10th, 2010 12:19 AM
MA region color indicator. help needed Doppio NinjaTrader Programming 3 June 8th, 2010 08:32 AM


All times are GMT -4. The time now is 07:07 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.13 seconds with 20 queries on phoenix via your IP 54.92.194.75