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

alert for automatically drawn lines

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

    alert for automatically drawn lines

    Hi Ninjas

    Is there anything I can use from the NT arsenal to get alerted if the MACD trendline is broken? I use EOD data so if alert wouldn't work (email/sound), printing smth. into Output window instead would be great.

    I've developed an "automatic" MACD trendline which I'd like to test:
    I've implemented a DrawTrendChannel on the MACD line. 1 trendline is plotted rather than channel, but that's what I needed. (I needed a trendline crossing both MACD swings with its plot lasting behind 2nd swing (classic trend), DrawLine only connects 2 swings with plot limited by 2 dots).

    I've noticed there's an indicator called "alert for manually drawn lines", but my line is "automatic" so I wonder if there's a better match in this case.

    #2
    Hello ionaz,

    That would be the best method that I can think of. You may want to take out the "UserDrawn" check so that way you can check for objects that are programmatically drawn.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by helpwanted, Today, 03:06 AM
    1 response
    10 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    8 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    386 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X