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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X