Combination MA Signal - MetaTrader 4 Script | Trading Script Download - MT4/MT5 Resources



For higher chart time ranges: H4, D1, W1 use Slow = false (0) and for smaller chart time ranges: H1, M30, M15, M5 set Slow = true (1). An arrow appears.
If Signal = 3 (preferably 8), the moving average is calculated as 1x2 + 2x2 + 3x2 (minus) 1x3 - 2x3 - 3x3, which is less than the individual values.
Although (count > 0 ) { difference = ima ( void , 0 , (count * 2 ), 0 , 3 , 0 , i) - imma ( void , 0 , (count * 3 ), 0 , 3 , 4 , one) + imma ( void , 0 , (count * 2 ), 0 , 3 , 4 , i) - imma ( void , 0 , (count* 3 ), 0 , 3 , 1 , i); if (count>=signal/ 2 )ExtGreenBuffer[i]+=dif; if (difference != 0.0 )dif/=(count + 1 )/ 2 ; if (count + 1 <= signal)ExtSilverBuffer[i]+=dif; Count - ;

If used in experts: can be used as Buffer 2 [Method 2] (if > 0.0) = Buy, Buffer 3 [Method 3] (if < 0.0) = Sell.
Entry: A good combination of D1 and H4 and H1 can be one signal, if they both receive the same signal it must not be on the same bar.
Closing a position: If H1 or H4 changes - this is a signal to close a position.


Attachment download
📎 Combined_MA_Signal.mq4 (3.71 KB)
📎 Optimisator_for_Combined_MA_Signal.mq4 (13.92 KB)
Source: MQL5 #7833
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •