Trailing Stop That Can Do Everything Expert Advisor For MT4
WE IMPROVED THIS EXPERT ADVISOR FOR YOU!!!
PLEASE NOTE: This expert advisor was publicly available for free usage on other websites and is not programmed by us. We explain the functionality and possible improvements of the EA. Furthermore, we are convinced that fully automatic Expert Advisors will fail in the long run. On the other hand, our semi-automatic approach with detecting the best setups and then activating our Expert Advisors (e.g. V-Power EA, EdgeZone EA) produced many successful traders and some of them even got prop traders at prop trading firms. Therefore, we added a similar semi-automatic trading feature (to allow only buy or only sell trades) to the free Expert Advisors. You can download the modified version here and enjoy!
The Trailing Stop That Can Do Everything Expert Advisor For MT4 does not only adjust trades on the chart using various methods, but it also employs several strategies to make money and reduce trading risks. One strategy being used is hedging. Every time the robot opens a trade, it always comes in a set of buy and sell trades. Also, it handles trade management by set or basket, that is, assigning one stop loss price to all open trades. Initial testing shows this robot has positive prospects of becoming a profitable trading system.
The Trailing Stop That Can Do Everything Expert Advisor For MT4 – Entry Criteria
The Trailing Stop That Can Do Everything Expert Advisor displays some information on the upper-right portion of the chart to help the user track the progress of open trades and the overall trading performance. The information provided to the user includes the real-time balance and equity, number of buy and sell trades, and open profit for buy and sell trades, among others. When a trade or set of trades is winning, it is shown in green text. If losing, it is shown in red text. See image above.
The expert advisor also creates some objects on the chart not only for display purposes but also for trading operations. These objects include the upper and lower arrows in short horizontal lines for use in stop loss adjustment and the text objects containing information about the buy and sell breakeven prices. When these objects are triggered, trades are affected in some way.
There are some parameters in Inputs that the user can adjust. These include the following:
- VirtualTrailingStop = false – When this parameter is enabled, the robot will trail the stop without actually modifying the orders. By default, this is disabled.
- TrailType = i – This option refers to the trailing method to be used by the trading system. The user can choose one method from seven options. The default method is by points.
- Delta = 50 – The expert advisor draws an arrow 50 points (or 5 pips) above the ask price and 50 points below the bid price.
- TF_Tralling = af – This is the timeframe where all indicator values are computed. The user can choose from one minute to daily timeframe. The default value is equivalent to the current timeframe where the robot is attached.
- Magic =-1 – The robot assigns this magic number to each trade to be used in trade management.
- period_ATR = 14 – If the trail type is via ATR, the period used is 14.
- Step = 0.02 – If the trail type is via parabolic SAR, this is the step used.
- Maximum = 0.2 – If the trail type is via parabolic SAR, this is the maximum used.
- ma_period = 34 – If the trail type is via moving average, this is the moving average period used.
- ma_method = MODE_SMA – If the trail type is via moving average, this is the averaging method used.
- applied_price = PRICE_CLOSE – If the trail type is via moving average, this is the price used.
- PercentProfit = 50 – If the trail type is via percent profit, this is the percentage of profit used.
After the expert advisor is added to a chart, it immediately opens buy and sell trades with a lot size of 0.10. The buy trade is placed above the sell trade, and the distance between them is the value of the spread at the time of entry. These trades have no stop loss and take profit values. After the trades have been taken, the robot draws two arrows on the main chart, one above the ask price and another below the bid price. The arrows are displayed as short horizontal lines, one is red and the other is aqua. The two arrows move up and down in unison with price, maintaining a distance of 50 points.
At some point, when the lower arrow touches the open price of the buy trade, the stop loss of the buy trade is immediately set at the entry price plus one point. When the upper arrow touches the open price of the sell trade instead, the stop loss of the sell trade is immediately set at the entry price minus one point. Every time the newly adjusted trade gains a point, the stop loss is adjusted by the same amount. On the contrary, if price turns around and hits the new stop loss, the trade is closed in profit. The other trade remains open as it has no stop loss and take profit.
Immediately after one trade is closed in profit after price touches its stop loss, another set of hedged trades takes its place, meaning the new trades are buy and sell positions. These trades are added without time delay after the previous trade. At this point in the discussion, there are already three trades open on the current symbol (one buy trade and two sell trades). As in the first set of trades, the new set of trades comes with an upper arrow and lower arrow 50 points from market price.
The expert advisor also displays the breakeven price of buy and sell trades. For the first pair of trades, the breakeven price of the buy trade is also its open price, and the breakeven price of the sell trade is its entry price. When new sets of trades are in place, the breakeven price for the buy and sell trades considers the number of orders for each type and the total lot size. The buy breakeven price is displayed to the right of the current candle inside a horizontal rectangle in color aqua, and the sell breakeven price is shown inside a horizontal rectangle in color red.
The Trailing Stop That Can Do Everything Expert Advisor For MT4 – Exit Criteria
The Trailing Stop That Can Do Everything Expert Advisor can open as many trades as possible on the current symbol. If the current trend is long, buy trades are opened and closed shortly, while sell trades pile up, causing drawdown to the trading account. This scenario is depicted in testing as two lines diverging from each other. While the balance line is moving up, the equity line is going down.
When there are already several trades of one type on the chart and price begins to retrace, the expert advisor handles trade management in this manner. An example will easily illustrate the concept. If there are multiple sell trades and there is only one buy trade, meaning price went up for some time, the stop loss of the last sell trade is not adjusted even if the upper arrow has touched its open price.
The whole set of sell trades is adjusted as one unit. This happens when price makes a significant correction to the downside against the current bullish trend. If the ask price has gone 50 points below the breakeven price of the basket of sell trades, the stop losses of all sell trades are adjusted to the same price. Stop loss adjustment is done point by point until price touches the new stop loss, resulting in trade closure of all the sell trades.
The Trailing Stop That Can Do Everything Expert Advisor For MT4 – Room for Improvement
As observed in testing, the Trailing Stop That Can Do Everything Expert Advisor is suitable for trading ranging markets. When the traded symbol trends in one direction, counter-trend trades pile up and cause drawdown, resulting in divergent balance and equity curves. The two curves come together when market has made enough correction to close all negative trades in profit beyond the basket breakeven price.