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 kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    59 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    41 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    47 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    38 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    157 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X