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 quantismo, 04-17-2024, 05:13 PM
          3 responses
          25 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          34 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          5 views
          0 likes
          Last Post cls71
          by cls71
           
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          214 views
          1 like
          Last Post PaulMohn  
          Started by TheWhiteDragon, 01-21-2019, 12:44 PM
          4 responses
          547 views
          0 likes
          Last Post PaulMohn  
          Working...
          X