• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
        https://ninjatrader.com/support/foru...ead.php?t=3477

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Vincere, Today, 04:38 AM
        0 responses
        2 views
        0 likes
        Last Post Vincere
        by Vincere
         
        Started by trader_rick, Today, 04:02 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Started by percma, Today, 02:51 AM
        0 responses
        5 views
        0 likes
        Last Post percma
        by percma
         
        Started by Abilene, Today, 01:27 AM
        0 responses
        14 views
        0 likes
        Last Post Abilene
        by Abilene
         
        Started by simjs, Yesterday, 08:11 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Working...
        X