Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entering a position based on pips

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

    Entering a position based on pips

    Newbie NT user here. Thanks for looking, hopefully you can help and I'll give back to the community as I get better.


    I'm trying to create a simple strategy that will allow me to go long as an instrument crosses above the 90's, and sell after 20 or so pips.


    It would activate based on the pips, not on 1 price level? so it would repeat for 1.4790 (sell at 1.4810), buy 1.4890 (sell at 1.4910) , buy at 1.4990 (sell at 1.5010) ...


    Is it possible to do something generic like this so that I can run it across many instruments, could you point me in the right direction for a strategy? i've looked at the others and they're all using indicators and cross-overs and price levels.


    Thanks in advance,


    Sp

    #2
    Hello sparhawk,

    Thank you for your post.


    This should be possible with custom programming.

    It sound like you want to define an initial condition with a crossover and then scale into positions based on the price when your first condition occurred.
    You would need to add some extra statement in your first condition to capture the price level. Then for your next entry you could use something like.
    if (Close[0] >= CapturedPriceLevel + TickSize * 100)

    You may consider using a NinjaScript consultant to help code this for a fee:



    You can use the strategy analyzer to backtest a group of stocks. For current version 6.5 backtest results are only calculated on individual instruments within the group, but for version 7 you will be able to get a cumulative report.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    368 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    571 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X