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 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
    51 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