mirror of
https://github.com/raa251/Liquidity_Predator.git
synced 2026-07-06 13:42:02 +00:00
15 lines
300 B
MQL5
15 lines
300 B
MQL5
|
|
bool M_DojiCandle(MqlRates &CDL, int Percentage)
|
||
|
|
{
|
||
|
|
double candleSize = CDL.high - CDL.low;
|
||
|
|
double Body = MathAbs(CDL.open - CDL.close);
|
||
|
|
double BodyPercent = (Body / candleSize) * 100.0;
|
||
|
|
|
||
|
|
if(BodyPercent <= Percentage)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
}
|