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, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X