Thank you Mohammed. Will this work on the MT4 platform?
Regards, Corrie
Obviously the article is geared towards MT5 and the example code is MQL5 only.
However, the mathematics and the concepts of how to develop an EA can be applied to MT4, but you will have to adapt it for MQL4 code instead, which can be quite different.
Please help me for the "comment" on the chart. For the UpTrend strategy, the "comment" of "take profit or stop loss" is set when the price is lower than LowBandValue.
However, I observe it always indicated even the price is higher than LowBandValue.
Thanks.
Please help me for the "comment" on the chart. For the UpTrend strategy, the "comment" of "take profit or stop loss" is set when the price is lower than LowBandValue.
However, I observe it always indicated even the price is higher than LowBandValue.
Thanks.
Try to revise conditions of strategy of your code.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Learn how to design a trading system by Envelopes has been published:
In this article, I will share with you one of the methods of how to trade bands. This time we will consider Envelopes and will see how easy it is to create some strategies based on the Envelopes.
As this indicator is a percentage of moving average which is an average for a period of prices, during the uptrend prices will move above upper band of Envelopes indicator. So, our strategy here during uptrend will be as follows:
We will get a buy signal when prices cross the upper band of Envelopes upward, then take profit when prices cross the lower band of Envelopes downward.
Author: Mohamed Abdelmaaboud