Termos de Referência
I want to build an EA that give me bias Longs only OR Shorts Only, and recommends Buy or Sell If conditions are met.
I want to have the right and the original code for the EA.
Conditions:
Longs Only
- 1) 1 hour chat EMA 50 above EMA200, AND Price above 200 EMA (Must meet this criteria)
- 2) Previous 4H candle closed Bullish? (Must meet this criteria)
- 3) Calculate the Average Daily range, have price moved up >33% of the Average Daily range on the current D1 candle? (I want to be able to adjust this settings)
- 4) Calculate the Average 4H range, have price moved up >33% of the Average 4H range on the current 4H candle? (I want to be able to adjust this settings)
- 5) Previous 1H candle closed Bullish?
- 6) Calculate the Average 1H range, have price moved up >=33% of the Average 1H range on the current 1H candle? (I want to be able to adjust this settings)
- 7) 5 minutes chart EMA20 above EMA50, 50EMA above 200 EMA. Price above EMA50
Shorts Only
- 1) 1 hour chat EMA50 below EMA200, AND Price below EMA200 (Must meet this criteria)
- 2) Previous 4H candle closed Bearish? (Must meet this criteria)
- 3) Calculate the Average Daily range, have price moved down >= 33% of the Average Daily range on the current D1 candle? (I want to be able to adjust this settings)
- 4) Calculate the Average 4H range, have price moved down >=33% of the Average 4H range on the current 4H candle? (I want to be able to adjust this settings)
- 5) Previous 1H candle closed Bearish?
- 6) Calculate the Average 1H range, have price moved down >=33% of the Average 1H range on the current 1H candle? (I want to be able to adjust this settings)
- 7) 5 minutes chart EMA20 below EMA50, EMA50 below 200 EMA. Price below EMA50.
Draw a line at the D1 opening price. Visible on all timeframes below D1.
Draw a line that is 33% of the expected Daily range above and below the opening price. Visible on all timeframes below D1.
The EA will assign a value that sums to 100% to the set of conditions. Sums of the conditions met to be displayed in dialog box
Conditions 1 and 2 must be met for Long or Short Bias.
5/7 conditions must be met to recommend buys or Sells. (Including Condition 1 and 2)
When Bias is long, Change chart background to green. I want to be able to change the color, a message that says Longs only.
When Bias is short, change background color to light red. I want to be able to change the color, a massage that says shorts only
Will need a dialog box with : Currency Pair name, Expected daily range, current D1 range, difference between Expected range and current D1 range, Current D1 High-Open, Current D1 Low-open.