NexusFi: Find Your Edge


Home Menu

 





BarColor Opacity


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one KrazyTrader with 3 posts (1 thanks)
    2. looks_two TheWizard with 2 posts (3 thanks)
    3. looks_3 Hulk with 2 posts (2 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
      Best Posters
    1. looks_one TheWizard with 1.5 thanks per post
    2. looks_two Hulk with 1 thanks per post
    3. looks_3 Silvester17 with 1 thanks per post
    4. looks_4 KrazyTrader with 0.3 thanks per post
    1. trending_up 1,888 views
    2. thumb_up 7 thanks given
    3. group 2 followers
    1. forum 7 posts
    2. attach_file 1 attachments




 
Search this Thread

BarColor Opacity

  #1 (permalink)
 KrazyTrader 
Dallas, TX/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, CL
Posts: 51 since Aug 2013
Thanks Given: 56
Thanks Received: 9

Hi all,

I'm new to programming and could use some help. I have bars set to paint and need to add opacity.

If EMA > SMA
BarColor = Color.Green;

All feedback welcome.

Thanks in advance

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Deepmoney LLM
Elite Quantitative GenAI/LLM
Ninja Mobile Trader VPS (ninjamobiletrader.com)
Trading Reviews and Vendors
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
Build trailing stop for micro index(s)
Psychology and Money Management
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
60 thanks
Funded Trader platforms
43 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #3 (permalink)
 
Hulk's Avatar
 Hulk 
Texas, USA
 
Experience: Advanced
Platform: TT, Custom
Trading: Futures, Spreads
Posts: 369 since May 2014
Thanks Given: 731
Thanks Received: 901



KrazyTrader View Post
Hi all,

I'm new to programming and could use some help. I have bars set to paint and need to add opacity.

If EMA > SMA
BarColor = Color.Green;

All feedback welcome.

Thanks in advance

You can use something like the following. Set the alpha value from 0 to 255 with 0 being transparent and 255 being fully opaque.

 
Code
Color.FromArgb(150, Color.Green);

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 KrazyTrader 
Dallas, TX/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, CL
Posts: 51 since Aug 2013
Thanks Given: 56
Thanks Received: 9


Hulk View Post
You can use something like the following. Set the alpha value from 0 to 255 with 0 being transparent and 255 being fully opaque.

 
Code
Color.FromArgb(150, Color.Green);


You lost me on the alpha reference.

Thanks for the response.

Started this thread Reply With Quote
Thanked by:
  #5 (permalink)
 
Hulk's Avatar
 Hulk 
Texas, USA
 
Experience: Advanced
Platform: TT, Custom
Trading: Futures, Spreads
Posts: 369 since May 2014
Thanks Given: 731
Thanks Received: 901


KrazyTrader View Post
You lost me on the alpha reference.

Thanks for the response.

Maybe the reference doc for Color.Argb method will help:

https://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k;k;k&rd=true

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
 
TheWizard's Avatar
 TheWizard 
Houston, TX
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus Futures, AMP, CQG
Trading: 6E
Posts: 1,731 since Jun 2009
Thanks Given: 517
Thanks Received: 4,224


KrazyTrader View Post
Hi all,

I'm new to programming and could use some help. I have bars set to paint and need to add opacity.

If EMA > SMA
BarColor = Color.Green;

All feedback welcome.

Thanks in advance


Reply to this message, attach the indicator and I'll happily add the bar coloring for you, with notation so that you can see what I've done, where and why.

After all, it's what you learn AFTER you know it all, that counts!
Reply With Quote
Thanked by:
  #7 (permalink)
 KrazyTrader 
Dallas, TX/USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: ES, CL
Posts: 51 since Aug 2013
Thanks Given: 56
Thanks Received: 9

Thanks so much.

Attached Files
Elite Membership required to download: McXv1.cs
Started this thread Reply With Quote
  #8 (permalink)
 
TheWizard's Avatar
 TheWizard 
Houston, TX
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus Futures, AMP, CQG
Trading: 6E
Posts: 1,731 since Jun 2009
Thanks Given: 517
Thanks Received: 4,224


KrazyTrader View Post
Thanks so much.

@KrazyTrader, First - before we get too involved, here. I think there already exists something that will do everything you might possibly want. It's an indicator posted by That Man From Texas (now, sadly, no longer with us) that allows you to:

choose 2 MA's
color each MA individually
shade the zone between the 2 ma's, if you desire
color the up bars & down bars, if you desire
change the candlestick outline colors, both up & down, if you desire
color the background of the price panel, if you desire

It does NOT have a sound option, but that could most likely be easily added, if needed.

Try it out & see if this does what you want. If not, we can go back to the drawing board & start fresh with your McXv1.

As I've gotten older, I've realized that I spent a lot of my earlier years reinventing a lot of stuff that didn't need to be reinvented. Just wanted to avoid another instance of doing the same.

Let me know if this does everything you wanted the indicator to do. We can go from there.

I see you're an ELITE member and this thread is not ELITE, so I'm sending you the indicator via Private message, as the TMFTDualMa may be an ELITE indicator.

After all, it's what you learn AFTER you know it all, that counts!
Reply With Quote
Thanked by:




Last Updated on May 24, 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