Create Simple EA Grid for MQL5 Technical Task: An EA that does the following: trigger sell orders when the price rises and vice versa when the price falls, starting from the initial price indicated, with the distance indicated and the tp indicated. If the price rises, it triggers opposite orders (Sell orders), based on the price indicated, with the separation indicated and the take profit indicated (either jointly or individually). And if the price goes down, exactly the same, but in reverse (Buy orders). Example: EA Name: Up&Down Up (on/off) Lots: 0.00 Multiplier: 0 StartPrice: 0.00000 DistanceGrid: 000 TakeProfitOrders: 000 TakeProfitSellOrders: 0 Up (on/off) Activate or deactivate function when price rises Lots: 0.00 Number (quantity) of lots, default 0.01 Multiplier: 0 Initial lot multiplier, 0 not active, 1.5; 2 active StartPrice: 0.00000 Price of the first order, with which the grid begins DistanceGrid: 000 Desired distance between orders TakeProfitOrders: 000 Desired distance for tp in points (for each order) TakeProfitSellOrders: 0 Amount of money for the tp (all orders), obviously when this option is activated, the previous one must be 0 (not active) Down (on/off) Lots: 0.00 Multiplier: 0 StartPrice: 0.00000 DistanceGrid: 000 TakeProfitOrders: 000 TakeProfitBuyOrders: 0 Same explanation as everything above OpenOnNewCandle: (True/False) Important: This function is essential, it protects us from market volatility. Complements Distance Grid. Example: If there is a violent movement of 1000 points and we have this activated in the TimeFrame H1, instead of swallowing 5 orders of 200 points, for example, it will place only one order of 1000 points, that is, it has protected us from volatility . When this is activated and we have put a Distance Grid of 200 points, in the next candle, the distance must be equal to or greater than 200 points, if it is less, we will wait for the next candle to place the order. Display in operation and in the Backtest: UP&DOWN Open orders: Buy: Sell: Lots: X Lots Profit today: Profit yesterday: Monthly profit: (In operation, that is reset monthly; in the Backtest, never)