Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Macros any 1?

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

    Macros any 1?

    I understand that unfortunately NT does NOT support Macros yet!

    My question is, since this is C# environment, what's there to stop us from making our own keydown events? I can think of a few ways already, one would be utilizing the DLL interface(say the redundant methods of it like the "int Last(string instrument, double price, int size)" which can be abused to marshal data into NT or any of the many cross app. methods...
    Any advanced programmers care to partner on this?

    #2
    You can not drive NT by "sim key events" through the ATI.

    However, there are tools available out there which record/replay keyboard action. I believe there are some posts related on that forum.

    Comment


      #3
      of course you can, OIF(one of many ways to go cross app.)?

      there are zillion ways to have a macro write the OIF of choice to the below Dir.

      CLOSEPOSITION;Sim101;ER2 06-08;;;;;;;;;;
      C:\Documents and Settings\k\My Documents\NinjaTrader 6.5\incoming

      p.s.
      just make sure the macro will take care of the auto numbering of the files too.
      Last edited by mktrend; 04-25-2008, 11:14 AM.

      Comment


        #4
        Or course you can drive the ATI logic. But this is not a general purpose macro features which I supposed is what you are looking for.

        Comment


          #5
          I'm going to examine the following possibilities too which will be more in the General purpose line. Do you think any of them might work?
          .NETremoting?
          creating a form in the NT whose button will read key combination from memory and then will translate it to the relevant event?

          Comment


            #6
            Unfortunately this is beyond what we provide support for.

            Comment


              #7
              Off the Bat, all these most important 39 functions can very easily be assigned to Macros:

              31, Utilizing DLL:
              Ask
              AskPlayback
              AvgEntryPrice
              AvgFillPrice
              Bid
              BidPlayback
              BuyingPower
              CashValue
              Command
              ConfirmOrders
              Connected
              Filled
              Last
              LastPlayback
              MarketData
              MarketPosition
              NewOrderId
              OrderStatus
              Orders
              QueryInstrument
              RealizedPnL
              SetAllocReturnString
              SetMaxReturnStringLength
              SetUp
              StopOrders
              Strategies
              StrategyPosition
              SubscribeMarketData
              TargetOrders
              TearDown
              UnsubscribeMarketData

              8 Utilizing OIF:
              CANCEL COMMAND
              CANCELALLORDERS COMMAND
              CHANGE COMMAND
              CLOSEPOSITION COMMAND
              CLOSESTRATEGY COMMAND
              FLATTENEVERYTHING COMMAND
              PLACE COMMAND
              REVERSEPOSITION COMMAND

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by arvidvanstaey, Today, 02:19 PM
              4 responses
              11 views
              0 likes
              Last Post arvidvanstaey  
              Started by samish18, 04-17-2024, 08:57 AM
              16 responses
              61 views
              0 likes
              Last Post samish18  
              Started by jordanq2, Today, 03:10 PM
              2 responses
              9 views
              0 likes
              Last Post jordanq2  
              Started by traderqz, Today, 12:06 AM
              10 responses
              18 views
              0 likes
              Last Post traderqz  
              Started by algospoke, 04-17-2024, 06:40 PM
              5 responses
              48 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X