Job finished
Specification
I summarize all following requirements:
PART 1: CREATE SIGNAL
1/ I want an EA that have following input parameters:
2/ When running, the EA looking is like this:
If RSI is below oversold level, mark it green. If RSI is above overbought level, mark it red.
3/ The alert works when it meets these conditions
The idea is that it only alerts/pushes notification if RSI is above the overbought level whereas symbol’s price is at upper band of Bollinger Bands (BB); and vice versa.
I describe the conditions in case BUY signal will be fired, SELL signal is opposite.
BUY signal fires when:
1. When RSI crosses oversold level, EA notices and checks BB until following conditions are met.
2. After there was a bull(green) candle formed up completely and BB lower band CUTS THROUGH that candle OR the whole candle is below BB lower band, EA fires alert.
3. The bull candle don't need to form right after RSI crossed level. When RSI crossed level, EA should remember and check BB continuously to find the right green candle.
These are some examples:
4/ It only alerts once when condistions are met. The alert only fires again if RSI goes back into oversold-overbought zone and crosses again
5/ The text in app’s notification looks like: <symbol>_<timeframe>_BUY/SELL
For example: EURUSD_M5_BUY GBPUSD_M1_SELL
PART 2: CHECK BREAKEVEN
I usually use hedge orders to cover losing order. I need to keep track if these orders are breakeven to close all.
For example: I buy 1 lot EURUSD order, after that I create another 2 lot EURUSD order if price decreases. I need EA tracks if the sum of these 2 orders is breakeven and notifies me via my app.
EA will sum all orders of a symbol including commission/swap to broker and anything to be sure that the sum of symbol’s orders is 0.
EA will notify via my app once time.
Text is: <symbol>_BREAKEVEN
For example: EURUSD_BREAKEVEN