Version 1.25 2025.06.04
New Variables:
* GAIN_CONSEC
* LOSS_CONSEC
* BUY_GAIN_CONSEC
* SELL_GAIN_CONSEC
* BUY_LOSS_CONSEC
* SELL_LOSS_CONSEC
* These variables store the daily count and are reset at the start of a new day.

New Functions:
* GAIN_CONSEC[continuous]
* LOSS_CONSEC[continuous]
* BUY_GAIN_CONSEC[continuous]
* SELL_GAIN_CONSEC[continuous]
* BUY_LOSS_CONSEC[continuous]
* SELL_LOSS_CONSEC[continuous]
* These functions modify the default behavior; setting [true] forces the variables not to reset on a new day.

Fixes:
* Fixed an issue with the POS_CLOSE_ function indexes, where internal bugs caused indexes greater than zero to never be used.
Version 1.24 2025.06.03
Changes:
* Updated the TICKET function to support more precise access to open positions.
* Added support for filtering by position type: TYPE_ALL, TYPE_BUY, TYPE_SELL.
* Ticket indexing is now reversed: positions are returned from most recent to oldest (index 0 = most recent).

Previous Usage:
* TICKET[index, internal]
- Returned tickets from oldest to newest.
- index = 0 referred to the oldest position.

Current Usage:
* TICKET[index, TYPE, internal]
- index: starts at 0 for the most recent position.
- TYPE: filter by position type (TYPE_ALL, TYPE_BUY, TYPE_SELL).
- internal: data source (TRUE = internal, FALSE = MT5).
- Positions now returned from newest to oldest (consistent with CLOSE, OPEN, etc.).

Examples:
* CLOSE[1] < POS_OPEN[TICKET[0, TYPE_BUY]]
- Compares candle 1 close price with the most recent open BUY position.

* CLOSE[1] < POS_OPEN[TICKET[BUY_OPEN-1, TYPE_BUY]]
- Compares candle 1 close price with the first BUY position opened.
- Uses BUY_OPEN - 1 to get the correct index.
Version 1.23 2024.10.18
Fixes:
- Fixed issue with loading symbols in indicators and functions.
Version 1.22 2024.10.11
Modifications:
- Symbol parameter located in category (2 - GENERAL) - [03]
> The behavior of this parameter has been modified.
> It is now used only to define the target asset for operations.
> This parameter will no longer have an impact on variable and function calculations (CLOSE, OPEN, etc.).
Version 1.21 2024.10.01
Bug fixes:
- Fixed issue when calculating target from simple average price.

Added parameters:
- Added 3 new parameters to the simple average price.
> 1. [06] - Positive target min value: [0 = Disable]
> 2. [07] - Negative target min value: [0 = Disable]
> 3. [10] - Minimum number of positions for activation:
Version 1.20 2024.09.24
Fixes:
- Fixed bug that made the asset Null when using symbol parameter.
Version 1.18 2023.06.16
Changes:
- Updated support links.
Version 1.17 2023.03.14
Fixes:
- Fixed the comparison error (==, !=, >= and <=) when the compared values were negative.
Version 1.16 2023.03.13
Fixes:
- Fixed error initializing logical expressions.
Version 1.15 2023.02.02
Fixes:
- Fixed problem with '==' and '!=' comparison converter when comparison values were texts.

Improvements:
- Small improvement in the inactivity system.
- Improved the way we save the profit of the last operation, this improvement should fix the problems of martigale and sorosgale and other systems that need the value as soon as possible.

Added variables:
- Added new functions that will return data from closed positions.
POS_CLOSE_PROFIT[] = Position profit;
POS_CLOSE_OPEN[] = Position opening price;
POS_CLOSE_COMMISSION[] = Commission value;
POS_CLOSE_FEE[] = Transaction fee value;
POS_CLOSE_SL[] = Position stop price;
POS_CLOSE_TP[] = Position take price;
POS_CLOSE_SWAP[] = Position swap value;
POS_CLOSE_VOLUME[] = Position volume;
POS_CLOSE_MAGIC[] = Magic number, position id;
POS_CLOSE_REASON[] = Reason for opening the position;
POS_CLOSE_ORDER[] = Position transaction ticket;
POS_CLOSE_TICKET[] = Position ticket;
POS_CLOSE_TIME[] = Position opening time;
POS_CLOSE_TIME_MSC[] = Position execution time;
POS_CLOSE_TYPE[] = Position type;
POS_CLOSE_COMMENT[] = Position comment;
POS_CLOSE_EXTERNAL_ID[] = Position external id;
POS_CLOSE_SYMBOL[] = Symbol that the position was added;
Version 1.14 2022.12.13
News:
- Added a new logical operator '#'.
> This new '#' operator is only used in the indicator parameters.
> The behavior is similar to the '"' operator, but optimized for the indicator parameters.
> This type of operator tells SB+ that everything between two ## is text and should not change.
> Usage example: 0, SYMBOL, CURRENT, #Text, expression, anything#, 13, 55, CLOSE
- Added the possibility to load indicator parameters via .set file.
> For more information, see the robot's documentation.
Version 1.13 2022.12.08
Improvements:
- Added new parameters in Martigale and SorosGale.
- Added a parameter to be able to activate or deactivate shortcuts for sending a pending order.
Version 1.12 2022.12.05
Fixes:
- Fixed issue with removing indicators when manually changing the timeframe on the chart.
Version 1.11 2022.10.31
Bug fixes:
* Fixed the currency symbol, now instead of showing the deposit currency symbol, the profit currency will appear.

Improvements:
* Updated the links.