NexusFi: Find Your Edge


Home Menu

 





DrawRegion with 3 Lines


Discussion in NinjaTrader

Updated
    1. trending_up 1,220 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

DrawRegion with 3 Lines

  #1 (permalink)
 Randwulf 
Colorado Springs, CO
 
Experience: Beginner
Platform: NinjaTrader
Posts: 22 since Oct 2009
Thanks Given: 16
Thanks Received: 0

I have 3 lines on my chart. An SMA, EMA & T3.
I'm using DrawRegion 3 times (1 for each combination).
This would be fine if that was all I needed but
I have 5 separate conditions (whether one is trending for example).
This requires using DrawRegion 15 times.

During each condition evaluation, I determine which line is on top & on bottom.
Is there a way to assign a substitute variable in each condition to use for the DrawRegion inputs ?
That way, I would only have to use 2 DrawRegion lines...

Thx in advance for any help you can offer.

P.S. I can't just use the line values as the DrawRegion output is very blocky.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
Better Renko Gaps
The Elite Circle
Quant vue
Trading Reviews and Vendors
 
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103



Randwulf View Post
I have 3 lines on my chart. An SMA, EMA & T3.
I'm using DrawRegion 3 times (1 for each combination).
This would be fine if that was all I needed but
I have 5 separate conditions (whether one is trending for example).
This requires using DrawRegion 15 times.

During each condition evaluation, I determine which line is on top & on bottom.
Is there a way to assign a substitute variable in each condition to use for the DrawRegion inputs ?
That way, I would only have to use 2 DrawRegion lines...

Thx in advance for any help you can offer.

P.S. I can't just use the line values as the DrawRegion output is very blocky.


You could calculate the MAX and MIN for your set of lines and then and then write those values to two new DataSeries objects. Then use DrawRegion() with those DataSeries.

Reply With Quote
Thanked by:
  #4 (permalink)
 Randwulf 
Colorado Springs, CO
 
Experience: Beginner
Platform: NinjaTrader
Posts: 22 since Oct 2009
Thanks Given: 16
Thanks Received: 0

Thx 4 the reply Fat Tails...

I do have the Max and Min values.
I've just never created DataSeries objects at this point.
I'll begin my journey into how to achieve this.

Thank you very much.
You are truly one of the "Big Brothers" in the "Big Mike's Forum" family.

Started this thread Reply With Quote




Last Updated on August 17, 2015


© 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