Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

reverse trading strategy

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

    reverse trading strategy

    hello, I want to create a strategy like this over atm or ninjascript.

    I made a small video example for a clearer understanding of my strategy.

    I would be very happy if you could help me with this.


    Last edited by daytrader34; 02-09-2023, 01:40 PM.

    #2
    Hello, thanks for writing in. The ATM templates have an option in the More section to Reverse on the target or the stop, that is how it would be done with no code. For a NinjaScript approach there are many ways of doing this. Here is one way that I made on reversing:
    https://ninjatrader.com/support/foru...-same-strategy

    Another way is used by the SampleMACrossover strategy, it just calls EnterLong() and EnterShort(). When in a Long position and EnterShort() is called, NinjaTrader will reverse for you.

    Kind regards,
    -ChrisL

    Comment


      #3
      Sasafawsfsdfgasgsd
      Last edited by daytrader34; 02-12-2023, 07:44 AM.

      Comment


        #4
        Hello, thanks for the follow up. Can you please detail what exactly does not work when you test this example?

        Comment


          #5
          hello i installed strategy ninjatrader but it doesn't show up in strategies section

          Likewise, it does not appear in the strategy builder section.

          I want to use this strategy in oil markets futures markets.

          please show me if i made a mistake somewhere

          Comment


            #6
            Hi, thanks for your reply. To import the script, go to Tools>Import>NinjaScript Addon, then select the "ForexReversal.zip" file and this will import it. It should then show up in the Strategies list. This is not made in the builder though, it requires the OnOrderUpdate/OnPositionUpdate event methods. The builder can only make simple strategies so if your strategy requires complex order management then it would need to be unlocked.

            Comment


              #7
              Hello, I installed the strategy, very nice, thank you.

              but I need to create a strategy like in the video I sent you as an example,

              I would be very grateful if you could help me with this and show an example of a strategy like in the video.​

              Comment


                #8
                Hello, thanks for the follow-up. If you need custom code written, I must direct you to the programmer's section of the NinjaTrader Ecosystem here:

                https://ninjatraderecosystem.com/sea...mming-services

                I can confirm that a strategy this complex would not be feasible to make in the builder, you would need to use advanced order handling techniques to detect when orders execute, and send an order when that execution occurs as shown in this example:
                https://ninjatrader.com/support/help...and_onexec.htm

                The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
                Last edited by NinjaTrader_ChrisL; 02-10-2023, 04:22 PM.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Today, 05:17 AM
                0 responses
                51 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                129 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                69 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                42 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                46 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X