Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

trade based on previous price

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

    trade based on previous price

    I'm trying to get some help on strategy builder on how to build a strategy that if Open[0] > Open[1] go long and if Open[0] < Open[1] go short. However with the condition that can be seen on the attached image strategy2.png I get the output that can be seen on the attached image strategy.png. I need that once placed the strategy it runs unitl the opposite condition verifies and not place an order in every single bar.

    I was looking for some advice and please don't redirect me to any link or video because I already have seen them and I still don´t get how to bypass this.


    Thank you
    Attached Files
    Last edited by ampf27; 09-01-2021, 10:36 AM.

    #2
    Hi ampf27, thanks for posting.

    It seems your trailing stop is not configured properly. I attached a strategy that does the same thing with a 20$ trailing stop. Please see attached.

    Kind regards,
    -ChrisL
    Attached Files
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thank you very much


      This is what I was looking for.

      Comment


        #4
        Tell me please the 20usd trailing stop is per entry/contract or is total amount?

        Comment


          #5
          Hi ampf27,

          The stop loss will be applied per entry. If you submit two entry orders, there will be a unique stop for each entry. If you submit a 2 lot order, there will be only 1 stop.

          Kind regards,
          -ChrisL
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            So, if I trade lets say, 2 contracts, its a stoploss of 20usd for that order and not 20usd for each of the contracts (40usd) right?

            Comment


              #7
              Hi ampf27, yes the 2 contract order will have a stop of 20 dollars.

              Chris L.NinjaTrader Customer Service

              Comment


                #8
                Thank you once again for the support

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by amichalska, Today, 01:23 PM
                0 responses
                1 view
                0 likes
                Last Post amichalska  
                Started by ETFVoyageur, Today, 08:39 AM
                15 responses
                28 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by ETFVoyageur, 05-18-2024, 12:45 AM
                10 responses
                54 views
                0 likes
                Last Post ETFVoyageur  
                Started by voltation, 07-20-2020, 09:06 PM
                8 responses
                2,296 views
                0 likes
                Last Post Ttrade12  
                Started by tkaboris, Yesterday, 07:53 PM
                7 responses
                25 views
                0 likes
                Last Post tkaboris  
                Working...
                X