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 mintos, 04-02-2024, 08:22 PM
                7 responses
                38 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by PaulMohn, 04-24-2024, 03:49 AM
                5 responses
                39 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by claxxical, 05-30-2017, 12:30 PM
                38 responses
                4,480 views
                0 likes
                Last Post alancurry  
                Started by Felix Reichert, 04-26-2024, 02:12 PM
                10 responses
                70 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by lightsun47, Today, 11:37 AM
                1 response
                12 views
                0 likes
                Last Post NinjaTrader_Zachary  
                Working...
                X