NexusFi: Find Your Edge


Home Menu

 





DrawRegion with 3 Lines


Discussion in NinjaTrader

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




 
Search this Thread
  #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?
Cboe Launches BITVX Bitcoin Volatility Index and Unveils …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
CFTC Launches Innovation Task Force for AI Trading Syste …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114



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


© 2026 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 - Downloads - Top
no new posts