![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Question:
Quote:
You have to use the Slope() method in addition checking for the cross. Something like: if (CrossAbove(SMA(10), SMA(20), 1) && Slope(SMA(10), CurrentBar - 1, CurrentBar) > angleValue) // Do something PS - There is a bug in the current Slope() method calculation, will be resolved for the next update.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jun 2007
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
|
Hi Ray:
Thanks for help, this could be a good thread. I am using the strategy wizard, so where and how do I perform the task, you wrote, I am not a programer. Please help Thanks zee |
|
|
|
|
|
#3 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Unfortunately accessing the Slope() method is not available in the Wizard at this time. It will be later in the fall.
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Condition Builder | OUFan | Strategy Development | 6 | 12-19-2007 02:05 PM |
| Referencing Previous Instance(s) Of Condition | roxana | Automated Trading | 11 | 08-01-2007 05:13 PM |
| Slppe/Angle of indicator | AO76 | Indicator Development | 6 | 07-09-2007 10:22 PM |
| How do I check for the instrument name? | NinjaTrader_Ray | General Programming | 0 | 02-07-2007 01:24 AM |
| Check News | cherokeeruby | Miscellaneous Support | 6 | 04-27-2005 02:00 AM |