Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question about AtmStrategyCreate

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

    Question about AtmStrategyCreate

    Hello,

    I'm developing a strategy that uses multi-time frames and multi-data series.

    I know that you can reference the barsInProgressIndex when submitting an order. As seen below:
    Code:
    EnterLong(int barsInProgressIndex, int quantity, string signalName)
    Are you able to reference barsInProgress index when submitting an order using AtmStrategyCreate()? I don't see it on the reference page.
    ​​​​​​​
    Code:
    AtmStrategyCreate(OrderAction action, OrderType orderType, double limitPrice, double stopPrice, TimeInForce timeInForce, string orderId, string strategyTemplateName, string atmStrategyId, Action<Cbi.ErrorCode, string> callback)
    Any help would be appreciated.

    Thank you!

    #2
    Hello devatechnologies,

    Thank you for your post.

    There is no barsInProgress parameter, however, you can use a BarsInProgress condition to submit the orders to an additional bars object.





    I tested this by making a copy of SampleAtmStrategy, adding an additional series in the strategy, and then putting the existing code in a BarsInProgress condition.

    Code:
    //value of 1 represents the additional series added in State.Configure 
    if (BarsInProgress == 1)
    {
    //logic for submitting and handling atm goes here
    }
    Please let us know if you have any further questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    58 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    41 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    46 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    37 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    156 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X