Go Back   NinjaTrader Support Forum > NinjaTrader 7 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 11-10-2009, 04:08 PM   #16
nealpek
Junior Member
 
Join Date: Feb 2008
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
Default distance between ema's

i've looked in the indicators sectionand can't find what i am looking for. Say you have 2 ema's 10 and 20. What i am looking for is an indicator consisting of a line toggling above or below zero, that can tell me the distance between the 2 ema's. any suggestions?
neal
nealpek is offline  
Reply With Quote
Old 11-10-2009, 04:13 PM   #17
NinjaTrader_JoshP
NinjaTrader Product Manager
 
NinjaTrader_JoshP's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,459
Thanks: 1
Thanked 329 times in 102 posts
Default

You will need to self program it if someone has not shared it already. You can try one of these 3rd party NinjaScript Consultants to make it for you too: http://www.ninjatrader.com/webnew/pa...injaScript.htm
NinjaTrader_JoshP is offline  
Reply With Quote
Old 10-19-2011, 06:37 PM   #18
pandyav
Senior Member
 
Join Date: Oct 2011
Posts: 183
Thanks: 4
Thanked 3 times in 3 posts
Default Problem with Krause Slope

For some reason Krause slope posted on 02/23/2009 at 6:08 AM does not work. NT 7 is not able to open the file, is it possible to re-post the file as I am also looking to identify slope of MA.

Many Thanks.
pandyav is offline  
Reply With Quote
Old 08-14-2015, 08:43 PM   #19
andrei.reiand
Member
 
Join Date: Jan 2013
Posts: 45
Thanks: 2
Thanked 1 time in 1 post
Default 403 forbidden

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
Hi, you can check out the 'Krause Slope' posted to our sharing section for this - http://www.ninjatrader-support2.com/...&id=37&catid=1

It will retrun you the slope in degress.
Hi Bertrand,

The link returns 403 forbidden (even if I'm logged in) ... do you have an updated link for this indicator ?
andrei.reiand is offline  
Reply With Quote
Old 08-15-2015, 08:52 PM   #20
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 10,003
Thanks: 735
Thanked 1,676 times in 1,615 posts
Default

Hello,

The Krause Slope was developed for NinjaTrader 6.5 ti will not work in NinjaTrader 7. You can find it at the following link: http://www.ninjatrader.com/support/f...id=1&linkid=37
NinjaTrader_PatrickH is offline  
Reply With Quote
Old 09-22-2016, 03:13 PM   #21
FIG690
Junior Member
 
Join Date: Dec 2009
Posts: 11
Thanks: 1
Thanked 0 times in 0 posts
Default

Hi Patrick,

This indicator will not import into NT7. I get an error that I already have a newer EMA and it fails. I then remove my ema and try to re-import and it still fails saying I'm missing an indicator.

Thanks.
FIG690 is offline  
Reply With Quote
Old 09-23-2016, 08:51 AM   #22
NinjaTrader_Paul
NinjaTrader Customer Service
 
NinjaTrader_Paul's Avatar
 
Join Date: May 2014
Posts: 2,611
Thanks: 307
Thanked 596 times in 580 posts
Default

Hello FIG690,

Thanks for your post.

The indicator in the link is not compatible with Ninjatrader 7. I am not aware of a conversion of this indicator to Ninjatrader 7. You may want to review all of the Ninjatrader 7 compatible indicators located here: http://ninjatrader.com/support/forum...ks.php?catid=4
NinjaTrader_Paul is offline  
Reply With Quote
Old 01-11-2017, 11:22 PM   #23
mximing
Junior Member
 
Join Date: Aug 2009
Posts: 6
Thanks: 1
Thanked 0 times in 0 posts
Default

I am trying to build this rising/falling 50 SMA strategy. I cannot get it to work though. In the Condition Builder I choose Misc and then Rising. In the Input Series I can see I have SMA(50). I have nothing in the User Defined Inputs. Do I need to add an input there?
mximing is offline  
Reply With Quote
Old 01-12-2017, 08:10 AM   #24
NinjaTrader_Paul
NinjaTrader Customer Service
 
NinjaTrader_Paul's Avatar
 
Join Date: May 2014
Posts: 2,611
Thanks: 307
Thanked 596 times in 580 posts
Default

Hello mximing,

Thanks for your post.

I've created the condition in the strategy wizard and shown the choices to make in the attached picture.
Attached Images
File Type: png mximing-1.PNG (59.6 KB, 17 views)
NinjaTrader_Paul is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Paul for this post:
Old 01-18-2017, 03:36 PM   #25
mximing
Junior Member
 
Join Date: Aug 2009
Posts: 6
Thanks: 1
Thanked 0 times in 0 posts
Default

Thanks, Paul!
I have one more question about the wizard. I want the strategy to take the first signal, not start to trade when the markets open. Like when the moving average turns down. How do I do that using the wizard?

Thanks
mximing is offline  
Reply With Quote
Old 01-19-2017, 08:00 AM   #26
NinjaTrader_Paul
NinjaTrader Customer Service
 
NinjaTrader_Paul's Avatar
 
Join Date: May 2014
Posts: 2,611
Thanks: 307
Thanked 596 times in 580 posts
Default

Hello mximing,

Thanks for your post.

So currently your strategy is not taking the first signal and it is waiting until the markets open? Do you have conditions that look at time?

Can you define the requirements for "...when the moving average turns down"? A simple test is to use the opposite of the Rising() method and use the Falling() method.
NinjaTrader_Paul is offline  
Reply With Quote
Old 01-19-2017, 08:10 AM   #27
mximing
Junior Member
 
Join Date: Aug 2009
Posts: 6
Thanks: 1
Thanked 0 times in 0 posts
Default

I am using rising and falling in the code from the wizard.

The strategy closes the open trade at the market close. Then enters into a new trade at 16:00, not when the moving average changes from rising to falling or falling to rising.

I want it to close the trade at the market close, but only enter into a new trade after the market opens again and there is a change in the direction of the MA.
mximing is offline  
Reply With Quote
Old 01-19-2017, 08:19 AM   #28
NinjaTrader_Paul
NinjaTrader Customer Service
 
NinjaTrader_Paul's Avatar
 
Join Date: May 2014
Posts: 2,611
Thanks: 307
Thanked 596 times in 580 posts
Default

Hello mximing,

Thanks for your reply.

In that case you would want to create a condition that uses times to trade that you define. Please see the condition builder helpguide section here: http://ninjatrader.com/support/helpG...on_builder.htm Note the last section, "How to create time comparisons"
NinjaTrader_Paul is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hull Moving Average prostyle Indicator Development 3 06-06-2016 11:00 AM
Moving Average calculation Shiva Swinger General Development 6 11-26-2008 11:36 AM
Moving Average of RSI GeorgeO Indicator Development 1 08-01-2008 09:29 AM
moving average of a moving average zq655 Indicator Development 2 04-25-2008 12:47 AM
Moving Average Envelope fetus Platform Technical Support 1 09-24-2007 03:58 PM


All times are GMT -6. The time now is 10:25 AM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content. Visit the CFTC resources for education regarding the industry and signs of fraud.