Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 4710
- Rating:
- Published:
- 2024.04.10 11:47
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This script is designed to perform candle analysis:
- Data Retrieval: The script retrieves the open, close, high, and low prices of candles for the financial instrument it is running on.
- Candle Categorization: It categorizes each candle as bullish, bearish, or neutral based on the relationship between its closing and opening prices.
- Amplitude Calculation: It calculates the amplitude of each candle (difference between high and low) and computes the average amplitudes for bullish and bearish candles.
- Identification of Significant Candles: It identifies the 5 most significant candles (highest amplitude) for both bullish and bearish candles.
- Report Generation: It creates a report that includes the number of bullish, bearish, and neutral candles, as well as the average amplitudes and most significant candles.
- Chart Comment: It displays the generated report as a comment on the chart of the financial instrument, allowing the user to easily visualize the analysis conducted.
In summary, the script helps traders understand the distribution and range of candles in a specific period, which can be useful for making informed trading decisions such as determining the Take Profit or Stop Loss levels based on the timeframe or specific symbol.

Counter attack candlestick pattern

Dominant Candle is a a two candlestick set where the wicks intersect each other but body of the candles are either gapped up, gapped down or equal

If you only want to execute your code blocks "only once per bar" it's important to check if there is new bar arrived or not.

This is a basic library to create and manage grids.