Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

prevent duplication

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

    prevent duplication

    I wrote a indicator that would do a bunch of calculation plus notifications based on the calculation. this is plotted on my chart now. I want to call this indicator from my strategy and want to avoid the duplication especially the notification part. how can tell my indicator if its called as part of a strategy so I can avoid the notification section of the code

    #2
    Hello,

    Likely a Bool property to turn on or off the section of code would be the easiest approach. Using a bool public property would add an additional overload to the indicator indicatorName(false)

    You can find a sample of adding a user input here: http://ninjatrader.com/support/forum...ead.php?t=5782

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bmartz, 03-12-2024, 06:12 AM
    4 responses
    31 views
    0 likes
    Last Post bmartz
    by bmartz
     
    Started by Aviram Y, Today, 05:29 AM
    4 responses
    12 views
    0 likes
    Last Post Aviram Y  
    Started by algospoke, 04-17-2024, 06:40 PM
    3 responses
    28 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X