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 argusthome, 03-08-2026, 10:06 AM
        0 responses
        110 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        59 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        37 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        41 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        78 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X