There are 2 EA that are buggy and need to be revised.
EA #1 ADR EA (I've also attached the indicator "ADR Alert" for reference)
RULES
The EA operates by initiating trades based on confirmed fractals that occur within specific dynamic envelope ranges derived from the Average Daily Range (ADR). For a long trade, the EA waits for a confirmed down fractal, which is established after two subsequent bars close following the fractal bar. The crucial condition is that the low of the fractal bar must have opened inside the lower ADR envelope range, meaning it is between the lower envelope's upper and lower bounds. When these conditions are met, the EA places a buy order with a stop loss set a specified number of points below the lower envelope's lower bound to manage risk effectively.
For a short trade, the EA looks for a confirmed up fractal where the high of the fractal bar opened inside the upper ADR envelope range—again, between the envelope's bounds. Upon confirmation, the EA initiates a sell order with a stop loss placed a certain number of points above the upper envelope's upper bound. Additionally, the EA employs a trailing stop mechanism that activates once the trade moves in profit by a predefined percentage of the ADR. This trailing stop adjusts the stop loss level to lock in profits as the market moves favorably, ensuring that potential gains are protected while allowing the trade to continue benefiting from positive market movements.
Requirement
A -Currently the ADR EA is buggy and does not follow these above rules. Sometimes it takes a trade inside the envelope sometimes not. To be able to back test it we need to generated the 3 upper lines and 3 lower lines on the chart while back-testing. I tried adding the indicator to a tester template but when I back-test it generates levels that don't seem to match. So the requirement is;
A: debug the trades
B: generate the indicator on chart while back-test so we could visually test.
C: Allow to adjust the size of the envelope differently. the envelope can be wider on one side then the other. ie: envelope above line =100 points envelope below line =200 points. Say the level is at 100. this would mean the lower line would be at 300. and the upper line at 200.
D : add 3 moving averages in the input dialogue. add type for each and period. If any of them are set to true the condition is take trade Above for long Below for shorts.
EA#2 stox transaction EA (indicator that was used to create EA (quadAlertEAModified_V3)
RULES
to trigger a trade the EA checks that THE %D OF all selected stochastic indicators (up to four, based on user selection) have readings below a specified lower level (typically 20) within a defined lookback period. This condition suggests that the market is oversold and may be poised for a bullish move. If the conditions are met, it looks for a confirmed fractal on the low of the price bar (at shift 2), indicating a possible reversal point. It takes the trade if there are no existing open positions for the symbol and magic number, the EA proceeds to place a buy order.
Upon entering a trade, the EA sets a stop loss a certain number of points below the fractal low, as determined by the StopBuffer input parameter. This helps to limit potential losses if the market moves against the position. To manage the trade and protect profits, the EA implements a trailing stop based on a percentage ( TrailingADR ) of the 14-period Average Daily Range (ADR). As the market moves in favor of the trade, the trailing stop adjusts accordingly, locking in gains while allowing for normal market fluctuations. The lot size for each trade is specified directly through an input parameter ( LotSize ), giving the user control over position sizing based on their risk management preferences.
Requirement:
A: Also buggy Sometimes takes trades When all %D are not below 20. I think it is a bug derived from the indictor code. Developer needs to review code and debug. Also fix any other issue you might find.
B: provide a way to visual backtest
C: add 3 moving averages in the input dialogue. add type for each and period. If any of them are set to true the condition is take trade Above for long Below for shorts.