Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No entry if the last entry is near the new entry + / - pips

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

    No entry if the last entry is near the new entry + / - pips

    Hello,

    I´d like to program a rule that if a new signal is coming in for an entry the entry is not allowed to enter if the new entry is not greater (as example) 100 pips from the last entry.

    Hope you unterstand

    I made a paint draft for show what I mean.

    Can I program it via the builder ?

    Thank you !
    Attached Files

    #2
    Hello Uregon,

    In the Strategy Builder you can save the Close price to a variable (or the price used for the limit or stop price of the entry).
    Add a variable on the Inputs and variables page.
    In the actions (Do the following) select Misc -> Set <your variable name here>, and then select Price -> Close.

    Then when placing a new entry ensure the Close is greater than the variable.
    On the left select Price -> Close, in the center select Greater, on the right select User variables -> <your variable name>.

    I am also including a link to a forum post with helpful resources on getting started with NinjaScript and C# and includes a link to a training video for the Strategy Builder.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      A simple variable will not allow you to do the math (greater than +100) you want.
      You will need a custom series to accomplish this.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      32 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      195 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      359 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      278 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X