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.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    55 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    35 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    19 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    7 views
    0 likes
    Last Post cre8able  
    Working...
    X