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)
Hi guys,
I am trying to make a script that consists of 2 original SMA indicators , I tried so many ways to duplicate the original but it didn't work out for me..
I would highly appreciate it if someone can tell me how to make a double or triple version of the original SMA.
one more thing: Can I set the value of one SMA to CalculateOnBarClose = false, and the other one to CalculateOnBarClose = true !!!
Thanks...
Can you help answer these questions from other members on NexusFi?
thank you mike,
but if i set the previous code, how will i be able to customize each plots characteristics, for example if i wanna add a condition that changes the 20SMA color when it crosses above the 100SMA !!
if both SMAs has one defined variable which is private double dsma, how will i be able to change each SMA's separately ? what's the unique definition for the 20SMA ? and whats is for the 100SMA ?
plus it keeps on telling me that cannot convert ninjatrader.type.indicator.SMA to double !!!!
any other thoughts bro ?
Type-o in my code. I haven't used NT in 18 months, give me a small break Add [0] to end to reference DataSeries.
dsma = SMA(SMA(Close, 20), 100)[0];
Sadboybh
thank you mike,
but if i set the previous code, how will i be able to customize each plots characteristics, for example if i wanna add a condition that changes the 20SMA color when it crosses above the 100SMA !!
if both SMAs has one defined variable which is private double dsma, how will i be able to change each SMA's separately ? what's the unique definition for the 20SMA ? and whats is for the 100SMA ?
thanks in advance
Try watching @sam028's basic intro webinar on NT programming which covers multi color plots:
I will present a webinar on very basic Ninjascript coding and debugging. As you know NinjaScript is based on C#, but this will not be a webinar on C# programming itself, I will only show very basic C# stuff.
At the end of the webinar, a guy with no …
And/or @shodson's NT webinar which gives you the basic building blocks of C#:
I will be presenting a webinar on introductory principle of Ninjascript and the C# programming language upon which it is based.
Pre-requisites: It is assumed that you have some programming experience, and that you understand basic concepts of programming …
Or look at any one of the hundreds of indicators on nexusfi.com (formerly BMT) that have multicolor plots and look at the code and learn. Try also buying some C# books to get you started.