NexusFi: Find Your Edge


Home Menu

 





coding to put range of candle beneath each candle


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one anniebee321 with 6 posts (0 thanks)
    2. looks_two cory with 3 posts (0 thanks)
    3. looks_3 Zondor with 2 posts (1 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 5,065 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 13 posts
    2. attach_file 2 attachments




 
Search this Thread

coding to put range of candle beneath each candle

  #1 (permalink)
 anniebee321 
london
 
Experience: Beginner
Platform: ninja
Trading: fgbl
Posts: 138 since Nov 2009
Thanks Given: 64
Thanks Received: 44

Can somebody please help me write code so that the range of the bar is below the candle stick for each candle(ninjascript) instead of in the range panel below the chart? pretty please:-)

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


do you have a pic of range panel below the chart?

Reply With Quote
  #4 (permalink)
 anniebee321 
london
 
Experience: Beginner
Platform: ninja
Trading: fgbl
Posts: 138 since Nov 2009
Thanks Given: 64
Thanks Received: 44

You just click on - indicators - then add range indicator - then it shows the range of each bar below the chart

Started this thread Reply With Quote
  #5 (permalink)
 
eDanny's Avatar
 eDanny 
East Rochester, NY
 
Experience: Intermediate
Platform: NT
Posts: 329 since Jul 2009
Thanks Given: 18
Thanks Received: 425

anniebee321, if you go to the free section at my site there is a nice RangeBarTargets indicator that might fit your needs (assuming you are talking about Range bars). It also works with RangeAlt, NoGapRange, MedianRenko, SbSRenko and Point-O bars. Can't hurt to try, it's free!

I hope it is ok to post this.

Reply With Quote
  #6 (permalink)
 anniebee321 
london
 
Experience: Beginner
Platform: ninja
Trading: fgbl
Posts: 138 since Nov 2009
Thanks Given: 64
Thanks Received: 44

No, i'm not talking about range bars - will take a look though -- i simply want the range of the bar in text below the candle, ta

Started this thread Reply With Quote
  #7 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

To do this, on each BarUpdate event, calculate the range, High[0]-Low[0], and then use the DrawText method to display the value of the range under the price bar. The x value is 0 (Current Bar) and the y value would be Low[0] minus n*TickSize, where n would be a user selectable integer.

The indicator would be installed in the same panel as the price series, with the same scale justification (left or right) as the price series.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 anniebee321 
london
 
Experience: Beginner
Platform: ninja
Trading: fgbl
Posts: 138 since Nov 2009
Thanks Given: 64
Thanks Received: 44

i'm sure thats how you do it but its gobbledy gook to me -- have found someone to do it

Started this thread Reply With Quote
  #9 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


anniebee321 View Post
i'm sure thats how you do it but its gobbledy gook to me -- have found someone to do it

try this one it displays open to close number.

Attached Files
Elite Membership required to download: BarNumbers.cs
Reply With Quote
  #10 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731


The last I heard, Range = High - Low, not the absolute value of Open minus Close

I changed the indicator accordingly.

I also updated the comments and captions in the code. The indicator applies range markers, not "bar numbers".. .

Let me know if you would like a voice that speaks the range of each bar after that bar closes. It's really pretty easy to code indicators that "talk". I just added a thread on that subject... " Let's teach [AUTOLINK]Ninjatrader[/AUTOLINK] how to talk".

Attached Files
Elite Membership required to download: BarRangeMarkers.cs
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on June 18, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts