Hello! I am currently working on an EA that I built simply with the online EA builder and I’m feeling pretty stuck. The EA will not trade and in backtesting will trade a few days then give this error " Invalid index buffer in iCustom function."
What I’m trying to do is create a simple EA based on the Dynamic Zone RSI indicator that will buy when the middle line is at or below the bottom line and close when the middle line crosses the top line (similar to a standard RSI indicator). It could also open a sell order at or above the top line and close at or below the bottom line.
The main focus of my EA is being able to have adjustable (aka. inputs for) RSI period and RSI bands (part of Dynamic Zone RSI). Also, the EA is able to take profit, stop loss, and have a trailing stop.
One thing I want to figure out later is to have the EA open multiple orders so it’s not just one order at a time and also be able to close individual orders when the above conditions are met (an option that can be turned on or off maybe with true/false logic).
Here is a copy of my EA the way it is now. It’s almost the exact same as created online but with two added variables “RSIPeriod” and “BandPeriod” which I could have incorporated improperly (knowing me).
Any help would be HIGHLY appreciated and maybe I’m taking the wrong route altogether, thanks!