NexusFi: Find Your Edge


Home Menu

 





DrawRegion with 3 Lines


Discussion in NinjaTrader

Updated
    1. trending_up 1,247 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?
Brendt Skorupinsky
Trading Reviews and Vendors
Radarscreen
TradeStation
MC PL editor upgrade
MultiCharts
Historical data for Kospi and Nikkei Index
NinjaTrader
Elite Trader Funding, Avoid?
Funded Trading Evaluation Firms
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Tao te Trade: way of the WLD
45 thanks
HumbleTraders next chapter
44 thanks
What is Markets Chat (markets.chat) real-time trading ro …
41 thanks
ApexTraderFunding.com experience and review
30 thanks
1 Minute Man
19 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary 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,104



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