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