Job finished
Specification
This EA is a simple buy/sell indicator based on the color of the dots from the indicator. A blue dot indicates a buy signal, and a yellow dot indicates a sell signal.
The EA should open either a buy/sell signal based on the color of the dot upon the close of the candle.
The first option for the EA should be "WaitForOppositeSignal" true or false. The "true" option means that the EA must wait for an opposite colored dot to open a trade. The "false" option means that once the EA is attached it will open a trade based on the CURRENT color of the dot.
IMPORTANT: THE EA MUST WAIT FOR THE COLOR OF THE DOT/CANDLE TO CLOSE. IT SHOULD NOT OPEN A TRADE IF THE DOT OPENS A DIFFERENT COLOR, IT SHOULD WAIT FOR THE CANDLE TO CLOSE BEFORE TAKING THE TRADE. The EA Should close the trade once an opposite signal is triggered and it should then open a trade in the opposite direction.
The additional options should be as follows:
Lot Size:
Break Even Pips:
Stop Loss Pips:
Take Profit Pips:
Session Start Hour:
Session Start Minute:
Session End Hour:
Session End Minute:
Minimum Opposite Dots to Open/Close Trade: (#) This is the number of closed dots required to open/close trades. The default value is set to 1, meaning only 1 opposite colored dot needs to close before opening/closing the trade. A higher value like 2 or 3 would be used to filter trades if price reverses only momentarily, useful for shorter time frames.
Below is a picture indicating valid entries for the EA. PLEASE READ: THE LINE INDICATES ENTRIES BASED ON THE CLOSE OF THAT CANDLE. MEANING THE ACTUAL ENTRY IS AT THE OPEN OF THE CANDLE AFTER THE VERTICAL LINE. THIS IS VERY IMPORTANT, PREVIOUSLY EAs I REQUESTED HAD TRADES OPENING/CLOSING AS THE COLOR OF THE DOT CHANGED RATHER THAN WAITING FOR IT TO CLOSE.
AGAIN: THE TRADE SHOULD BE TAKEN AT THE OPEN OF THE CANDLE AFTER THE VERTICAL LINE INDICATES BECAUSE WE ARE WAITING FOR THE COLOR CHANGE OF DOT TO CLOSE. THE TRADE IS OPEN/CLOSED ONCE AN OPPOSITE COLORED DOT HAS CLOSED. If the EA takes multiple trades as the color of the dot changes within the time frame then it is not working correctly. The EA set on a 5 minute time frame should take trades only at 5 minute intervals, the close of a candle. I shouldn’t see trades being taken at ex: 2:43, 2:41, 2:44, etc.
IF THE CURRENT TREND IS A BUY (BLUE DOTS) AND THE NEXT CANDLE OPENS WITH A YELLOW DOT, THE EA SHOULD NOT OPEN A SELL TRADE UNTIL THE CANDLE CLOSES WITH A YELLOW DOT BECAUSE THE COLOR OF THE DOT MAY CHANGE WITHIN THAT TIME INTERVAL
THE EA SHOULD BE CODED USING THE FOLLOWING SETTINGS FOR THE INDICATOR, IT DOES NOT REPAINT.
Attached is the indicator. This should be a relatively simple EA to code however it is critical that entries are based on the close of candles/dots and not as the color is changing within the time frame.