Candle Analysis Report – script MetaTrader 5

Candle Analysis Report - script for MetaTrader 5
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 … Read more

Logarithmic Moving Average – indicator MetaTrader 5

Logarithmic Moving Average - indicator for MetaTrader 5
Quoted from Wikipedia: In mathematics, the logarithmic mean is a function of two non-negative numbers which is equal to their difference divided by the logarithm of their quotient. This calculation is applicable in engineering problems involving heat and mass transfer. Use as is or develop further to serve your purpose Logarithmic Moving Average – indicator … Read more

Simple Code for Detect A “New Bar or New Candle ” Received – EA MetaTrader 5

Simple Code for Detect  A  "New Bar or New Candle " Received - expert for MetaTrader 5
This code block detects a New Bar or a New Candle when it has received.  the basic principle of the codes is very simple. First the code stores the Time of the previous bar / Candle. (Then add 60 seconds (equals to 1 min. you can add time as you want) to the Time of … Read more

Code Block for “Trailing Stop” based on current market price. (Ask / Bid) – EA MetaTrader 5

Code Block for "Trailing Stop" based on current market price. (Ask / Bid) - expert for MetaTrader 5
This code block works if you use either a Stop Loss or Not.  Requirements  You need to include “Trade.mqh ” to get access to the CTrade class which allows you to work with positions and orders. #include <Trade\Trade.mqh> // <<—————————————— Include this “Trade.mqh” to access the CTrade Class You need to set an input parameter … Read more

Harmonic Moving Average – indicator MetaTrader 5

Harmonic Moving Average - indicator for MetaTrader 5
Quoted from InvestopediaWhat Is the Harmonic Mean?The harmonic mean is a numerical average calculated by dividing the number of observations, or entries in the series, by the reciprocal of each number in the series. Thus, the harmonic mean is the reciprocal of the arithmetic mean of the reciprocals. Harmonic Moving Average – indicator MetaTrader 5

Determine Broker’s Daylight (DST) schedule – script MetaTrader 5

Determine Broker's Daylight (DST) schedule - script for MetaTrader 5
Script to determine whether your Broker follows the US, UK or AU daylight (DST) schedule. The script scans the H1 chart bars at the expected dates for the daylight changes, and by comparing the changes in server (bar) times at these bars, the DST schedule of your broker can be determined. DST_AU schedule: server dst … Read more