Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price change strategy

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

    Price change strategy

    Hi, I've looked all over for the answer and have yet to find anything close so I'm hoping someone can help.

    I'm looking to create a strategy that if price increases by 2 ticks (ie. 1000.00 to 1000.50) the system enters a long position. If the price decreases by 2 ticks the system enters a short position.

    It seems simple enough and I hope that I'm able to clearly explain what I'm looking to do. My experience with Ninjatrader strategies is beginner and I do not have any type of programming language background. I would really appreciate any help to get me going. Thanks!

    #2
    Hi, thanks for posting.

    You would need to save a reference price at some point to refer to it later and see if the later price is 2 ticks higher/lower than the reference price. In a script this would look like: if(Close[0] > ReferencPrice+ TickSize*2). If you are starting out with NinjaScript Strategies, please see these tutorials on using the builder:
    https://ninjatrader.com/support/help...on_builder.htm

    Kind regards,
    -ChrisL
    Last edited by NinjaTrader_ChrisL; 09-08-2021, 07:46 AM.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X