Break-even price level (without loss level) – script MetaTrader 4

Break-even price level (without loss level) - script for MetaTrader 4
The script shows the price value, where total profit for all of the opened positions will have positive values (without loss level, or break-even price level). If you close all of the opened positions at this price, the total profit will be non-negative. This method is used in the expert, you can see trade results … Read more

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 … Read more

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 * … Read more

Titik Impas Breakeven – script MetaTrader 5

Titik Impas Breakeven - script for MetaTrader 5
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 … Read more

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 … Read more