Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Need NT8 EMA indicator code (full) to use as base

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need NT8 EMA indicator code (full) to use as base

    Need NT8 EMA indicator code (full) to use as base.


    I have an indicator from my MT4 days that I wish to convert for stock trading on NT8.


    Any help in obtaining the full code and maybe the way to compile/ import into NT8 after writing the new one will be greatly appreciated.

    #2
    Hello NuB@CODE,

    Thank you for your note.

    If you go to Control Center>New>Editor and go in the Indicators Folder and select EMA, you will see the code for the EMA indicator.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NuB@CODE View Post
      Any help in obtaining the full code and maybe the way to compile/ import into NT8 after writing the new one will be greatly appreciated.
      Welcome to the forums!

      You already have the full source code to all (well, most) of the stock indicators.

      You can use the NinjaScript Editor to look at, copy or modify any of this code as you see fit.

      Don't modify stock indicators (bad dragons down that road) so just copy a stock indicator into a file with a different name, (*)then rename the indicator inside the new file.

      Per the previous post, you can do all this using the NinjaScript Editor.

      Or you can use Windows commands to copy the file, and then use your favorite text editor to make the changes to the new file.

      All source code for the entire suite of indicators in NT8 is stored here:
      "<UserName>/Documents/NinjaTrader 8/bin/Custom/Indicators"

      The file you're looking for is "@EMA.cs".

      (*)I wrote an answer about how to copy & rename a strategy that is also applicable to indicators as well, it might be helpful to you,

      Support for the development of custom automated trading strategies using NinjaScript.
      Last edited by bltdavid; 05-20-2018, 06:21 PM.

      Comment


        #4
        Thank you kindly _AlanP and bltdavid.
        Will do.


        Now I have to see how to work in built -in subroutines from the MT4, but that's fine.


        I will call for help if I get stuck.


        Cheers.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        19 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        179 views
        0 likes
        Last Post jeronymite  
        Started by ghoul, Today, 06:02 PM
        0 responses
        9 views
        0 likes
        Last Post ghoul
        by ghoul
         
        Started by DanielSanMartin, Yesterday, 02:37 PM
        2 responses
        13 views
        0 likes
        Last Post DanielSanMartin  
        Started by DJ888, 04-16-2024, 06:09 PM
        4 responses
        13 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Working...
        X