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 adeelshahzad, Today, 03:54 AM
        5 responses
        32 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        7 responses
        32 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by merzo, 06-25-2023, 02:19 AM
        10 responses
        823 views
        1 like
        Last Post NinjaTrader_ChristopherJ  
        Started by frankthearm, Today, 09:08 AM
        5 responses
        21 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        43 views
        0 likes
        Last Post jeronymite  
        Working...
        X