Description of work
The 'MA7 Galega' indicator is based on the standard Moving Average (MA) indicator. Shows a puncture of the moving average.
Features of work
The indicator works on the instrument and timeframe on which it is installed. The data is analyzed on closed candles, so the arrows are not redrawn.
Additional functions
Notifications when an arrow appears.
Indicator settings
General settings
Period
The parameter sets the period of the MA indicator. Measured in candles (bars). The parameter must be greater than 0.
Method
The parameter sets the MA smoothing type. You can select the desired smoothing type from the list.
Apply to
The parameter sets the price type that is used to calculate the MA indicator. You can select the desired price type from the list.
Consider the direction of the candle
The parameter sets the resolution for the arrow filter. If the filter is turned on, then when an up arrow appears, the candle should also be directed upward (bullish candle), when a down arrow appears, the candle should be directed downward (bearish candle).
Message settings
Send message to the terminal (Alert)
The parameter sets permission to send messages to the terminal using the Alert function.
Send message to the mobile terminal (Push)
The parameter sets permission to send messages to the mobile terminal using push notifications. Permission to send messages must be enabled in the terminal settings; read the instructions.
Send message to the email
The parameter sets permission to send messages by email. Permission to send messages must be enabled in the terminal settings; read the instructions.
Additional information
The parameter sets additional information about the indicator so that the user can distinguish which program sent the message. The information is displayed in the message header. For example, you installed two indicators on the same instrument and on the same timeframe with different parameters, one indicator has a period of 10, the other has a period of 30. To understand which indicator sent the message, you need the Additional information parameter, you can indicate additional information, for example, the period that the indicator uses, then in the message you will see which indicator sent the message.
Arrow display settings
Arrow shift
The parameter sets the vertical offset of the arrow on the chart.
Arrow size
The parameter sets the size of the arrow.
Up arrow color
The parameter sets the color of the up arrow.
Down arrow color
The parameter sets the color of the down arrow.
Up arrow code
The parameter sets the up arrow code.
Down arrow code
The parameter sets the down arrow code.
Calculation formula
For up arrow: Low1 < MA1 and MA1 < Open1 (if a bullish candle) or Close1 (if a bearish candle),
For down arrow: High1 > MA1 and MA1 > Open1 (if a bearish candle) or Close1 (if a bullish candle), where
MA1 – MA indicator value with candle index 1 (last closed candle),
Open1 – opening price of the candle with index 1 (last closed candle),
Close1 – closing price of the candle with index 1 (last closed candle),
High1 – maximum price of the candle with index 1 (last closed candle),
Low1 – minimum price of the candle with index 1 (last closed candle).
Condition for displaying an up arrow
The lower shadow of the candle punctured the moving average.
Consider the direction of the candle == YES
The candle is directed upward (bullish candle).
Condition for displaying a down arrow
The upper shadow of the candle punctured the moving average.
Consider the direction of the candle == YES
The candle is directed downwards (bearish candle).
'MA7 Galega' indicators:
Expert advisors based on the 'MA7 Galega' indicator:
Subscribe to the 'MA7 Trading' channel to receive notifications about new programs, updates and other information.
Ask questions in the profile on the MQL5.