Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I want to make coloured SMA histogram for BuySellStrength by tulanch.
Indicator you can find: NinjaTrader Support Forum > Links and Downloads Manager > Version 7 Indicators
Question is: How to make the histogram value higher than zero to have a green colour, and for values lower than zero to have a red colour?
I modified the BuySellStrength indicator by adding:
// needed for the average
and
----------------------------------------
and SMA indicator by adding:
// to illustrate the value higher and lower than zero
The result can be seen in the attached file. There are no colours which I wrote about. Can sombody help me?
Regards,
Can you help answer these questions from other members on NexusFi?
I only need to modify BPSMA indicator. BPSMA is just a SMA standard ninjatrader indicator. I only added zero line:
I just want to modify the usual SMA (which can be found including standard indicators) for a value greater than zero have a green color and the lower value of zero have a red bar color.
My input series for SMA indicator (BPSMA) is: BuySellStrength indicator with Plot "BP", but it could be anything else.
BP is just a variable from BuySellStrength indicator:
So, I take variable BP and make SMA but would be nice to see the effect of green bars> 0 and red <0, only by modifying SMA indicator.
UPDATE: 2011-05-16
Fix BPSMA to show if SMA > 0 then green else red.
Compile Error: Can not use the operator "> =" to the arguments of operations such as "NinjaTrader.Data.DataSeries" or "int".
CS0019: Error Code Explanation
Strings cannot be compared with relational operators (<, >, <=, >=, ==, !=) to other object types. Strings can only be compared to other strings and only through the use of equality operators (==, !=).
Compile Error: Can not use the operator "> =" to the arguments of operations such as "NinjaTrader.Data.DataSeries" or "int".
CS0019: Error Code Explanation
Strings cannot be compared with relational operators (<, >, <=, >=, ==, !=) to other object types. Strings can only be compared to other strings and only through the use of equality operators (==, !=).