Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Gap strategy

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

    #16
    Maybe another person from here gave it I don't recall.
    I close and open the NT many times yest the strategy doesn't appear.
    all others work fine
    How can I send it to you so you can check it?

    Comment


      #17
      alexnj,

      How are you determining it not appearing? You will most likely not see the strategy in Tools->Edit NinjaScript->Strategy. You should try connecting to a data provider and then adding the strategy onto a chart. See if it is in that list. Also, go to File->Utiltiies->Remove NinjaScript assembly and ensure the assembly is actually listed there for removal.
      Josh P.NinjaTrader Customer Service

      Comment


        #18
        Why remove from assebly? I did remove it. Opened chart and could see it for selection. Why is this with particular startegy, where as all others can edit. can't I edit this one? When I load to ES06-09 5min chart with IB connection I get message failed to execute db job 'strategy updatejob' unable to generate a temporary class (result=1) error cs0006:metadata file d:/NT65/bin/custom/twgaptrade.dll could not be found/. Maybe because I removed it?
        Is there a way to send you the strategy and one more with errors to help me eliminate errors?

        Comment


          #19
          No no. Sorry for the confusion. The purpose of looking in the Remove assembly is not to remove it, but to just see if it has been installed. If it was installed it will show in the list. You do not want to remove it. If you have please add it back.

          You mentioned you saw it in the chart's strategy selection which is where you should find it. This is expected behavior. A compiled assembly, which is what you have, is done so that the user cannot see, edit, or otherwise be aware of the intellectual property that the original author had. Please reimport the strategy, restart NinjaTrader, and that should be fine.
          Josh P.NinjaTrader Customer Service

          Comment


            #20
            Hey Josh, I have tried some of these indicators from 3rd parties (intellectual property ) but none so far have had any return values that I could use in a strategy.
            The vendor says this is "impossible" to do?.. Is this true?
            I just want to use return values and don't really need to see how they do what they do.

            Comment


              #21
              gg80108,

              I cannot comment on 3rd party vendor scripts. Depending on what they do and what they want to do in their code it may or may not return values you can access.
              Josh P.NinjaTrader Customer Service

              Comment


                #22
                How to make simple gap strategy

                I will use time stamp and user variables to mark opening bar
                Can anyone take the time and help me set it up in the wizard properly?
                I can send in what I have and he can edit. Need to fade the opening gap at 4:30pm local time and if gap>2% follow it. Exit with gap fill (probably use the user variable and check it against current open/or close),

                Later I would like a stop of 30% ATR(5days period) but this might be harder....

                I wish there was more material with examples using the wizard. Most examples are nice but are in code
                Any ideas?

                Comment


                  #23
                  alexnj,

                  Unfortunately we cannot set this up for you. If you wish for this to be professionally done I do recommend one of the 3rd party NinjaScript Consultants here: http://www.ninjatrader.com/webnew/pa...injaScript.htm

                  For your convenience, here are the links for the tutorials again: http://www.ninjatrader-support.com/H...tml?Overview34

                  There is information on the Condition Builder here: http://www.ninjatrader-support.com/H...ditionBuilder1 Please be sure to see the other articles in the index page on the Condition Builder too.
                  Josh P.NinjaTrader Customer Service

                  Comment


                    #24
                    take a look, something wrong?

                    Pls take a look at my strategy, I haven't figured out the use of variables. I assign 4:31pm to variable 0, 1 bar before to variable1 and then if variable0>variable1 I short and the opposite
                    Then when variable0=variable1 (which means gap closed) I exit long and short.
                    The results on the graph don't match. It doesn't fade the gap, and exits either on stop loss or end of session. doesnt take into account the price of session open = close previous session (which is 1 bar prior to open which is time stamped). I tried to follow the online seminar stayed awake until 12:30 am and as soon as ity started it failed.....on your side.
                    Then in the forum I can't attach my strategy for someone to have a look. Pls just take a look and tell me what is wrong.
                    Perhaps variable0=1 and variable1=1 doesnt mean something?

                    Alexis
                    Attached Files

                    Comment


                      #25
                      alexnj,

                      Sorry I am not following what you are trying to do. Your conditions evaluate one after the other all within one bar.

                      Also, Close[1] is likely never equal to Variable0. You set Variable0 = 1. Close[1] has a very slim chance to be exactly 1.
                      Josh P.NinjaTrader Customer Service

                      Comment


                        #26
                        lets use the other thread. I sent another version. still I don't understadn the use of variables. I thought variablex=1 just means assigning the variable to the above condition. How would I assign the last days close = variable0 and todays open = variable 1 then? and fit time inside (or not needed since times are in chart as well)
                        Just for educational purposes, maybe priorday OHLC and currentdayOHLC is more appropriate since I discovered it..

                        Comment


                          #27
                          The reason it may not work is because, in fact, you may have many (16,31,0) in your feeded data. Alternative way to resolve is to write a loop that only count the last (16,31,0).

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                          0 responses
                          652 views
                          0 likes
                          Last Post Geovanny Suaza  
                          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                          0 responses
                          370 views
                          1 like
                          Last Post Geovanny Suaza  
                          Started by Mindset, 02-09-2026, 11:44 AM
                          0 responses
                          109 views
                          0 likes
                          Last Post Mindset
                          by Mindset
                           
                          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                          0 responses
                          574 views
                          1 like
                          Last Post Geovanny Suaza  
                          Started by RFrosty, 01-28-2026, 06:49 PM
                          0 responses
                          577 views
                          1 like
                          Last Post RFrosty
                          by RFrosty
                           
                          Working...
                          X