### APIDOC: D1CustomHourBarStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md D1 custom hour start stream. ```APIDOC D1CustomHourBarStream: Description: D1 custom hour start stream. ``` -------------------------------- ### APIDOC: ColoredFill Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Multi-colored PS-like Fill() ```APIDOC ColoredFill: Description: Multi-colored PS-like Fill(). ``` -------------------------------- ### APIDOC: SimplePriceStream (MT4) Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Return prices from MT4 (iClose...). ```APIDOC SimplePriceStream: Description: Return prices from MT4 (iClose...). ``` -------------------------------- ### APIDOC: OBVStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md On balance volume stream ```APIDOC OBVStream: Description: On balance volume stream. ``` -------------------------------- ### APIDOC: SumOnStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Sum on stream ```APIDOC SumOnStream: Description: Sum on stream. ``` -------------------------------- ### APIDOC: TextValueCellFactory Class Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md A factory class specifically designed to instantiate TextValueCell objects. ```APIDOC TextValueCellFactory: Description: Creates TextValueCell. ``` -------------------------------- ### Abstract Class: AColorStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/Abstract/readme.md Abstract implementation of the IColorStream interface. ```APIDOC AColorStream: Abstract implementation of a IColorStream ``` -------------------------------- ### Abstract Class: AStringStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/Abstract/readme.md Abstract implementation of the IStringStream interface. ```APIDOC AStringStream: Abstract implementation of a IStringStream ``` -------------------------------- ### APIDOC: MAStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md MA stream. ```APIDOC MAStream: Description: MA stream. ``` -------------------------------- ### APIDOC: LowestBarsStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Equivalent to lowestbars from TradingView. ```APIDOC LowestBarsStream: Description: Equivalent to lowestbars from TradingView. ``` -------------------------------- ### APIDOC: StreamPack Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Stream pack. ```APIDOC StreamPack: Description: Stream pack. ``` -------------------------------- ### APIDOC: PivotLowStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md PineScript-like pivotlow ```APIDOC PivotLowStream: Description: PineScript-like pivotlow. ``` -------------------------------- ### APIDOC: ABaseStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Base stream implementation. ```APIDOC ABaseStream: Description: Base stream implementation. ``` -------------------------------- ### APIDOC: VolumeStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Volume stream. ```APIDOC VolumeStream: Description: Volume stream. ``` -------------------------------- ### Abstract Class: TAStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/Abstract/readme.md Abstract implementation of the TIStream interface. ```APIDOC TAStream: Abstract implementation of a TIStream ``` -------------------------------- ### Send Alerts with MQL5 Signaler Module Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/readme.md The Signaler module enables sending various types of alerts, including popup messages, push notifications, emails, sound alerts, and external targets like Telegram or Discord. It is designed for use within MQL5 Expert Advisors or indicators, allowing for flexible notification triggers based on trading logic. The module requires initialization with the current symbol and timeframe, and provides methods to send custom alert messages or predefined signals. ```MQL5 input string start_time = "000000"; // Start time in hhmmss format input string stop_time = "000000"; // Stop time in hhmmss format Signaler* signaler; int OnInit() { signaler = new Signaler(_Symbol, (ENUM_TIMEFRAMES)_Period); } void OnDeinit(const int reason) { delete signaler; signaler = NULL; } void OnCalculate() // or void OnTick() for EA's { signaler.SendNotifications("Alert subject", "Alert text", _Symbol, "M1"); //or signaler.SendNotifications(ENTER_BUY_SIGNAL); } ``` -------------------------------- ### APIDOC: ValueWhenSimpleStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md PineScript-like valuewhen. ```APIDOC ValueWhenSimpleStream: Description: PineScript-like valuewhen. ``` -------------------------------- ### APIDOC: ICellFactory Interface Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md Defines the contract for a factory responsible for creating cell instances. ```APIDOC ICellFactory: Type: Interface Description: Interface for a cell factory. ``` -------------------------------- ### Abstract Class: AFloatStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/Abstract/readme.md Abstract implementation of the IFloatStream interface. ```APIDOC AFloatStream: Abstract implementation of a IFloatStream ``` -------------------------------- ### APIDOC: PivotHighStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md PineScript-like pivothigh ```APIDOC PivotHighStream: Description: PineScript-like pivothigh. ``` -------------------------------- ### APIDOC: MACDStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md MACD stream. ```APIDOC MACDStream: Description: MACD stream. ``` -------------------------------- ### Abstract Class: ADateTimeStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/Abstract/readme.md Abstract implementation of the IDateTimeStream interface. ```APIDOC ADateTimeStream: Abstract implementation of a IDateTimeStream ``` -------------------------------- ### Abstract Class: AIntStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/Abstract/readme.md Abstract implementation of the IIntStream interface. ```APIDOC AIntStream: Abstract implementation of a IIntStream ``` -------------------------------- ### APIDOC: PivotStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Pivot stream. ```APIDOC PivotStream: Description: Pivot stream. ``` -------------------------------- ### APIDOC: StochStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Stochastic stream. ```APIDOC StochStream: Description: Stochastic stream. ``` -------------------------------- ### APIDOC: TrendValueCellFactory Class Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md A factory class specifically designed to instantiate TrendValueCell objects. ```APIDOC TrendValueCellFactory: Description: Creates TrendValueCell. ``` -------------------------------- ### IConditionFactory Interface Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md Defines an interface for factories responsible for creating condition instances, particularly for up/down conditions. This promotes modularity and abstraction in condition creation. ```APIDOC interface IConditionFactory: # Up/down condition factory interface. ``` -------------------------------- ### APIDOC: CandleStreams Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Stream of candles ```APIDOC CandleStreams: Description: Stream of candles. ``` -------------------------------- ### APIDOC: FixedTextFormatter Class Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md A concrete formatter that converts any input value into a predefined constant or fixed text string. ```APIDOC FixedTextFormatter: Description: Formats values as a constant/fixed text value. ``` -------------------------------- ### APIDOC: AValueFormatter Abstract Class Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md An abstract base class providing common functionality for value formatters. ```APIDOC AValueFormatter: Type: Abstract Class Description: Abstract value formatter. ``` -------------------------------- ### APIDOC: EmptyCell Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md Represents a placeholder cell with no specific content or functionality. ```APIDOC EmptyCell: Description: Empty cell. ``` -------------------------------- ### APIDOC: ConditionStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Condition stream. ```APIDOC ConditionStream: Description: Condition stream. ``` -------------------------------- ### APIDOC: SimplePriceStream (Symbol/Timeframe) Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Price stream based on symbol/timeframe parameters. Uses default price calls ```APIDOC SimplePriceStream: Description: Price stream based on symbol/timeframe parameters. Uses default price calls. ``` -------------------------------- ### APIDOC: CCIStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md CCI stream. ```APIDOC CCIStream: Description: CCI stream. ``` -------------------------------- ### APIDOC: ACustomStreamBase Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Base class for custom streams. ```APIDOC ACustomStreamBase: Description: Base class for custom streams. ``` -------------------------------- ### ICondition Interface Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md Defines the interface for all conditions, outlining the contract for condition implementations. ```APIDOC interface ICondition: # Base interface for all conditions. ``` -------------------------------- ### APIDOC: HighestBarsStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Equivalent to highestbars from TradingView. ```APIDOC HighestBarsStream: Description: Equivalent to highestbars from TradingView. ``` -------------------------------- ### APIDOC: PriceStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Returns values from another stream. ```APIDOC PriceStream: Description: Returns values from another stream. ``` -------------------------------- ### APIDOC: BarStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Standard bar stream. ```APIDOC BarStream: Description: Standard bar stream. ``` -------------------------------- ### APIDOC: AStreamBase Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Base stream implementation: implements reference counting. ```APIDOC AStreamBase: Description: Base stream implementation: implements reference counting. ``` -------------------------------- ### API Documentation for Enums Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/enums/readme.md Defines various enumeration types used across the project, including order side, position size, stop/limit, and moving average types. These enums provide standardized values for common parameters. ```APIDOC Enums: OrderSide: Order side. PositionSizeType: Position size type. StopLimitType: Stop/limit type MATypes: Moving average types ``` -------------------------------- ### APIDOC: WPRStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md WPR stream. ```APIDOC WPRStream: Description: WPR stream. ``` -------------------------------- ### APIDOC: GridBuilder Class Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md A utility class responsible for constructing or configuring grid structures. ```APIDOC GridBuilder: Description: Grid builder. ``` -------------------------------- ### APIDOC: HABarStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Heiken-Ashi bar stream. ```APIDOC HABarStream: Description: Heiken-Ashi bar stream. ``` -------------------------------- ### APIDOC: ICell Interface Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md Defines the contract for a generic cell, likely used as a base interface for all cell types. ```APIDOC ICell: Type: Interface Description: Interface for a cell. ``` -------------------------------- ### APIDOC: SlopeStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Slope stream. ```APIDOC SlopeStream: Description: Slope stream. ``` -------------------------------- ### APIDOC: ACell Abstract Class Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md An abstract base class providing common functionality and properties for all cell types. ```APIDOC ACell: Type: Abstract Class Description: Base class for cells. ``` -------------------------------- ### APIDOC: StdMAStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Standard moving averages. ```APIDOC StdMAStream: Description: Standard moving averages. ``` -------------------------------- ### APIDOC: IValueFormatter Interface Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md Defines the contract for objects responsible for formatting various types of values. ```APIDOC IValueFormatter: Type: Interface Description: Interface for a value formatter. ``` -------------------------------- ### APIDOC: RSIStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md RSI stream. ```APIDOC RSIStream: Description: RSI stream. ``` -------------------------------- ### APIDOC: LowestLowStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Calculates lowest value ```APIDOC LowestLowStream: Description: Calculates lowest value. ``` -------------------------------- ### APIDOC: Grid Class Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md Represents the main grid structure, typically composed of rows and cells. ```APIDOC Grid: Description: Grid. ``` -------------------------------- ### ConditionBuilder Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md Parses and constructs complex conditions from a string expression, supporting logical operators like 'and' and 'or'. This allows for dynamic condition creation. ```APIDOC class ConditionBuilder: # Parses conditions defined in a string (like "1 and 2 or 3") and creates them. # Supported features: # - and # - or ``` -------------------------------- ### APIDOC: AbsStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Return absolute value of a source. ```APIDOC AbsStream: Description: Return absolute value of a source. ``` -------------------------------- ### APIDOC: RowSize Class Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md A data structure or class holding attributes related to the dimensions or size of a row. ```APIDOC RowSize: Description: Contains information about row size. ``` -------------------------------- ### APIDOC: CustomStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Custom filled stream. ```APIDOC CustomStream: Description: Custom filled stream. ``` -------------------------------- ### APIDOC: TextValueCell Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md Represents a cell designed to display textual content. ```APIDOC TextValueCell: Description: Shows text. ``` -------------------------------- ### APIDOC: AStandardTimeframeBarStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Base class for bar streams based on a standard timeframe. ```APIDOC AStandardTimeframeBarStream: Description: Base class for bar streams based on a standard timeframe. ``` -------------------------------- ### ACondition Base Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md Provides a base implementation for conditions, offering common functionalities or an abstract structure for derived conditions. ```APIDOC class ACondition: # Base class for conditions. ``` -------------------------------- ### APIDOC: IndicatorOutputStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Stream drawn on the chart. ```APIDOC IndicatorOutputStream: Description: Stream drawn on the chart. ``` -------------------------------- ### APIDOC: CrossStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Puts 1 when two streams cross and 0 otherwise. ```APIDOC CrossStream: Description: Puts 1 when two streams cross and 0 otherwise. ``` -------------------------------- ### APIDOC: ConstValueStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Returns constant value. ```APIDOC ConstValueStream: Description: Returns constant value. ``` -------------------------------- ### APIDOC: StDevStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Standard deviation. ```APIDOC StDevStream: Description: Standard deviation. ``` -------------------------------- ### APIDOC: TrueRangeStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md True range stream. ```APIDOC TrueRangeStream: Description: True range stream. ``` -------------------------------- ### PositionLimitHitCondition Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md Determines if a predefined position limit has been reached or exceeded. This condition is crucial for managing trading risk and exposure. ```APIDOC class PositionLimitHitCondition(ACondition): # Position limit hit condition. ``` -------------------------------- ### APIDOC: StreamBuffer Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Used for internal implementation of streams. ```APIDOC StreamBuffer: Description: Used for internal implementation of streams. ``` -------------------------------- ### APIDOC: ChangeStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Returns change of a source value compared to the previous value. ```APIDOC ChangeStream: Description: Returns change of a source value compared to the previous value. ``` -------------------------------- ### APIDOC: HighestHighStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Calculates highest value ```APIDOC HighestHighStream: Description: Calculates highest value. ``` -------------------------------- ### APIDOC: LabelCell Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md Represents a cell primarily used for displaying labels or static text. ```APIDOC LabelCell: Description: Label cell. ``` -------------------------------- ### APIDOC: Row Class Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md Represents a collection or container for a horizontal sequence of cells. ```APIDOC Row: Description: Row of cells. ``` -------------------------------- ### APIDOC: DateTimeStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Return date/time of the specified symbol/timeframe for the specified bar of the current chart. ```APIDOC DateTimeStream: Description: Return date/time of the specified symbol/timeframe for the specified bar of the current chart. ``` -------------------------------- ### APIDOC: GridCells Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md A collection or representation of cells within a grid context. ```APIDOC GridCells: Description: Grid cells. ``` -------------------------------- ### APIDOC: RisingStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Returns true when value > than previous (length). Similar to ta.rising from Pine Script ```APIDOC RisingStream: Description: Returns true when value > than previous (length). Similar to ta.rising from Pine Script. ``` -------------------------------- ### APIDOC: GridRow Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md Represents a single row within a grid structure. ```APIDOC GridRow: Description: Grid row. ``` -------------------------------- ### Bar Conditions Group Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md A category or group of conditions specifically designed to evaluate properties or states related to price bars. ```APIDOC group bar_conditions: # Conditions related to price bars. ``` -------------------------------- ### APIDOC: AOnStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Abstract class for streams based on another stream. ```APIDOC AOnStream: Description: Abstract class for streams based on another stream. ``` -------------------------------- ### APIDOC: BarsSinceStreamV2 Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Counts number of bars since last condition. ```APIDOC BarsSinceStreamV2: Description: Counts number of bars since last condition. ``` -------------------------------- ### APIDOC: BarsSinceStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Counts number of bars since last condition pass. ```APIDOC BarsSinceStream: Description: Counts number of bars since last condition pass. ``` -------------------------------- ### Bands Conditions Group Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md A category or group of conditions focused on evaluating properties or states related to Bollinger Bands or similar price bands. ```APIDOC group bb_conditions: # Conditions related to bands (e.g., Bollinger Bands). ``` -------------------------------- ### APIDOC: GridTextCell Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md A specialized cell type designed to display text within a grid. ```APIDOC GridTextCell: Description: Grid text cell. ``` -------------------------------- ### APIDOC: FallingStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Returns true when value < than previous (length). Similar to ta.falling from Pine Script ```APIDOC FallingStream: Description: Returns true when value < than previous (length). Similar to ta.falling from Pine Script. ``` -------------------------------- ### TradingTimeCondition Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md Evaluates whether the current time falls within specified trading hours. It supports multiple time ranges in HHMM format, similar to TradingView, separated by commas and dashes. ```APIDOC class TradingTimeCondition(ACondition): # Trading time condition. # Requires time in HHMM format (TradingView-like). # Checks whether the time is in specified range. # Supports multiple ranges separated by "," (comma). # From-to time separated by a dash "-". # Creation via factory: TradingTimeFactory::Create. ``` -------------------------------- ### MaxDistanceBetweenConditionsCondition Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md Passes only if the distance between two specified conditions (e.g., in bars) does not exceed a maximum limit. Useful for timing events. ```APIDOC class MaxDistanceBetweenConditionsCondition(ACondition): # Passes only if between two conditions not more than x bars. ``` -------------------------------- ### Divergence Conditions Group Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md A category or group of conditions specifically for detecting divergences between price action and indicators. ```APIDOC group divergence_conditions: # Conditions for detecting a divergence. ``` -------------------------------- ### APIDOC: TrendValueCell Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Grid/readme.md Represents a cell designed to display trend information within a grid or UI component. ```APIDOC TrendValueCell: Description: Shows trend. ``` -------------------------------- ### AndCondition Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md A composite condition that returns true only if all its constituent conditions also return true. It implements logical AND operation. ```APIDOC class AndCondition(ACondition): # Returns true when all conditions return true. ``` -------------------------------- ### StreamLevelCondition Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md A condition that evaluates based on the level or state of a data stream. This could be used for real-time data processing. ```APIDOC class StreamLevelCondition(ACondition): # Stream-level condition. ``` -------------------------------- ### NotCondition Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md Inverts the result of another condition. If the wrapped condition is true, NotCondition returns false, and vice-versa. ```APIDOC class NotCondition(ACondition): # Inverts another condition. ``` -------------------------------- ### ProfitInRangeCondition Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md Checks if the profit of a given order falls within a specified numerical range. This is useful for triggering actions based on profit thresholds. ```APIDOC class ProfitInRangeCondition(ACondition): # Returns true when profit of the order is in the specified range. ``` -------------------------------- ### MinDistanceSinceLastTradeCondition Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md Evaluates to true if a sufficient distance (e.g., in bars or time) has passed since the last trade occurred. This helps prevent overtrading. ```APIDOC class MinDistanceSinceLastTradeCondition(ACondition): # Condition is true when there is enough distance since last trade. ``` -------------------------------- ### APIDOC: CumOnStream Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Streams/readme.md Calculates cumulative value. Similar to cum() in PineScript ```APIDOC CumOnStream: Description: Calculates cumulative value. Similar to cum() in PineScript. ``` -------------------------------- ### DisabledCondition Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md Represents a condition that always evaluates to false, effectively disabling any associated logic or action. ```APIDOC class DisabledCondition(ACondition): # Always returns false. ``` -------------------------------- ### StreamStreamCondition Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md A condition that evaluates based on the interaction or comparison between multiple data streams. Useful for complex real-time data analysis. ```APIDOC class StreamStreamCondition(ACondition): # Stream-stream condition. ``` -------------------------------- ### OrCondition Class Definition Source: https://github.com/sibvic/mq5-templates/blob/master/snippets/Conditions/readme.md A composite condition that returns true if at least one of its constituent conditions returns true. It implements logical OR operation. ```APIDOC class OrCondition(ACondition): # Returns true when at least one of the conditions returns true. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.