Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AtmStrategyCreate() arguments

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

    AtmStrategyCreate() arguments

    Hi,
    I would want to create a variable in order to pass OrderType value to the AtmStrategyCreate() method.
    How should I create the corresponding variable?

    Thanks.

    #2
    Hello lillomur,

    Thank you for your post.

    You can create an enum to select the desired value and then use a case and switch to set the value based on the selected enum. For an example using an indicator that allows for different moving averages through an enum please visit the following link: http://ninjatrader.com/support/forum...ead.php?t=3420

    Comment


      #3
      Hi Patrick,

      Finally I've create a OrderType variable and it works fine:

      private OrderType TipoOrden
      TipoOrden= OrderType.Stop;
      .../...
      AtmStrategyCreate(OrderAction.Buy, TipoOrden ,limitPrice,stopPrice,TimeInForce.Day, orderId, strategyTemplateName, AtmStrategyId);

      Thanks a lot for your help.
      Oscar

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      51 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      142 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      275 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X