CRect and CCanvas replacement (Standard Library – several bugs fixed) – library MetaTrader 5

CRect and CCanvas replacement (Standard Library - several bugs fixed) - library for MetaTrader 5
Real author: MetaQuotes Software, Bugfixes & Enhancements by Doerk. When you start to work on a pixel basis with the standard library, you’ll soon figure out, that sometimes a pixel here and there is missing. This weird behavior is caused mainly by several bugs in the CRect class. The main problem here is, that the … Read more

Automatic Fixed Scale with Top/Bottom Margins – indicator MetaTrader 4

How it works
This code was written as an indicator. It adds top and bottom margin to the chart. Both can be adjusted separately. This gives some breathing space to top and bottom of the chart for drawing. It’s changing chart scale to fixed scale, then finds Highest and Lowest price visible on the chart. Then adjust those … Read more

Money Fixed Risk – EA MetaTrader 5

Money Fixed Risk Inputs
An example for calculating the lot value in accordance with the risk per trade. Update: 28 Dec 2016 -> version 1.001 What’s new: added two methods for outputting (printing) the calculated lot. Method 1 — when setting StopLoss to zero.       //— variant #1: StopLoss=0.0       sl=0.0;       check_open_long_lot=m_money.CheckOpenLong(m_symbol.Ask(),sl);       Print(“sl=0.0”,             ” CheckOpenLong: “,DoubleToString(check_open_long_lot,2),             “, Balance: “,    DoubleToString(m_account.Balance(),2),             “, Equity: … Read more

Volume Profile + Range v6.0 – indicator MetaTrader 5 (Fixed iBarShift Issue) – indicator MetaTrader 5

Volume Profile + Range v6.0 - indicator for MetaTrader 5 (Fixed iBarShift Issue) - indicator for MetaTrader 5
Volume Profile + Range v6.0 (former TPO). Distribution of deals by price levels at a given time interval. Displayed as a histogram. The width of the histogram at the level means the number of transactions carried out on it. If a broker provides data on a real volume, the indicator is able to display distribution … Read more

Trailing Stop by Fixed Parabolic SAR – EA MetaTrader 5

Fixed Parabolic SAR
Modify to allow direct specification of the starting point of the Parabolic SAR. Parameters Trailing Mode ・・・ None / Trailing Fixed / Trailing Fixed Parabolic SAR calcuration part of Parabolic SAR bool CSampleExpert::LongModifiedEx(void) { bool res=false; //— check for trailing stop if(m_trailing_max < m_last_bar.high) { double tp=m_position.TakeProfit(); double sl=m_position.StopLoss(); //— calcurate ParabolicSAR m_trailing_max = m_last_bar.high; … Read more