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

is this proper way to check if indicator value is set for this bar or not?

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

    is this proper way to check if indicator value is set for this bar or not?

    i want to setup the indicator value only if its not already set. so it this the right way to do it?
    if (!BreakoutLong.IsValidDataPoint(0) && High[0] > High[1])
    {
    Draw.Text(this, RandomString(20), "long breakout", 0, 3, Brushes.Pink);
    BreakoutLong[0] = BREAKOUTLONG;
    }

    #2
    Hello junkone,

    Thank you for your post.

    Yes, that would check whether BreakoutLong[0] contains a value already and if not, would set that value.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by tradingnasdaqprueba, 05-07-2024, 03:42 AM
    12 responses
    48 views
    0 likes
    Last Post tradingnasdaqprueba  
    Started by bill2023, Yesterday, 08:21 AM
    3 responses
    18 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by DawnTreader, Yesterday, 05:58 PM
    4 responses
    19 views
    0 likes
    Last Post DawnTreader  
    Started by lorem, 04-25-2024, 09:18 AM
    10 responses
    47 views
    0 likes
    Last Post lorem
    by lorem
     
    Started by swjake, Today, 12:04 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X