Managing Stop Loss Orders in ProBuilder

11 Aug 2018
0 comment
0 attachment

This snippet demonstrates how to set a stop loss order in ProBuilder, specifically setting it to a very high threshold to effectively disable it under normal trading conditions. The code sets the stop loss percentage to 100%, meaning the stop will only trigger if the instrument’s value drops to zero.

SET Stop %Loss 100

Explanation of the Code:

  • SET Stop %Loss 100: This line of code is used to define a stop loss order. The stop loss is set as a percentage of the price at which the order was placed. In this case, setting it to 100% effectively means that the stop loss condition will only be met if the price of the instrument falls to zero. This is a way to set a stop loss that is unlikely to be triggered, essentially acting as if there is no stop loss.

This approach might be used in scenarios where a trader wants to maintain an open position without an active stop loss under normal market conditions, but still have a safety mechanism in case of a complete price collapse.

Related Post

Check out this related content for more information:

https://www.prorealcode.com/topic/how-do-you-clear-stop-orders/#post-73384

Visit Link
What is a Snippet? A snippet is a small, reusable chunk of code designed to solve specific tasks quickly. Think of it as a shortcut that helps you achieve your coding goals without reinventing the wheel. How to Use: Simply copy the snippet and paste it into your project where needed. Don't forget to tweak it to fit your context. Snippets are not just time-savers; they're also learning tools to help you become a more efficient coder.
Vonasi Master
V-oyaging ON A S-mall I-ncome
Author’s Profile

Comments

Search Snippets

Showing some results...
Sorry, no result found!

Snippets Categories

global
35
indicator
134
strategy
171

Recent Snippets

How to Track Up/Down Cumulative Volume Inside Each Candle (Tick Volume Delta)
indicator
This snippet separates the real-time, intra-candle volume into up-volume and down-volume based on whether the last [...]
How to Create a Simple MTF Trend Dashboard with EMA and SMA
indicator
This indicator builds a compact multi-timeframe (MTF) dashboard that shows whether price is trading above or below a [...]
How to Display Per-Bar Volume Accumulation in Real Time (Intrabar Updates)
global
This snippet tracks and displays the current bar’s accumulated volume while the bar is still forming, instead of only [...]
Ticks Counter: Count Tick Updates Per Bar on Tick or Time Charts
global
This snippet counts how many tick updates have occurred for the current bar by incrementing a per-bar counter on each [...]
How to Build a Step-Based Trailing Stop That Moves to Break-Even First
strategy
This snippet implements a step trailing stop that advances in fixed increments once price reaches predefined profit [...]
Logo Logo
Loading...