You will be adding auto trade feature to a existing ea
Add new feature “Trade times” = Ea will only trade during selected time EX: 4:30 to 18:30
Add new feature “Trade max”= Number of trades ea can take in selected trade time window EX:3
Add new feature Hedge After a trade is set to be Ea can trade the next buy or sell sequence as long and the trade is in the opposite direction of a better position if in same direction as trade that was set to be
Add new feature auto trade ea will take up to 3 trades in selected trade window and only trade during selected window
Ea can trade up to 3 time default in a attempt to make a profit. Once a profit is made ea can no longer trade in that trade window AND MUST WAIT FOR new trade window to open. Ex Trade time set from 8:30 to 18:30 First trade ea takes looses at 10:30 second trade ea takes wins at 14:30 Ea can no longer trade until the new window at 8:30 begins
Sell sequence : Bar closes up (blue) at price 1.3135 and time 9:30 and the next bar closes down (red) at 1:1010. These 2 bars have now created a sell sequence. The next time a bar closes down (red) after touching 1:30 Ea can now enter a sell trade at the close of that bar. If at any time a buy bar (blue) opens above 1:30 of a sell bar (red) closes above 1:30 this sell sequence is no longer valid and EA ,must look for another one. EA will use all buy or sell sequences that are higher highs or lower lows as long as history can be download in mt4 . Example no sell sequences can be uses under 1:30 unless them came after the time of 9:30 Old sell sequences cannot be used unless they are higher than 1:30.
Buy sequence is the exact opposite Bar closes down red at price 1.4100 and next bar closes up blue . at price 1.4200. The next time price closes up (blue) after touching 1.4100 ea can now enter a trade.
Ea already has trade management feature and will automatically set a trade to be after a certain profit if this occurs ea. can now trade with a new buy sequence or sell sequence