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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    52 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    275 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X