GridTrading Algorithm at volatile market – EA MetaTrader 4

The input parameters are: Tp – this is a number, and the robot will take profit when Tp*Invested money is reached in profits (recommend 0.01-0.1). SlowMovingAverage is the period of a moving average, trying to decide the trend. The Multiplier is the factor of the volumes, the next order in the Grid will be placed with a Multiplier* Last order size volume. TimeFrame is the TimeFrame in Minutes. (recommended : 1 hour- 60 or 15Min- 15).

The Expert Advisor includes a TotalOrderLots() function, which returns all of the used lot amounts. A CalcMaxLot function, returning the maximal amount of lot one can trade. A CalcGridLot function which returns a starting Lot with the given parameters for a security.  The Bearish and bullish engulfing functions are returning a true value if one of the candlestick pattern happens. OpenOrderProfits function returns all the Profits of the open orders. CloseallOrders closes all orders( checking multiple times).

Alternative:  Skyscraper_Fix_x10 - indicator MetaTrader 5

The EA places grid orders based on the atr values.

    📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks