Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using SMMA indicator in a custom strategy

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

    Using SMMA indicator in a custom strategy

    Hi,

    I am using the SMMA indicator that was shared in the indicator forum I have imported the indicator and can add it to my chart.

    I would like to use it in a custom strategy and adding it as a class member gives a compiler error

    private SSMA fast_SSMA_14;

    Error:
    The type or namespace name 'SSMA' could not be found (are you missing a using directive or an assembly reference?)

    Could you please let me know how to access custom indicators from the strategy code?

    Thanks,
    Cha
    Attached Files

    #2
    The indicator is named SMMA not SSMA.

    Comment


      #3
      Hello chandiram2,

      Tasker-182 is correct, you need to use the correct indicator name.

      If you are unsure on the code needed to use a custom indicator you can use the strategy builder to generate the indicators code. You just need to make a condition that uses the indicator in a new strategy builder script then click view code. You can then see the correct code to use the indicator and can copy/past from that into your script.

      Comment


        #4
        Thanks for the response. I see the typo now!

        I have not used the strategy builder and only directly write the code. Could you please let me know how to make the condition to use the indicator?

        Thanks for your help. Really appreciate it.
        Chan

        Comment


          #5
          Hello chandiram2,

          You can learn how to make conditions and use the strategy builder in the following links:


          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by abelsheila, 05-14-2025, 07:38 PM
          2 responses
          35 views
          0 likes
          Last Post hglover945  
          Started by nailz420, 05-14-2025, 09:14 AM
          1 response
          73 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Started by NinjaTrader_Brett, 05-12-2025, 03:19 PM
          0 responses
          360 views
          1 like
          Last Post NinjaTrader_Brett  
          Started by domjabs, 05-12-2025, 01:55 PM
          2 responses
          67 views
          0 likes
          Last Post domjabs
          by domjabs
           
          Started by Morning Cup Of Trades, 05-12-2025, 11:50 AM
          1 response
          88 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Working...
          X