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 maybeimnotrader, Yesterday, 05:46 PM
        4 responses
        23 views
        0 likes
        Last Post maybeimnotrader  
        Started by frankthearm, Today, 09:08 AM
        6 responses
        24 views
        0 likes
        Last Post frankthearm  
        Started by adeelshahzad, Today, 03:54 AM
        5 responses
        33 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        7 responses
        32 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by merzo, 06-25-2023, 02:19 AM
        10 responses
        823 views
        1 like
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X