Join our fan page
This is a working singleton code example. The sole purpose of this post is to provide a working code sample of a singleton object. A singleton object is created when there 'can be only one' of the object. This is accomplished by making an object's constructor private, and ensuring assignment and copy operations are also private. I was working on an EA and identified that an object should never have more than one copy. I don't expect the EA to ever get large enough for it to actually matter that a singleton is used, but I like the clarity in the code for the object's type. The code follows closely the tutorial at http://www.yolinux.com/TUTORIALS/C++Singleton.html.
Trade signals based on "3 Black Crows/3 White Soldiers" candlestick pattern, confirmed by Commodity Channel Index (CCI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.
Trade signals based on "Hammer/Hanging Man" candlestick pattern, confirmed by Stochastic indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.
The Exp_JBrainSig1_UltraRSI Expert Advisor uses the values of JBrainTrend1Sig and UltraRSI indicators to analyze the market state.
A panel for opening and closing positions on several financial symbols in one click.
Exp_X2MA_Digit_DM_361 trend-following trading system is based on ColorX2MA_Digit and ColorDM_361 indicator signals.
The Expert Advisor which uses the AO and AC indicators in its operation, which were proposed by the Bill Williams.
The Expert Advisor places two pending orders (BuyStop and SellStop) with the specified expiration.
The Expert Advisor uses the MACD, OsMA and WPR indicators. The Expert Advisor is configured to trade on the D1 timeframe with USDCHF, GBPUSD, USDJPY and EURUSD
The Expert Advisor solves the problem of position trailing along a given curve by moving its Stop Loss and Take Profit.
Buy a security (open BUY positions) at a lower price, sell (open SELL positions) at a higher price.
An example of a template for developing automated trading systems.
Two identical trading systems based on the crossover of the CMO indicator and the zero line, for long and short trades, which can be configured in different ways in one Expert Advisor.
The Expert Advisor is profitable only if the "Open prices" only or "1 minute OHLC" modes used in Strategy Tester.
An example of how to create a multicurrency Expert Advisor that trades using the Bollinger Bands indicator.
Trade signals based on "3 Black Crows/3 White Soldiers" candlestick pattern, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.
Trade signals based on "Dark Cloud Cover/Piercing Line" candlestick pattern, confirmed by Commodity Channel Index (CCI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.
The Expert Advisor opens an initial position in the current candle's direction and increases its volume if profit in points increases a threshold fixed in the EA inputs.
A semi-automated Expert Advisor which signals of breakouts of specified horizontal levels.
The Expert Advisor calculates the maximum lot size that can be used to open a position using the entire free margin available on the deposit.
Three independent trading systems using BrainTrend_V2, AbsolutelyNoLagLWMA and X2MACandle indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system