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

Ninjatrader Alert auto trading Prior Day Close

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

    Ninjatrader Alert auto trading Prior Day Close

    Hello Team,
    I have build and alert (code is last price - cross below Prior day OLHC 1 minute) and I have attached an Action to short the stock .I only want the alert to trigger when the stock is in a downward trend and not on pullbacks when the price goes slightly above the close again and the does a second cross.I have been trying all day to find the correct code .Please help

    Thanks in advance

    #2
    Hello Behungr101,

    Thank you for your note.

    Are you creating this as an Alert using the Alerts window? Could you provide a screenshot example of a place you would and would not want it to take a trade?

    The logic you're wanting sounds like it would be too complex for an alert and would likely need to be an automated strategy using NinjaScript, however, I'd really need a better idea of the logic you're wanting to implement.

    Thanks in advance; I look forward to assisting you further.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hello Kate ,
      Thanks for the quick reply! I have attached the screenshot : Where I have drawn 1 and 2 on the chart is where I would like the alert to activate because the stock is in a downtrend , the spot on the chart 3 and 4 are pullbacks but I don't want the alerts to trigger here because they could turn in to reversals.
      Is there anyway around this ? I don't mind using the automated strategy because the intention is to go live with it anyway.

      Thanks in advance
      Attached Files

      Comment


        #4
        Hello Behungr101,

        Thank you for your reply.

        This does look to be complex - what constitutes a downtrend for you exactly? A certain number of ticks down over a certain number of bars?

        Thanks in advance; I look forward to assisting you further.
        Kate W.NinjaTrader Customer Service

        Comment


          #5
          Hello Kate,
          I really just want to short the stock when it crosses the Prior Close for the first or second time and not every time the price touches the prior day close. I guess I will just have to turn off rearmed on the alert so as the trigger one alert a Day.

          Thanks and regards

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by techgetgame, Yesterday, 11:42 PM
          0 responses
          8 views
          0 likes
          Last Post techgetgame  
          Started by sephichapdson, Yesterday, 11:36 PM
          0 responses
          2 views
          0 likes
          Last Post sephichapdson  
          Started by bortz, 11-06-2023, 08:04 AM
          47 responses
          1,613 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Yesterday, 05:56 PM
          0 responses
          10 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          20 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Working...
          X