Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bitcoin Stop Loss Strategy Builder

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

    Bitcoin Stop Loss Strategy Builder

    So I’m building a Bitcoin strategy using strategy builder, but when I try to set a stop loss of $600, the stop loss won’t exceed $9.0 in testing. I set the stop loss to currency but still can’t get it to work. My strategy is getting stopped out to early. How do I set the stop loss for Bitcoin?

    #2
    Hello tmasterpro,

    Thank you for writing in.

    So I may better assist you, please answer the following:
    • Are you testing via the Strategy Analyzer?
    • Are you setting your stop loss via the stops and targets page of the Strategy Builder?
    • Please provide a screenshot of your strategy's backtest settings as well as the builder page where you have set up your stop loss.
      • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
        • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
    ​An additional tool to better understand your strategy's behavior is Trace Orders. You may enable Trace Orders on the Default Properties page of the Strategy Builder. When enabled, you can see additional order information from the NinjaScript Output window regarding order submissions in order to better understand your strategy's behavior. For more information about Trace Orders:


    I look forward to your reply.

    Comment


      #3
      Thanks for the response.

      Here are the answers to your questions:

      1. Yes, I'm testing using the strategy analyzer

      2. The stops are being set by the Stops and Profits section at the end of the Strategy Builder. I selected "Currency" under the type, and I'm using a User Defined number so as to optimize the stop value.

      3. I connected to the Coinbase feed using the BTC/USD pair

      Screenshot:

      Click image for larger version

Name:	image.png
Views:	122
Size:	154.1 KB
ID:	1236191

      I want to set the stop loss to be at least $600, not $10.

      Thanks

      Comment


        #4
        Hello tmasterpro,

        Thank you for your reply.

        One thing to check for under the 'Order handling' settings in the Strategy Analyzer is the Exit on session close checkbox. You may verify on the "Trades" display of the analyzer if there are orders that are being hit as exit on session close orders rather than your stop loss. For more information on exit on session close:Additionally, I recommend adding Print statements to your strategy to verify when the conditions are being met and understand the values being used. We have more details regarding using prints to debug a script, including a link about how to add prints to the Strategy Builder, at the following links:Please let me know if I may be of further assistance.​

        Comment


          #5
          Thanks it worked, I was able to set my stops!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          77 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          45 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          26 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          32 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          62 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X