Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Testing strategy with current quotes?

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

    Testing strategy with current quotes?

    Hello

    I developped a strategy and backtested the strategy. I hold positions for days or even weeks. Thefore I check only once a day, whether my strategy gives me a buy or sell signal.
    My question: How can I run my strategy in that way, that it considers the current quotes (and not the "Close" of the day before)?

    Thanks & Regards
    Andre

    #2
    Hello,

    We do not recommend running your strategies unattended, however you can do so if you like. You would just leave the strategy running on your PC/NT. What issues are stopping you from doing this?
    DenNinjaTrader Customer Service

    Comment


      #3
      Well, in principle I just want to let it run with the most last quote. But my strategy refers the current "Close", such as IF fnc(Close[0])>1 THEN
      I did not find out how I can let it run considering the most current quote (=Today on Sunday evening take the friday close, if I let it run on weekdays, take the last quote)

      Comment


        #4
        Hello,

        Are you talking about backtesting or running the strategy going forward?
        DenNinjaTrader Customer Service

        Comment


          #5
          Hi

          I am talking about going forward, if I understand you right...

          I say it in other words:
          1. I developped a strategy (with the script editor)
          2. I backtested the strategy (daily base) --> One calculation per day
          3. Sometimes I want to know during the day, what results my strategy would compute, if I take the most recent online quote
          --> How to do that?

          thanks
          Andre

          Comment


            #6
            Andre,

            You can throw your strategy onto a daily chart and then run your strategy with CalculateOnBarClose = false and then it will tell you the calculations with the last day as well.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Hi

              I tried to do that. I create a chart (Daily Bars) but it shows me only bars until 13.05.2010, but I would like to have considered the current quote now (e.g. 12:30 on 14.05.2010).
              I am connected to yahoo.

              regards
              Andre

              Comment


                #8
                Hello Andre,

                As Josh mentioned later, the yahoo service is a delayed end of day service. The 5/14/10 daily bar will not appear until the close of the day after they have published it. Earlier steps I had provided were not necessary.
                Last edited by NinjaTrader_RyanM1; 05-14-2010, 02:39 PM. Reason: accuracy
                Ryan M.NinjaTrader Customer Service

                Comment


                  #9
                  Hi
                  thanks, I did as you described. It still did not work.
                  Now I found out the following: With DJIA it works, with DAX or SMI not. This is strange, because I can load historical data without problem.
                  Do you have any idea?

                  regards
                  Andre

                  Comment


                    #10
                    Andre,

                    Please note that Yahoo does not provide you with a daily bar till after they publish it after the end of the trading day. So you won't see 5/14 at this point in time.
                    Josh P.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Segwin, 05-07-2018, 02:15 PM
                    10 responses
                    1,767 views
                    0 likes
                    Last Post Leafcutter  
                    Started by Rapine Heihei, 04-23-2024, 07:51 PM
                    2 responses
                    30 views
                    0 likes
                    Last Post Max238
                    by Max238
                     
                    Started by Shansen, 08-30-2019, 10:18 PM
                    24 responses
                    943 views
                    0 likes
                    Last Post spwizard  
                    Started by Max238, Today, 01:28 AM
                    0 responses
                    9 views
                    0 likes
                    Last Post Max238
                    by Max238
                     
                    Started by rocketman7, Today, 01:00 AM
                    0 responses
                    7 views
                    0 likes
                    Last Post rocketman7  
                    Working...
                    X