VARA Indicator Traduction ________________________________________________________________________________________________________ ________________________________________________________________________________________________________ Indicator Description The name of the indicator should be "VARA". I want to create an indicator that detects bounces on moving averages. It will use the price values ​​of the candles. It should also use the price values ​​of the moving averages. It will use a time filter to display only alerts created in a defined time range. The indicator should not slow down the operation of metatrader. The indicator should be able to be installed and displayed multiple times on the same chart. As is done for the Rsi, stochastic or other indicators, I want the signals and alerts to be displayed in a second window. _________________________________________________________________________ Time filter This filter will always be enabled (on/off activation is unnecessary). The time filter will define a time range. A first parameter will define the start of the time range (7H by default). A second parameter will define the end of the time range (20H by default). Outside of this time range, the indicator should not create or display alerts. This time range can be modified by the user. Thus, the indicator will create alerts only during this time range. _________________________________________________________________________ History size By default, the history size should be 1000 candles. The end of the history should be marked by a vertical line (at the 1001st candle), drawn on the graph window or on the second window, or on both windows. _________________________________________________________________________ Second window As it exists for other indicators (Rsi, Stochastic, ...), the indicator should be displayed in a second window, below the graph. This window should display: The signal points (blue point or yellow point) As well as the alert arrows (blue arrow or yellow arrow) Finally, the indicator should mention which moving averages are used to create the signals and alerts. He will have to mention the moving averages used at the top left of this second window. ________________________________________________________________________________________________________ ________________________________________________________________________________________________________ Glossary Candle 01 >> candle from which the calculation is made to detect an alert or a signal. Candle 02 >> candle preceding candle 01 High-price >> highest price of candles 01 and 02. Low-price >> lowest price of candles 01 and 02. Signal X >> Signal detected, from which the calculation is made to detect an alert. Signal X+1 >> Signal preceding signal X Zone >> All candles located between candle 02 of signal X, and candle 01 of signal number X+1 ________________________________________________________________________________________________________ ________________________________________________________________________________________________________ Signals and Alerts On the same window, the indicator will have to search for signals and alerts for several moving average values. The user will have to be able to define the values ​​of these moving averages in the indicator settings. For this example, I use the moving average value 20. ___________________________________________________________________________ SIGNALS Bullish signal - If the closing price of a bullish candle (alert candle 01) ends above the price value of its moving average 20. - If the lowest price (low-price) of this candle (alert candle 01), or of the previous candle (candle 02), is below the moving average 20. - If the lowest prices of the 10 candles preceding candle 02 are above their moving average value 20. - And if the lowest prices of the 10 candles preceding candle 02 are above the low-price. Then, a bullish signal will have to be created. A blue dot should then be displayed in the second window, under candle 01. Subsequently, creating a bullish alert will require the use of 2 consecutive bullish signals. ------------------------------------------ Bearish signal - If the closing price of a bearish candle (alert candle 01) ends below the price value of its moving average 20. - If the highest price (high-price) of this candle (alert candle 01), or of the previous candle (candle 02), is above the moving average 20. - If the highest prices of the 10 candles preceding candle 02 are below their moving average value 20. - And if the highest prices of the 10 candles preceding candle 02 are below the high-price. Then, a bearish signal should be created. A yellow dot should then be displayed in the second window, under candle 01. Subsequently, creating a bearish alert will require the use of 2 consecutive bearish signals. _________________________________________________________________________ ALERTS Bullish alert - If each value of the 20 moving average located in the "Zone" is greater than its previous value. - If all price values ​​located in the "Zone" are greater than their respective moving average value. Then, a bullish alert should be created. The indicator should then replace the bullish signal display with a blue bullish alert arrow. ------------------------------------------ Bearish alert - If each value of the 20 moving average located in the "Zone" is smaller than its previous value. - If all price values ​​located in the "Zone" are smaller than their respective moving average value. Then, a bearish alert should be created. The indicator should then replace the bearish signal display with a yellow bearish alert arrow. ________________________________________________________________________________________________________ ________________________________________________________________________________________________________ Moving Averages The indicator will need to search for signals and alerts for multiple moving average values. The values ​​of these moving averages should be selectable by the user in the indicator settings. The values ​​of the other parameters of the moving averages should be: Method: Simple Offset: 0 Apply to: Close Finally, I want to be able to change only the value of the moving average: there is therefore no point in displaying the other parameters of the moving average indicator. There is no point in displaying the moving averages. I would use the platform's moving average indicator. ------------------------------------------ Important >> If the number of moving averages used to search for alerts is greater than or equal to 2, this means that the indicator will be able to detect multiple alerts or signals under the same candle, at the same time. If multiple signals are detected under the same candle, the indicator should display a single signal point under that candle. If multiple alerts are detected under the same candle, the indicator should display a single alert arrow under this candle. Finally, if an alert and a signal are detected under the same candle, only the alert arrow should be displayed. If only signals are detected under a candle, the signal point should be displayed. The display of the alert arrow takes priority. ________________________________________________________________________________________________________ __________________________________________________________________________________________________________ Parameters Order of indicator parameters I want the indicator parameters to be positioned in this order, from top to bottom. I want all "on/off" parameters to be modifiable by double-clicking. 1) The size of the history: "1000" candles by default. 2) Parameter Value of moving averages: 20; 50; 100. Value of previous moving averages: "10". 3) Time Filter Start of Time Filter: 07:00 End of Time Filter: 20:00 4) Alerts Sound Alerts: on by default Arrow Alerts: on by default Alerts in the Alert Board: on by default 5) Colors The colors will have to be set in the "colors" tab. I took a screenshot of the types of alert points and arrows that I want to see displayed. By default, I want the following types of colors, sizes and texts: - For signals Bullish landmark: Blue / size 4. Bearish landmark: Yellow / size 4. - For alerts Bullish alert Arrow: Blue / size 4. Bearish alert arrow: Yellow / size 4. - For the vertical line Vertical line delimiting the end of the history: Gray / dashed / size 4. If there are other colors to set, I let you choose. -------------------------------------------------------------------------------------------------------------------- I think I have covered the details of the indicator that I want to create. If you have any questions, do not hesitate to ask me. Thank you in advance for your work. --------------------------------------------------------------------------------------------------------------------