Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how can I do this strategy? help!

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

    how can I do this strategy? help!

    Hello

    I want this:

    Every time the range of a pinbar is greater than 2 x ATR then plot a dot, for example.

    So I don't need to calculate the range of the pinbar and see if it is 2xATR every time and I can even close the ATR indicator.

    Is this possible? how can I do it?

    Thanks!

    #2
    Hello marcopicos, and thank you for your question.

    NinjaTrader handles memory very efficiently, so it is safe to call your indicator's method every time you need it without a significant performance hit.

    So you can simply call

    Code:
    [FONT=Courier New]if (Range(PinBar(arguments))[0] > 2 * ATR(period)[0])
    {
        DrawDot("DotForBar" + CurrentBar, true, 0, Close[0], Color.ForestGreen)
    }[/FONT]
    Please let us know if there are any other ways we can help.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    76 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    62 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X