NexusFi: Find Your Edge


Home Menu

 





MA region color indicator. help needed


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
Doppio's Avatar
 Doppio 
Burnie Tasmania
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus Zenfire
Trading: 6E
Posts: 42 since May 2010
Thanks Given: 19
Thanks Received: 11

I have been struggling over coding a simple indicator that will give me a visual of a region color when one EMA is above or below another EMA.
There are so many errors in my code and I really have no idea what I am doing. I am sure someone out there with experience will be able to assist me. I know you may laugh- and I don't blame you... Anyway- I had a go.
Thanks in advance
Doppio


Attached Files
Elite Membership required to download: 2EMA region color.doc
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
OneChronos Launches First Combinatorial Auction FX Venue …
Currencies
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
The Feds Stagflation Trap -- Negative Payrolls, $91 Oil, …
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
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,756 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,632


Check this, and compare the code with your original version.

RegionMA.cs



Very quickly done, so maybe not perfect at all.


Success requires no deodorant! (Sun Tzu)
Follow me on X Reply With Quote
Thanked by:
  #4 (permalink)
 
Doppio's Avatar
 Doppio 
Burnie Tasmania
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus Zenfire
Trading: 6E
Posts: 42 since May 2010
Thanks Given: 19
Thanks Received: 11

SAM028- I am in your debt mate.
That is perfect.
When I compared your code to mine- and you said it was very quickly done, I was thinking I would have to tweak this or that...
What I realized is that your coding is like the plans for a 747 and mine like the that of a billy cart.
Thank you so much.
Now I want to go line by line and try and work out what each piece means.
Much appreciated
Doppio


Started this thread Reply With Quote




Last Updated on June 8, 2010


© 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