Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM strategy requires Stop Loss setting ?!

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

    ATM strategy requires Stop Loss setting ?!

    My strategy has good entries but poor on Exiting. so I code it once the position become profitable, hand it to my custom ATM strategy so I can manually manage the Exit on the other window with Chart Trader. The problem is the ATM strategy treat this external order as entry order and requires Stop Loss setting, but in my case, I use for Exit only. Then I try to leave the Stop Loss price far away, but it keeps coming up after my Exit is hit. is there anyway to disable Stop Loss.

    and here is the ATM portion in my strategy:
    if (orderId.Length == 0 && atmStrategyId.Length == 0 && Position.GetProfitLoss(Close[0], PerformanceUnit.Points)> 1.25)
    {
    atmStrategyId = GetAtmStrategyUniqueId();
    orderId = GetAtmStrategyUniqueId();

    if(Position.MarketPosition==MarketPosition.Short)
    AtmStrategyCreate(Cbi.OrderAction.BuyToCover, OrderType.Limit, Low[
    0]-2, 0, TimeInForce.Day, orderId, "AtmStrategyExitOnly", atmStrategyId);

    elseif(Position.MarketPosition==MarketPosition.Long)
    AtmStrategyCreate(Cbi.OrderAction.Sell, OrderType.Limit, High[
    0]+2, 0, TimeInForce.Day, orderId, "AtmStrategyExitOnly", atmStrategyId);

    }

    #2
    Hello solvmatic, unfortunately a stop value has to be set for an ATM strategy template. You could also not disable it via code, it would be cancelled once the other part of the ATM, your target is filled, or the ATM would be closed via -

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by JoMoon2024, Today, 06:56 AM
    0 responses
    6 views
    0 likes
    Last Post JoMoon2024  
    Started by Haiasi, 04-25-2024, 06:53 PM
    2 responses
    17 views
    0 likes
    Last Post Massinisa  
    Started by Creamers, Today, 05:32 AM
    0 responses
    5 views
    0 likes
    Last Post Creamers  
    Started by Segwin, 05-07-2018, 02:15 PM
    12 responses
    1,786 views
    0 likes
    Last Post Leafcutter  
    Started by poplagelu, Today, 05:00 AM
    0 responses
    3 views
    0 likes
    Last Post poplagelu  
    Working...
    X