Average (Breakeven) Price Indicator – indicator MetaTrader 4

Average (Breakeven) Price Indicator
This indicator draws a horizontal line at the Average/Breakeven Price for multiple positions (blue if overall position is buy; red if overall position is sell and White for neutral). Additional information (just for the symbol on the chart): Distance in pips to Average Price; P/L in deposit currency; Net Lots (consolidated); Total Trades (buy or

BreakEven Function – script MetaTrader 4

BreakEven Function - script for MetaTrader 4
//+——————————————————————+ //|Breakeven                                                         | //+——————————————————————+ void BreakEven(double _breakEvenPips, bool useSymbol=false, bool useMagicNumber=false, int _magicNumber=0) {     for(int i=OrdersTotal()-1; i>=0; i–) {         if(OrderSelect(i,SELECT_BY_POS)) {             bool magic = (useMagicNumber) ? (OrderMagicNumber()==_magicNumber) : true;             bool symbol = (useSymbol) ? (OrderSymbol()==Symbol()) : true;             if(!magic || !symbol) continue;             if(OrderType() == OP_BUY) {                 if(NormalizeDouble(OrderStopLoss(),_Digits) < NormalizeDouble(OrderOpenPrice(),_Digits)) {                     if(Bid – OrderOpenPrice() >= NormalizeDouble(_breakEvenPips *

Titik Impas Breakeven MT4 – script MetaTrader 4

Titik Impas Breakeven MT4 - script for MetaTrader 4
The Titik Impas Breakeven MetaTrader script serves as a straightforward tool designed to adjust the stop-loss to the Breakeven Point for one or more positions, based on specified parameters. This script is compatible with both MT4 and MT5 platforms. The Breakeven Point, or Titik Impas, denotes the price level at which a trade’s profit becomes