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 ageeholdings, 05-01-2024, 05:22 AM
              6 responses
              42 views
              0 likes
              Last Post ageeholdings  
              Started by tony_28217, Today, 07:04 PM
              0 responses
              11 views
              0 likes
              Last Post tony_28217  
              Started by flybuzz, Today, 10:33 AM
              1 response
              9 views
              0 likes
              Last Post flybuzz
              by flybuzz
               
              Started by spencerp92, 10-10-2023, 09:56 AM
              4 responses
              308 views
              0 likes
              Last Post flybuzz
              by flybuzz
               
              Started by samish18, Yesterday, 10:13 AM
              1 response
              26 views
              0 likes
              Last Post NinjaTrader_Eduardo  
              Working...
              X