Table of Contents
Overview
The Price Change Scalping Indicator uses a price rate of change (ROC) momentum calculation to determine the percent change in price between a defined range of time. The ROC takes the current price and compares it to a price “n” periods ago (user defined). The calculated ROC value is then compared to the Upper Threshold and Lower Threshold values to determine if a trade setup is to be activated. If the threshold is crossed, a trade setup will occur based on the indicator settings.
Entry, Take Profit, and Stop Loss prices are calculated and displayed on the chart. Once the Entry Price is crossed, a long or short position is created (depending on the direction) and once the Take Profit price is crossed, the position is closed.
If the Entry Price is not crossed within a specific number of bars, the trade setup is cancelled, and it will proceed to monitor price changes for the next set up.
Indicator Anatomy

Indicator Settings
General Info

Version
The version input is for displaying the published version of the indicator. It is intended to be for informational use only.
Link to TradingView Script & Documentation
This field contains the URL link to the TradingView script’s homepage and documentation webpage. The expectation is that you would copy the value and paste it into your browser’s address bar to navigate to the webpage.
Main Settings

Name
This field is equivalent to the “Name” field of the 3Commas Bot Settings page. It can be used to contain the value of the same input on the bot settings page to help correlate the indicator settings to bot settings when dealing with multiple bots.
Bot Type
This field is equivalent to the “Bot Type” field of the 3Commas Bot Settings page. The scripts will only support Single-pair option but it also displays the Multi-pair option for documentation purposes so you can keep track which configurations are for Multi-pair bots.
Exchange Buy Fee (%) & Sell Fee (%)
These fields do not have any equivalent fields on the 3Commas Bot Settings page because they already have the fee schedule integrated into their platform and also TradingView does not make available the fee schedule for a given symbol on the chart.
The value represents the exchange fee that is applied when the limit or market order(s) to buy or sell the asset is filled. The value of this field will be used to offset the Break-Even price on the chart, which the Take Profit and Stop Loss prices are relatively calculated against.
Deal Start Condition

Open New Trade
This field is equivalent to the “Trading View Custom Signal” field of the 3Commas Bot Settings page. It is reproduced here to refer to the TV CUSTOM SIGNAL: PCS section that is directly below this section which contains all the settings needed to configure the PCS strategy for generating an entry signal.
Start Date/Time
The value of this field will set the date and time when the indicator will begin a deal as soon as possible. Nothing will be plotted to the chart before this time frame. When the input is used to specify a date/time that is within the chart’s time range, it will display a label and colored column to visualize the starting point…

Stop Date/Time
The value of this field will set the date and time when the indicator will close the active deal as soon as possible. Nothing will be plotted to the chart after this time frame. When the input is used to specify a date/time that is within the chart’s time range, it will display a label and colored column to visualize the ending point…

TV Custom Signal: PCS

Price Source
Defines the source price to use for the ROC calculation. Options include: Open, High, Low, Close, HL2, HLC3 or OHLC4.
Number of Bars Offset
Define the number of bars in the history for the price change period.
Upper Threshold From Source (+%)
Defines the positive percentage offset from the source price to be used as an upper threshold price for Long entries.
Lower Threshold From Source (-%)
Defines the negative percentage offset from the source price to be used as a lower threshold price for Short entries.
Enter Trade At Percentage From Threshold (%)
Defines the Entry Price relative to the Upper (or Lower) Threshold Price in terms of a percentage. The Entry Price will commence in the bar immediately following the bar that crossed the threshold price.
Maximum Entry Percentage From Threshold (%)
Defines the maximum percentage change from the threshold price to avoid entry on bars that have a severe price change.
Maximum Number Of Bars To Enter Trade
Defines the number of bars to keep the Entry Price line active. If the price action does not cross the Entry Price, it will cancel the trade setup and proceed to monitor for threshold price crossings.
Enable Trade Eligibility Condition
Use this input to link to a specific data point on an existing indicator on the chart. The value is then used for the ‘Chart/Indicator Data Point‘ value in the ‘Eligible When‘ and ‘The Value Of‘ inputs for both the Long or Short conditions which is dependent on the Strategy input value.
When checked, the following inputs will be used to evaluate if the Entry Price is eligible to be plotted and used for setting up a new trade deal.
Long Condition / Short Condition
When checked, the eligibility rules defined in the inputs below are active and will be used for determining if a trade is eligible to be executed.
Eligible When
Defines what data point in the indicator or chart is to be used in the comparison condition. Possible values are:
- Chart/Indicator Data Point – The current value of the selected data point in the Chart/Indicator Data Point input.
- Entry Price – The entry price that was established when the candle crossed the threshold price.
- Layer 1 – The potential price of the first layer if a position was to be created.
- Last Layer – The potential price of the last layer if a position was to be created.
Is
Defines the operator to use when comparing the data points in the indicator or chart. Possible values are:
- Greater than – uses the > operator.
- Less than – uses the < operator.
- Between – uses the >= and <= operators.
- Not between – inverts the result of using the Between operators.
- Equal to – uses the == operator.
- Not equal to – uses the != operator.
- Crossing – uses the
ta.cross()
function from Pine Script. - Crossing over – uses the
ta.crossover()
function from Pine Script. - Crossing under – uses the
ta.crossunder()
function from Pine Script.
The Value Of
Defines the data point in the indicator or chart to use in the comparison condition. Possible values are:
- Chart/Indicator Data Point – The value of the selected data point in the Chart/Indicator Data Point input.
- Entry Price – The entry price that was established when the candle crossed the threshold price.
- Layer 1 – The potential price of the first layer if a position was to be created.
- Last Layer – The potential price of the last layer if a position was to be created.
- Custom Value(s) – The value to test will come from the Custom Value 1 and/or Custom Value 2 inputs.
Custom Value 1 & Custom Value 2
When the ‘The Value Of‘ input is set to ‘Custom Value(s)‘, this input will define the values to use. If the ‘Is‘ input is set to ‘Between‘ or ‘Not Between‘ then ‘Custom Value 2‘ is required.
Ignore Value
When checked, an additional check is made to ignore the given value when evaluating the rule condition. This is particularly useful when you are evaluating a range of values, like -10 to 10, but you want to ignore value 0 (zero) in the rule condition
Strategy

Initial Capital (Indicator Only)
This field is only present for the Indicator version because the Strategy version has the Initial Capital field defined in the Properties tab.
The capital used by the script when back-testing and forward testing on real-time data.
Max Active Deals
This field is equivalent to the “Max active deals” field of the 3Commas Bot Settings page.
This field has no effect on the script performance and is simply here for documentation purposes.
Strategy
This field is equivalent to the “Strategy” field of the 3Commas Bot Settings page.
This field defines the strategy the bot is to use. Options include Long and Shorts.
Profit Currency
This field is equivalent to the “Profit Currency” field of the 3Commas Bot Settings page.
This field has no effect on the script performance and is simply here for documentation purposes.
Base & Safety Order Size Unit
Specify the unit for the “Base Order Size” and “Safety Order Size” inputs. Given a symbol of BTC/USDT, BTC is considered the “Base“, USDT is considered the “Quote“. A value of “% Quote” will treat the values as percentages (%) of the Initial Capital value plus the Net Profit value that is accumulated throughout the back testing (a.k.a. Compounding).
Base Order Size
This field is equivalent to the “Base order size” field of the 3Commas Bot Settings page.
Defines the size of the first starter order.
Start Order Type
Defines the order type to use for the base order.
This input is only here to echo the exact setting in the bot settings page for documentation purposes only. This input will not affect the indicator performance in any way.
Safety Orders

Safety Order Size
This field is equivalent to the “Safety order size” field of the 3Commas Bot Settings page.
Defines the size of the following averaging orders.
Price Deviation To Open Safety Orders (% From Initial Order)
This field is equivalent to the “Price deviation to open safety orders (% from initial order)” field of the 3Commas Bot Settings page.
Defines the step in percentage between safety orders.
Max Safety Trades Count
This field is equivalent to the “Max safety trades count” field of the 3Commas Bot Settings page.
Defines the maximum amount of safety orders the bot can use for one deal.
Max Active Safety Trades Count
This field is equivalent to the “Max active safety trades count” field of the 3Commas Bot Settings page.
Defines the amount of Safety Orders the bot is allowed to place in advance on the exchange’s order book for the asset being traded.
Note: This input is only here to echo the exact setting in the bot settings page for documentation purposes only. This input will not affect the indicator performance in any way.
Safety Order Volume Scale
This field is equivalent to the “Safety order volume scale” field of the 3Commas Bot Settings page.
Defines the value of this field defines the volume of each next safety order will be multiplied by this value.
Safety Order Step Scale
This field is equivalent to the “Safety order step scale” field of the 3Commas Bot Settings page.
Defines the value of this field defines the step between each next safety order will be multiplied by this value.
Take Profit

Take Profit (%)
This field is equivalent to the “Take profit (%)” field of the 3Commas Bot Settings page.
Defines how much profits the bot should make from each deal. All exchange fees are included automatically.
Take Profit Type
This field is equivalent to the “Take profit type” field of the 3Commas Bot Settings page.
With percentage from base order, the bot will ignore the total volume of the deal. With the base order size $100 and target profit 5%, the profit will always be $5. With percentage from total volume, the profit will grow as the volume grows.
Trailing Deviation
This field is equivalent to the “Trailing deviation” field of the 3Commas Bot Settings page.
When checked, the indicator will trail behind the price action at a specific deviation percentage once the “Take Profit %” is reached, which acts as a trigger. This value should not exceed the “Take Profit %“, otherwise it’s possible to close the deal in a loss.
Set TP to Breakeven, after Safety Order No.
This field has no equivalent field on the 3Commas Bot Settings page. As a result, make sure to use the Close Deal Signal to ensure your position is closed from the indicator TradingView alert.
When checked, the indicator will adjust the Take Profit price to the Breakeven price after the safety order number that is provided is filled. For example, if you supply a value of 5 for this input then once Safety Order #5 is filled, the new Take Profit price will be the Breakeven price. Additional safety orders that are filled afterwards, will continue to use the Breakeven price for the Take Profit price
Set TP to __ %, on bars in deal __
This field has no equivalent field on the 3Commas Bot Settings page. As a result, make sure to use the Close Deal Signal to ensure your position is closed from the indicator TradingView alert.
When checked, the indicator will adjust the Take Profit price to the given percentage at the given number of bars in a deal has been reached. For example, if you supply a value of 0 for the new Take Profit percent and the number of bars in deal as 100 then the indicator will adjust the Take Profit price to be at breakeven when the 100th bar in a deal has been reached.

When price is beyond new TP price, then __
When using the previous field setting, a choice has to be made on the possible scenario that the current price action is beyond the new Take Profit price that was calculated. Possible values are:
- close position immediately
- set stop loss at new TP price
Close position immediately means that the script will market close the position immediately without delay.

Set stop loss at new TP price means that the script will enable the Stop Loss setting (if disabled) and set the stop loss price to be equal to the new calculated Take Profit price and continue the current position until either the Take Profit or Stop Loss price has been reached to close the position.

Stop Loss

Stop Loss (%)
This field is equivalent to the “Stop Loss (%)” field of the 3Commas Bot Settings page.
When checked, the bot will close deals in a loss when the price drops to or more than configured level. The bot calculates stop loss level from the base order price, not average deal entry price.
Stop Loss Action
This field is equivalent to the “Stop Loss action” field of the 3Commas Bot Settings page.
The bot can do different actions when the stop loss is triggered. Changing this setting doesn’t affect already opened deals. You should edit active deals individually when want to change the stop loss action.
Stop Loss Timeout (bars)
This field is equivalent to the “Stop Loss timeout” field of the 3Commas Bot Settings page.
The bot will perform an additional check when the price reaches Stop Loss price. After the specified amount of bars passes, the bot will check if the price is still below Stop Loss price. If yes, the bot closes the deal by market order. If not, the deal remains active.
Note: 3Commas uses seconds as the unit for this input, but this cannot be simulated in TradingView because to do so will require code that will make the indicator susceptible to repainting.
Advanced Settings

Don’t start deal(s) if the daily volume is less than
This field is equivalent to the “Don’t start deal(s) if the daily volume is less than” field of the 3Commas Bot Settings page.
When checked, the bot won’t open a new deal until the coin has more volume for the last 24 hours than entered here. Specified in Base units. Minimum value is 0 and the maximum unlimited.
Note: On charts with resolution times lower than one day, the indicator will calculate the number of historical bars to use to sum the volume to be roughly equal to 24 hours. On charts with resolutions times greater than or equal to one day, the indicator will simply use the previous bar’s volume value.
Minimum Price to Open Deal
This field is equivalent to the “Minimum price to open deal” field of the 3Commas Bot Settings page.
When checked, the bot won’t open a new deal if the current price is lower than the value specified. Minimum value is 0 and the maximum unlimited.
Maximum Price to Open Deal
This field is equivalent to the “Maximum price to open deal” field of the 3Commas Bot Settings page.
When checked, the bot won’t open a new deal if the current price is higher than the value specified. Minimum value is 0 and the maximum unlimited.
Cooldown Between Deals
This field is equivalent to the “Cooldown between deals” field of the 3Commas Bot Settings page. Instead of measuring seconds, it will count the number of bars on the chart.
When checked, the bot will wait this amount of bars after the deal is completed before starting a new trade. Minimum value is 0 and the maximum is 48.
Open Deals & Stop
This field is equivalent to the “Open deals & stop” field of the 3Commas Bot Settings page.
When checked, the bot will stop after completing the set number of deals. Minimum value is 0 and the maximum unlimited.
Simultaneous Deals Per Same Pair
This field is equivalent to the “Simultaneous deals per same pair” field of the 3Commas Bot Settings page.
This field has no effect on the script performance and is simply here for documentation purposes.
Verify Price For Limit Orders (ticks)
This field has NO equivalent to the fields on the 3Commas Bot Settings page.
When checked, the indicator only considers limit orders filled when prices move a certain number of ticks past the limit price. Make sure this value is the same as the input in the Properties tab with the same name.
Override Minimum Tick Precision
This field has NO equivalent to the fields on the 3Commas Bot Settings page.
Defines the exchange’s price precision of the quote currency. The Break-even, Take Profit, Stop-loss and DCA layer prices will be adjusted according to the supplied precision value. There are 10 possible options:
- None – Using this option will simply default the precision to be the same as the
syminfo.mintick
value. - 0.1 (tenth)
- 0.01 (hundredth)
- 0.001 (thousandth)
- 0.0001 (ten thousandth)
- 0.00001 (hundred thousandth)
- 0.000001 (millionth)
- 0.0000001 (ten millionth)
- 0.00000001 (hundred millionth)
- Custom – Using this option will require the Custom Tick Precision input to be used.
Custom Tick Precision
Defines the custom precision to use for price levels on the indicator. Some exchanges require a precision of 0.05 cents in USD, thus you would enter 0.05 into this field. The minimum value is 0 and the maximum is 5. A value of 0 will disable the use of this setting.
Method To Adjust To Precision
Defines the method to use when adjusting price precision. There are two possible values:
- Truncate – This option will cause the indicator to simply remove all values after the precision position.
- Round – This option will round the last signification position using the number value of the digit after the position. For example. if the precision is 0.01, then the value 1.015 will round to 1.02.
Close Deal After Timeout

Close Deal After Timeout
This field is equivalent to the “Close deal after timeout” field of the 3Commas Bot Settings page.
When checked, it will close the deal automatically, whether in profit or loss, if it hasn’t reached the Take Profit target configured.
The Time After Which, Deal Will Be Closed Automatically (In Bars)
This field is equivalent to the “The time after which, deal will be closed automatically” field of the 3Commas Bot Settings page.
Since the indicator cannot implement a timer like 3Commas (Min, Hrs, or Days), the unit is the number of bars for the current chart resolution that is allowed to elapse until the deal is closed automatically, whether in profit or loss, if it hasn’t reached the Take Profit target configured.
Any Alert() Function Call Settings

Warning: This indicator uses the “barstate” variables therefore it will cause a repaint warning when creating alerts.
This is simply a warning message. The check-box has no function influence to the performance of the script.
TradingView has published documentation stating that the use of the barstate
variables in any script will provoke a Warning message to display when creating an alert

Bot ID
After creating the bot on the 3Commas New Bot settings page, the My Bots page will display the Id for the bot. That is the value you supply to this field.
This field supports a comma-delimited list of values that will be parsed and be used in thei respective placeholders. If only a single value is used, you can use the {{bot_id}}
placeholder for the value of the “Open Deal Signal Message” and “Close Deal Signal Message” inputs. Otherwise, placeholders like {{bot_id_1}}
, {{bot_id_2}}
… {{bot_id_10}}
and beyond can be used in the “Open Deal Signal Message” and “Close Deal Signal Message” inputs.
In order to properly use multiple Bot IDs, you will need to use the JSON array format, like this:

Email Token
In “My Bots” tab, click the “view” icon next to your new bot. Scroll down and find the custom texts for TradingView alerts. You should see the email_token
value in the “Deal Start Signal” or “Close order at Market Price” message.
The value of this field is then used to support the {{email_token}}
placeholder for the value of the “Open Deal Signal Message” and “Close Deal Signal Message” inputs.
Use Custom Signal
When checked, the indicator will use the symbol value provided to support the {{symbol}}
placeholder. If not checked, the indicator will format the chart symbol as QUOTE_BASE for the {{symbol}}
placeholder.
Open Deal Signal Message
When checked, the value of this input will be used as the message that is sent when the Open Deal alert triggered in the indicator. The default value is:
{"message_type":"bot","bot_id":"{{bot_id}}","email_token":"{{email_token}}","pair":"{{symbol}}","delay_seconds":0}
Close Deal Signal Message
When checked, the value of this input will be used as the message that is sent when the Close Deal alert triggered in the indicator. The default value is:
{"action":"close_at_market_price"
, "message_type":"bot","bot_id":"{{bot_id}}","email_token":"{{email_token}}","pair":"{{symbol}}","delay_seconds":0}
Safety Order Filled Message
When checked, the value of this input will be used as the message that is sent when the Safety Order Filled alert triggered in the indicator. The default value is:
{"action":""add_funds_in_quote OR add_funds_in_base", "message_type":"bot","bot_id":"{{bot_id}}","email_token":"{{email_token}}","pair":"{{symbol}}","delay_seconds":0, "volume": {{safety_order_quote_volume}},"amount": {{safety_order_base_amount}}}
Custom Placeholders for Alert Messages
Each of the above inputs support custom placeholders that will be replaced with their real-time values before the message notification is sent out from TradingView. The supported placeholders are:
Placeholder | Description |
---|---|
{{bot_id}} | It will be replaced with the exchange name inherited from the chart using the syminfo.prefix variable value from the Pine Script language. |
{{email_token}} | It will be replaced with the value of the Email Token input. |
{{base_currency}} | It will be replaced with the base currency inherited from the chart, e.g. “BTC”, if the chart symbol is BTCUSD. |
{{quote_currency}} | It will be replaced with the base currency inherited from the chart, e.g. “USD”, if the chart symbol is BTCUSD. |
{{symbol}} | using either the value in the Use Custom Symbol input or the chart’s base and quote currency formatted as QUOTE_BASE. |
{{event_name}} | It will be replaced with the name of the event that triggered the alert, e.g. “Open Deal”, “Close Deal”, or “Safety Order Filled”. |
{{base_order_price}} | It will be replaced with the base order price value. |
{{break_even_price}} | It will be replaced with the break even price value. |
{{take_profit_price}} | It will be replaced with the take profit price value. |
{{stop_loss_price}} | It will be replaced with the stop loss price value. |
{{count_of_filled_safety_orders}} | It will be replaced with the current number of safety orders that have been filled. |
{{safety_order_quote_volume}} | It will be replaced with the quote volume that was used for the layer entry. |
{{safety_order_base_amount}} | It will be replaced with the base quantity that was used for the layer entry. |
Chart Settings

Show Source Line
When checked, the price source line will appear on the chart
Shows Threshold Lines & Cross Labels
When checked, the threshold price line will appear. Also, the labels with “L” and “S” will appear when the price action crosses the threshold price indicating a Long or Short setup will be initiated.
Show Safety Order Lines, Prices, Fill Shapes, and Color
When checked, the safety order prices will appear on the DCA levels for the most recent open deal. Also, the triangle cross shapes will appear when price action crosses a safety order DCA level. You can also control the visibility of the price and triangle shapes as well as the color.
Show Profit/Loss Zones
When checked, the profit and loss zones will be visible; green for the profit zone and red for the loss zone.

Show Unrealized Profit/Loss Label
When checked, the profit and loss label will be visible on the real-time candle. It will be green when in profit and red when in loss.

Show Used Amount For Each Step Table
When checked, the table will be made visible.

Show Statistics Table
When checked, the PCS-3C Statistic table will be made visible.
Position
Changes the position of the table on the chart using the combination of values in the two drop-downs that are provided:
- Top, middle, Bottom
- Left, Center, Right
Summary, 3Commas, Deal Stats, and Safety Order Stats Sections
Shows or hides the various sections of the table.
Stat Label Font Weight
Changes the font weight for the labels of each of the data points in the table. Available options are: Bold and Normal.
Cell Text Size
Defines the text size of the content in the table. Available options are: tiny, small, normal, large, and huge.
Color Theme
Changes the colors of the Statistics and Used Amount For Each Step tables. The following is the theme colors:
Color Name | TV Dark | TV Light | MS Blue Medium | TheTradingParrot |
---|---|---|---|---|
Header Background | #2A2E39 | #F0F3FA | #4472C4 | #C9C19B |
Header Text | #D1D4DC | #434651 | #F1F4F8 | #262626 |
Cell Background | #131722 | #FFFFFF | #FFFFFF (even) #D9D9D9 (odd) | #999999 (even) #CCCCCC (odd) |
Cell Border | #2A2E39 | #F0F3FA | #2A2E39 | #2A2E39 |
Stat Label | #D1D4DC | #434651 | #262626 | #262626 |
Stat Value | #2196F3 | #2196F3 | #262626 | #262626 |
Examples of theme colors:




When the value is Custom (see below), the following inputs will be activated to provide the color definition to the various parts of the table:
- Header Background Color
- Header Text Color
- Cell Background Color
- Cell Border Color
- Stat Label Color
- Stat Value Color
The following image demonstrates how the colors are applied to the table:

Data Window
Both the Indicator and Strategy versions will output series data values to the chart that are visible in the Data Window of TradingView. This section will describe each data point to help you understand the data conditions within the scripts logic.
Data Points

Bar Index
Each bar (or candle) on the chart is assigned an index number. This data point will display the current bar index. Numbering is zero-based, where the index of the first bar is 0.
24 Hr Volume
Displays the 24 hour volume value that is calculated for the current bar. This is useful for when you enable the “Don’t start deal if the daily volume is less than” input and supply a non-zero value.
The value will be “n/a” is the option is enabled in order to improve script execution performance.
Volume Filter Result
Displays the result of the 24 hour volume test for the current bar. A value of 0 is failed and 1 is success.
Minimum Price Filter Result
Displays the result of the minimum price test for the current bar when the “Minimum price to open deal” is enabled. A value of 0 is failed and 1 is success.
Maximum Price Filter Result
Displays the result of the maximum price test for the current bar when the “Maximum price to open deal” is enabled. A value of 0 is failed and 1 is success.
Cooldown Filter Result
Displays the result of the cooldown bar count test for the current bar when the “Cooldown between deals” is enabled. A value of 0 is failed and 1 is success.
Max Closed Deals Filter Result
Displays the result of the cooldown bar count test for the current bar when the “Open deals & stop” is enabled. A value of 0 is failed and 1 is success.
Close Deals By Custom Signal
Displays the price at which the deal was forcefully closed by the “Close Deal When” condition rule set. In addition to the price, the chart will display a label with a “electric plug” icon (🔌) to indicate the event took place.

Close Deal After Timeout
Displays the price at which the deal was forcefully closed by the “Close Deal After Timeout” input is enabled. In addition to the price, the chart will display a label with a “hourglass done” icon (⌛) to indicate the event took place.

Stop Loss Timeout
Displays the price at which the deal was forcefully closed by the “Stop Loss Timeout” input is enabled. In addition to the price, the chart will display a label with a “hourglass done” icon (⌛) to indicate the event took place.

BE
Displays the Breakeven price for the current bar that is rendered on the chart.
TP
Displays the Take Profit price for the current bar that is rendered on the chart.
TTP
Displays the Trailing Take Profit price for the current bar that is rendered on the chart.
SL
Displays the Stop Loss price for the current bar that is rendered on the chart.
SRC
Displays the Price Source price for the current bar that is rendered on the chart.
UTP
Displays the Upper Threshold Price for the current bar that is rendered on the chart.
LTP
Displays the Lower Threshold Price for the current bar that is rendered on the chart.
NTR
Displays the Entry Price for the current bar that is rendered on the chart.
Entry Price Cross
Displays the Entry Price Shape (“circle”) for the current bar that is rendered on the chart.

Entry Price Cancel
Displays the Entry Price Cancel Shape (“X”) for the current bar that is rendered on the chart.

Upper Threshold Cross
Displays the Upper Threshold Cross label shape with a “L” (Long) for the current bar that is crossing over the threshold price line.

Lower Threshold Cross
Displays the Lower Threshold Cross label shape with a “S” (Short) for the current bar that is crossing over the threshold price line.

Using the Statistics Table
Both the Indicator and Strategy versions will display the Statistics table that summarizes statistical data points using the price action history of trades. This section will describe each section of the data points to help you understand the performance of the indicator.

Data Points
Name
Displays the value of the Name input along with the Strategy option value in square brackets.
Summary
Displays a summary of the indicator configuration settings that have significant value. The following are the meaning of the abbreviation labels:
- TP – Take profit (%)
- BO – Base order size
- SO – Safety order size
- OS – Safety order volume scale
- SS – Safety order step scale
- SOS – Price deviation to open safety orders (% from initial order)
- MAD – Max active deals
- MTSC – Max safety trades count
- SDSP – Simultaneous deals per same pair
Exchange / Pair / Timeframe
Display the exchange name and symbol for the chart. It uses the syminfo.prefix
variable for the exchange name and the the syminfo.ticker
variable for the symbol. The timeframe is determined by the current chart setting.
Balance
This field is equivalent to the “Balance” value on the 3Commas Bot Settings page. The value of this field is the same as the Initial Capital input from the Properties tab of the Strategy script and Initial Capital input from the Inputs tab of the Indicator script.
Max Amount for Usage (Based on current rate)
This field is equivalent to the “Max amount for bot usage (Based on current rate)” value on the 3Commas Bot Settings page.
It is an approximate calculation of the capital that is needed to support the Base Order Size and Safety Order Size along with the Max Count, Volume, and Scale setting values using the current market rates at the beginning of the chart. If the value exceeds the Balance value, the indicator will display a warning on the last bar on the chart, like this…

Max Safety Order Price Deviation
This field is equivalent to the “Max safety order price deviation” value on the 3Commas Bot Settings page.
Displays the maximum deviation from the average buy price to the last safety order level. This value is useful to define the Stop Loss value when enabled.
% Of Available Balance To Be Used By The Bot
This field is equivalent to the “% of available balance to be used by the bot” value on the 3Commas Bot Settings page.
Displays the percent of the Balance value that will be needed to the bot to support the base and safety orders as configured.
No. Of Deals Started
Displays a count value of all the deals that were started on the chart.
No. Of Deals Completed
Displays a count value of all the deals that were closed at the Take Profit, Trailing Take Profit, or Stop Loss price points.
Win Rate %
Displays the result of the following equation: [No. Of Deals Completed In Profit] / [No. Of Deals Started] X 100
Loss Rate %
Displays the result of the following equation: [No. Of Deals Completed In Loss] / [No. Of Deals Started] X 100
Daily P&L
Displays the average profit or loss percentage per day in deals and also the time period as defined by the Start Date/Time and Stop Date/Time inputs.
The equation for the P&L in deals is: ( ( [Net Profit] / [Initial-Capital] ) X 100 ) / [No-Of-Days-In-Deals]
The equation for the P&L in total is: ( ( [Net Profit] / [Initial-Capital] ) X 100 ) / [No-Of-Days-Between-Start-And-Stop-Date/Time]
Note: On charts with resolution times lower than one day, the indicator will calculate the number of historical bars to use to sum the profits and losses to be roughly equal to 24 hours. On charts with resolutions times greater than or equal to one day, the indicator will simply use the previous bar’s profit/loss value.
Max Drawdown
Displays the maximum drawdown percentage relative to the average buy price that a single deal experienced as well as the Deal # so that you can find the deal using the TradingView back tester since the order names contain the Deal # along with the Safety Order #.

Total Volume
Displays the total volume of the base and quote currencies that was utilized in all the deals. The number is updated after each deal is completed.
No. of Single Bar Entries & Exits
Displays the number of times a single bar entry and exit occurred in the chart history.
There exists a limitation in the TradingView Strategy Tester where it will not support an entry and exit to occur in a single bar. To overcome this issue, the script will also send the “close position” command along with the Take Profit limit order, which is processed by the Strategy Tester on the bar close. Here’s an illustration of this scenario…

No. of Base Order-Only Deals
Displays the number of deals that completed with only the base order being filled.
Mean, Median, Mode, Min, Max, Std. Dev. Of, and Total Bars In Deals
Displays the mean (average), median (middle value), mode (most frequent value), minimum, maximum, standard deviation, and total of all the bar counts the indicator gathered when it was in a deal. The count will begin at the value of 1 (one) when the Base Order is filled. As each bar is completed, the count will increment by 1 (one) and be reset to zero when the deal is completed. These values will only update as soon as a deal is completed.
In addition, the value will display the number of years, months, weeks, days, hours, minutes, and seconds in parentheses.
Mean, Median, Mode, Min, Max, and Total of Safety Orders Filled
Displays the mean (average), median (middle value), mode (most frequent value), minimum, maximum, and total of all the Safety Orders that were filled. These values will only update as soon as a deal is completed.
No. of Safety Order # Filled
Displays a count value of all the Safety Orders that were filled by level index number. It will also show the ratio and percentage of the number of safety orders cracked to the sum of all safety orders cracked. These values will only update as soon as a deal is completed.