The indicator forecasts high and low price values of a financial asset considering yesterday's (completed) and today's day candlesticks parameters.
Tomorrow's price range X depends on the current day Close and Open prices ratio.
Three relations are possible among them:
if Сlose < Open , then Х = (High + Low + Close + Low ) / 2;
if Сlose > Open , then Х = (High + Low + Close + High) / 2;
if Сlose = Open , then Х = (High + Low + Close + Close) / 2.
Anticipated low price for tomorrow: Min = X - High.
Anticipated high price for tomorrow: Max = Low - X.
The indicator has been written based on the book "Forex from the first person. For beginners and professionals" (А. Vedikhin, G. Petrov, B. Shylov).
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/565
BrainTrend1 and BrainTrend2 are placed in one minimized window to remove excessive elements from a chart workspace. BrainTrend1 (upper square dots) is a basic trend indicator, while BrainTrend2 (lower round dots) is a confirming indicator.LeManTrend
LeManTrend determines a trend position based on the current price and high and low prices for three periods.