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 usazencort, Today, 01:16 AM
    0 responses
    1 view
    0 likes
    Last Post usazencort  
    Started by kaywai, 09-01-2023, 08:44 PM
    5 responses
    603 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    6 responses
    23 views
    0 likes
    Last Post xiinteractive  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    22 views
    0 likes
    Last Post Pattontje  
    Started by flybuzz, 04-21-2024, 04:07 PM
    17 responses
    230 views
    0 likes
    Last Post TradingLoss  
    Working...
    X