Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

stop loss now. bool for stop loss and profit triggers

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

    stop loss now. bool for stop loss and profit triggers

    i had a strategy in NT7 that used a stepped stop. i paid for it from an ecosystem partner. it didn't have frequency or trailing by amount. it was just the profit trigger and the profit capture. and, i was able to use a regular stop loss and profit target. i'm trying to remember how it worked. i think there was a stop loss bool called stop loss now. is there anything in the NT8 that has something pertaining to that term?

    #2
    Hello SteveReiza,

    It sounds like whatever you had made was custom made to your specifications, there is nothing in NinjaScript by that name. If the developer provided you with the source code you can view the code using the NinjaScript editor and then transcribe that logic into a NT8 script.

    Comment


      #3
      thanks for the reply.

      i lost the tablet i had them on. so, am trying to re-engineer. i have all the entry methods with new and improved methods. its just the stop loss i have to get.

      when a double is used. for instance the stop loss now was set at zero. then when the trade happened. it was set to 1. how long does it stay set at 1? is it just for the duration of the trade activity? then it automatically resets to zero. or, is that something that needs a method.

      there must have been something that stated to do something when stop loss now was at 1.

      Comment


        #4
        Hello SteveReiza,

        I am not sure what you mean, a stoploss needs a price, 0 and 1 would not be valid prices for a stoploss unless the instrument was trading around the price of 1$.

        If you have a question about some code you are working on you would need to provide a sample of what you need help with so we have context for the questions you are asking.

        Comment


          #5
          thanks for the reply. i figured it out. i'm using average position price with + or - ticks with a bool and if current position equals market position long to trigger an exit long stop order.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          31 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          124 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          64 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 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