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 NullPointStrategies, Today, 05:17 AM
      0 responses
      46 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      66 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X