This is not my code, but a conversion from an MT5 code here
There were requests for this to be converted to MT4.
The formulae used are:
Resistance 3 = High + 2*(Pivot - Low)
Resistance 2 = Pivot + (R1 - S1)
Resistance 1 = 2 * Pivot - Low
Pivot Point = ( High + Close + Low )/3
Support 1 = 2 * Pivot - High
Support 2 = Pivot - (R1 - S1)
Support 3 = Low - 2*(High - Pivot)
It's an expert to open and close orders on a specific day and time. Expert open and close orders only with the same symbol attached. For more information, please visit product's page: https://www.mql5.com/en/market/product/44939X Man
"X Man" EA uses Equity Stop from total Equity, you can use it as hedging grid EA or a single trade EA.