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 Jonafare, 12-06-2012, 03:48 PM
        5 responses
        3,986 views
        0 likes
        Last Post rene69851  
        Started by Fitspressorest, Today, 01:38 PM
        0 responses
        2 views
        0 likes
        Last Post Fitspressorest  
        Started by Jonker, Today, 01:19 PM
        0 responses
        2 views
        0 likes
        Last Post Jonker
        by Jonker
         
        Started by futtrader, Today, 01:16 PM
        0 responses
        8 views
        0 likes
        Last Post futtrader  
        Started by Segwin, 05-07-2018, 02:15 PM
        14 responses
        1,792 views
        0 likes
        Last Post aligator  
        Working...
        X