![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Dec 2004
Location: , ,
Posts: 68
Thanks: 4
Thanked 3 times in 1 post
|
What's wrong with this?: It plots nothing as soon as I use those double values.
double slobenow=(EMA(MyInput0)[0])-(EMA(MyInput0)[1]); double slobe=(EMA(MyInput0)[1])-(EMA(MyInput0)[2]); if (slobe<0) { slobe=slobe*-1; } if (slobenow<0) { slobenow=slobenow*-1; } if (slobe > slobenow ) { Plot0.Set(1); } else { Plot0.Set(-1); } |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|