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.
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by andrewtrades, Today, 04:57 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        3 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        6 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X