Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating a new "Fill processing"

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

    Creating a new "Fill processing"

    I'm trying to create a Fill processing method that suits better my backtest goal, so I'd need a little help if possible.
    Following instructions, I'm working on the file "MyFill" and I'd need to add to its "evaluation conditions", a variable that is created and modified under "OnBarUpdate" method. So how to create and link a variable like this within "MyFill" code ? I've tried as a "public variable" in my strategy to call its value but I got just errors.

    Thanks

    #2
    Hello pstrusi,

    Thank you for your note.

    So I may best answer your question could you please provide more information on what the file "MyFill" is? Could you also provide more information on the variable you'd like to create in OnBarUpdate and how it relates with your "MyFill" code?

    Is this a test you are running in the strategy analyzer?

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      MyFill code is a custom fill algorithm suggested in the NT guide 7, in the case you're interested to develop a new fill processing algo.

      What I wanted is to create a variable within OnBarUpdate and call it by MyFill ( new fill processing algorithm ) under a strategy analyzer backtest. So far I'm trying to do a workaround that I think it could work. If I don't succeed I'll let you know.
      Thanks

      Comment


        #4
        Hello pstrusi,

        Creating a variable in the strategy and passing it to the MyFill file would not be supported however you could have your strategy write to a text file for which you have the MyFill file open and read. You could use the following sample, Default Indicator: Using System.IO File properties to write to and read from a text file, as a framework.


        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by arvidvanstaey, Today, 02:19 PM
        3 responses
        9 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by jordanq2, Today, 03:10 PM
        2 responses
        7 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
        47 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by mmckinnm, Today, 01:34 PM
        3 responses
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X