Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding a trailing stop after x ticks

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

    Adding a trailing stop after x ticks

    Hey guys!
    I'm trying to build a simple strategy and I'm almost done but now I've hit a wall.
    I need to have a trailing stop that only triggers after x amount of ticks (both longs and shorts) but I can't seem to find how to do this. In the builder, the trailing triggers right away.
    I'm not a coder so please explain like I'm a 5 year old, I won't be insulted!
    Thanks!

    #2
    Hello yanikphoto,


    Thank you for your post.


    First, please take a look at this forum post that goes over Getting Started with NinjaScript.


    You can review these example scripts from the forum, which demonstrate trailing behavior in the Strategy Builder. These examples also allow for dynamically changing the width of the trail stop, which is not possible when using the basic SetTrailStop from the Stops and Targets section of the Strategy Builder.


    TrailLongShortBuilderExample specifically demonstrates trailing behavior for both longs and shorts.


    If you have any other questions, please let me know.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    132 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X