Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

atr trailing stop strategy builder fully automated

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

    atr trailing stop strategy builder fully automated

    hi i m new here and i have no coding knowledge but i need help to built fully automated strategy in which ATR trailing stop range 5 and 3.5 parameter
    and lets say i m in long trade and mkt goes in my direction so my stop goes up it keeps on going up until stops hit and once the stop hits system should reverse from long to short and now stop is above my short price and if mkt goes in my direction stops is coming down and keeps coming down until it hit stop and once it hit the stop system reverse my position to long and so on so i will in the trade all the time 24-7
    so basically i m not worry about taking profit or loss atr trailing stop automated system working all by itself
    if this kind of system already exist plz let me know if not plz help to build this fully automated system thanx waiting for reply​

    #2
    Hello vermaam,

    Please note, A basic understanding of C# programming is prerequisite to writing NinjaScript code.
    Below is a link to a support article with helpful resources on getting started with C# and NinjaScript.


    A simple concept example of basic logic for atr trailing created with the Strategy Builder can be found here.


    Regarding reversing after the stop has filled, you may need to use a bool to track the direction.
    To place a buy order require the bool to be unchecked in the conditions as well as the position to be flat, and set the bool to true in the actions where the order is submitted.
    For a sell order require the bool to be checked in the conditions as well as the position to be flat, and set the bool to false in the actions where the order is submitted.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    71 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X