The 'MA7 Aster' indicator

The 'MA7 Aster' indicator

6 March 2024, 15:31
Andrey Minaev
0
88

Description of work

The 'MA7 Aster' indicator is based on the standard Moving Average (MA) indicator. Shows the price deviation from 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 the arrow appears.

 

Indicator settings

General settings:

- Period

The parameter configures the period of the moving average.

Measured in candles (bars).

The parameter value must be greater than 0.

- Method

The parameter selects the price smoothing method.

- Apply to

The parameter selects the price type.

- Minimum distance

The parameter configures the minimum distance from the moving average to the closing price of the candle.

Measured in points.

 

Message settings:

- Send message to the terminal (Alert)

The parameter gives permission to send messages to the terminal using the Alert function.

- Send message to the mobile terminal (Push)

The parameter gives 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 gives permission to send messages by email. Permission to send messages must be enabled in the terminal settings; read the instructions.

- Additional information

The parameter specifies additional information about the indicator so that the user can distinguish which program sent the message. The information is displayed in the message header.

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 configures the vertical offset of the arrows on the chart.

- Arrow size

The parameter configures the size of the arrows.

- Up arrow color

This parameter configures the color of the up arrow.

- Down arrow color

This parameter configures the color of the down arrow.

- Up arrow code

The parameter configures the up arrow code.

- Down arrow code

The parameter configures the down arrow code.

Examples of arrow codes.

 

Calculation formula

For up arrow: Minimum distance < MA1 - Close1,

For down arrow: Minimum distance < Close1 - MA1,

where:

Minimum distance – indicator parameter,

MA1 – the value of the MA indicator with candlestick index 1 (last closed candle),

Close1 – closing price of the candle with candlestick index 1 (last closed candle).

 

Condition for displaying an up arrow

The distance from the closing price to the moving average is greater than the Minimum distance parameter.

The candle closes below the moving average.


Condition for displaying down arrow

The distance from the closing price to the moving average is greater than the Minimum distance parameter.

The candle closes above the moving average.


Example

A new candle has appeared, the indicator checks the last candle to check the distance from the closing price to the MA indicator. For example, the candle closed at a price of 1.00700, the MA indicator value was 1.00900, and the Minimum distance parameter was 100 points. When calculated, the actual distance between the closing price and the indicator was 200 points, which is more than 100, and the indicator is above the closing price, so the indicator displays an up arrow.

 

Subscribe to the MQL5 channel to receive notifications about new programs, updates and other information.

My contacts are on MQL5.

 

Version for MetaTrader 4.

Version for MetaTrader 5.

Share it with friends: