Honest Breakeven

Indicator gives an honest picture of changes in breakeven levels for transactions throughout the account history, and not just for open positions (screenshot 1). Accurate calculation of levels, taking into account accrued commissions, fees and swaps, allows you to evaluate trading results both visually and in Expert Advisors (screenshot 2). For Expert Advisors, the indicator in its standard form provides not only the break-even level, but also the number of positions, volume, and all additional fees (including swap) that affect the price of the break-even level. This frees the Expert Advisor from complex calculations. It is designed for both hedging and netting accounts.

Note for netting accounts: The weighted average breakeven price differs from the netting price of a position, as breakeven is calculated for all trades from the moment the position is opened. The netting price takes into account transactions from the opening price or the reversal price of the position, that is, it does not take into account transactions before the reversal.The same applies to swaps, commissions, and other fees. The breakeven price gives a more honest picture of the breakeven of the entire position from the moment of opening. Screenshot 3.

Inputs parameters. Screenshots 4 and 5.

  • Expert ID — Advisor ID(s) or magic assigned to Advisor positions. Specified as a string separated by spaces or commas. An empty line means that positions with any value will be taken into account in the calculation, zero — positions that are usually set by a trader, more than zero — are set by Expert Advisors or scripts.
  • Position ID — the IDs of the positions that are equal to the ticket of the order that opened the position. They are specified as a string separated by a space or comma. An empty line means that all positions will be taken into account in the calculation.
  • Swap accounting — enable or disable the inclusion of accrued swaps. Position swaps are calculated as in real trading, taking into account swap coefficients and the position volume on each day.
  • Commission accounting — enabling or disabling accounting for accrued commissions. All accrued commissions on positions are taken into account, including the moments of partial closure or reversal of a position.
  • Fees accounting — enabling or disabling accounting in calculations of other fees charged on the position.
  • Breakeven for all positions — enabling or disabling the calculation of the weighted average breakeven price for all positions. It allows you to see how the breakeven price, direction, volume and all fees of the weighted average position are changing.
  • Breakeven for long positions — enabling or disabling the calculation of the weighted average breakeven price only for long positions. For netting accounts, it allows you to see how the break-even price, number of positions, volume, and all fees would change if they were opened as separate hedge positions.
  • Breakeven for short positions — enabling or disabling the calculation of the weighted average breakeven price only for short positions. For netting accounts, it allows you to see how the break-even price, number of positions, volume, and all fees would change if they were opened as separate hedge positions.
  • Positions — enabling or disabling the display of the number of positions in the Data Window. Disabling it does not affect the calculation.
  • Volumes — enabling or disabling the display of the volume of positions in the Data Window. Disabling it does not affect the calculation.
  • Fees — enabling or disabling the display of additional fees by position in the Data Window. Disabling it does not affect the calculation.
  • The line color, style, and width can be adjusted in the "Colors" tab of the indicator settings. Screenshot 4.

Indicator buffers

Label Number Description Empty value 
 BE All Price  0 Weighted average price of all positions.  0.0
   1 Line color BE All Price.  0
 BE All Positions  2 Total number of all positions.  0.0
 BE All Volumes  3 Volume of all positions.  0.0
 BE All Fees  4 All charges on all positions, including swaps, commissions and other fees.  0.0
 BE Long Price  5 The weighted average price of all long positions.  0.0
 BE Long Positions  6 The total number of all long positions.  0.0
 BE Long Volumes  7 Volume of all long positions.  0.0
 BE Long Fees  8 All charges on all long positions, including swaps, commissions and other fees.  0.0
 BE Short Price  9 The weighted average price of all short positions.  0.0
 BE Short Positions  10 The total number of all short positions.  0.0
 BE Short Volumes  11 Volume of all short positions.  0.0
 BE Short Fees  12 All charges on all short positions, including swaps, commissions and other fees.  0.0

Yazarın diğer ürünleri
Hyperbolic
Konstantin Gruzdev
The indicator is stable on noise fluctuations in price and quickly reacts to the trend. It is based on an algorithm from a system of hyperbolic functions that allows you to aggressively smooth the flat with minimal lag on the trend. It can be applied directly to the price chart, to itself, or to other indicators in order to eliminate false signals. The main purpose of the indicator is to smooth out small sawtooth price movements as much as possible. The higher the Hyperbolic parameter, the stron
Filtrele:
Değerlendirme yok
Değerlendirmeye yanıt