Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetAtm - tradecounter

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

    GetAtm - tradecounter

    Hello,

    I´m using the tradecounter as in your SampleTradeLimiter. This works fine with NT-script-strats. Can I use this for GetAtmStrategy also somehow? I have not idea how I could do "tradeCounter++;" with ATM-strat. Maybe only to add like

    {tradeCounter++;
    atmStrategyId = GetAtmStrategyUniqueId();
    orderId = GetAtmStrategyUniqueId();
    AtmStrategyCreate(Cbi.OrderAction................. ..}

    Will this be accepted by NTscript and work without problems?

    Thanks
    Tony
    Last edited by tonynt; 11-30-2011, 06:56 AM.

    #2
    Tony, you should be able to use the same concept, as it's just a simple script counter executing once a condition in your script triggers it, so this could be your entry condition in the ATM script, or if you're filled for the complete position. Thinking about it, you should also be able to increment when you do the reset of strategy id / order id when flat again.

    Comment


      #3
      Bertrand,

      thank you for your reply. In this concern one question more please: int the sampleatmstragey there is used

      .......................StrategyMarketPosition(atmS trategyId) == Cbi.MarketPosition.Flat)

      and also

      ........................StrategyMarketPosition(atm StrategyId) != MarketPosition.Flat)

      What is the difference between "Cbi.MarketPosition.Fla"t and "MarketPosition.Flat"?

      Thanks
      Tony





      Originally posted by NinjaTrader_Bertrand View Post
      Tony, you should be able to use the same concept, as it's just a simple script counter executing once a condition in your script triggers it, so this could be your entry condition in the ATM script, or if you're filled for the complete position. Thinking about it, you should also be able to increment when you do the reset of strategy id / order id when flat again.

      Comment


        #4
        There's no difference Tony.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        115 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        161 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        83 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        127 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        87 views
        0 likes
        Last Post PaulMohn  
        Working...
        X