![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
|
Thanks for the Slope(). Please explain this. My 2 studies are clearly pointing up for currentbar and previous bar. However, as you can see, my readout is showing a negative number. Why? (see attached)
My code: slowLine = Slope(CCI(14), 1, 0); fastLine = Slope(CCI(6), 1, 0); I tried Slope(CCI(14), CurrentBar-1, 0); But got some really funky output. A very large number. I just want the slope from previous bar to current bar. BTW, what is your formula for the calc'ing of Slope();?
Last edited by funk101; 05-19-2007 at 01:36 PM.
|
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Slope of EMA | Creamers | Indicator Development | 2 | 04-13-2007 07:03 AM |
| Calculating slope & percentage... | funk101 | General Programming | 2 | 04-13-2007 03:01 AM |