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

Indicator with large parameter sets being called from a strategy

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

  • NinjaTrader_CalH
    replied
    afshinmoshrefi,

    To call the intialization of the class -

    private SMA sma1;

    In the OnStartUp() -
    sma1 = SMA(14);

    Leave a comment:


  • koganam
    replied
    Originally posted by afshinmoshrefi View Post
    I have an indicator that has 15 parameters. When I try to use the indicator inside a strategy, I have to enter all the parameters. Is there a way to call the indicator from a strategy without entering all the parameters?
    Not really, but you can always use a named instance of the indicator class, which means that you will have to write out the parameters only once, when you initialize the instance.

    Leave a comment:


  • Indicator with large parameter sets being called from a strategy

    I have an indicator that has 15 parameters. When I try to use the indicator inside a strategy, I have to enter all the parameters. Is there a way to call the indicator from a strategy without entering all the parameters?

Latest Posts

Collapse

Topics Statistics Last Post
Started by habeebft, Today, 07:27 AM
0 responses
4 views
0 likes
Last Post habeebft  
Started by Tim-c, Today, 03:54 AM
1 response
7 views
0 likes
Last Post NinjaTrader_BrandonH  
Started by rocketman7, Today, 01:00 AM
1 response
10 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by wzgy0920, 04-23-2024, 09:53 PM
3 responses
76 views
0 likes
Last Post NinjaTrader_BrandonH  
Started by JonesJoker, 04-22-2024, 12:23 PM
9 responses
46 views
0 likes
Last Post NinjaTrader_ChelseaB  
Working...
X