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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      41 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X