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

How to get signals from custom indicator

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

    How to get signals from custom indicator

    Hello.

    How to get signals from custom indicator in strategy.
    For ex., i create custom indicator, and i need to use this signals in my EA.

    How to do it. Please, give examples of experts, where it is implemented.

    Thanks.

    #2
    Pirat,

    You can use an indicator inside of a strategy just by calling it, for example :

    if ( SMA(15)[0] > Close[0] )
    {
    //do something
    }

    Your custom indicator will also have some name, so for example

    if ( MyCustomIndicator(Input1,input2)[0] > 0 )
    {
    //do something
    }

    I would suggest reviewing our educational resources.

    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Thanks for help!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by joselube001, 05-10-2024, 12:17 PM
      6 responses
      27 views
      0 likes
      Last Post joselube001  
      Started by bigc0220, 09-18-2018, 09:16 AM
      6 responses
      2,579 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by lorem, 04-25-2024, 09:18 AM
      18 responses
      78 views
      0 likes
      Last Post lorem
      by lorem
       
      Started by DawnTreader, 05-08-2024, 05:58 PM
      21 responses
      81 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by doihaveto13, Today, 12:46 PM
      2 responses
      4 views
      0 likes
      Last Post doihaveto13  
      Working...
      X