AlliHeik - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources




Idea from : Joseph Strauss .
MQL5 code by : Vladimir Karputov .
EA uses indicator Heiken Ashi Smooth Oscillator :

Examples of "Buy on opening" and "Sell on opening" signals:


Opening a position is signaled only when a new bar appears, while tracking positions are checked on every price move.
In this EA, the entire code related to defining the input parameters of the Moving Average, creating the indicator and receiving the indicator value is commented - I decided not to completely delete this code: maybe someone will find a solution to apply it.
Instead, the following parameters were added: trailing, signal reversal and closing the opposite position on the occurrence of a signal.
The position is lagging behind. When Trailing Stop is set to zero, trailing will be disabled.
The flag reversal signal completely changes the value of the position opening signal.
The flag closes the opposite position based on the signal 's value really :
By value error , the EA has only one position on the market and therefore does not close the opposite position.
Example parameters for symbols on H1, such as initial value, step size, and final value:

Attachment download
📎 heiken_ashi_smoothed_oscillator.mq5 (14.42 KB)
📎 alliheik.mq5 (45.61 KB)
Source: MQL5 #20680
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •