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