Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

hard stops

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

    hard stops

    Hey All,
    Did a little digging and I see this topic come up before but couldn't find a clear solution on it. I'm looking for an ATM strategy for chart trader (no automated trading) where as soon I enter a position a hard stop loss of X dollars is placed and a hard Y profit target is set as well.

    The quantity of shares I enter will dictate how far that stop loss and profit target is, so basically i would just need a simple calculation on a filled order:

    lets say I was looking for $100 stop loss and profit target

    on order fill == true
    100 / quantity = stopDistance
    setStopLoss = averageEntry - stopDistance
    setProfitTarget = averageEntry + stopDistance


    Can the above just be coded in a ninjascript (that would show up in the ATM strategy drop down) even though i'm using chartTrader and not an automated strategy?

    Any other simpler ways or other solutions to do this?

    Thanks,
    Evan

    #2
    Hi Evan, unfortunately that's not possible - you can only code an automatic NinjaScript strategy that would call ATM template for exit management, but then everything comes from the automatic strategy, so your entry signal and trigger as well.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    68 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    41 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    24 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    27 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    54 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X