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 NullPointStrategies, Today, 05:17 AM
    0 responses
    41 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    64 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
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X