Develop EMA Threshold

Specification

Microsoft Word - EMA Threshold EA.docx

EMA Threshold
Using an Exponen-al Moving Average (Length and Source user defined), create an EA with the following

specifica-ons:

a. Entry Points:
The user can define a THRESHOLD (in $) – let’s say 11$ on US30.

- Long Entry: Open a long trade and close all short trades when the price crosses over the EMA value + THRESHOLD which is 11 USD (user defined). For example, EMA = 33200 and the price crosses over that value (EMA), as soon as the price crosses over 33211 a long posi-on is opened, and all short posi-ons are automa-cally closed.

- Short Entry: Open a short trade and close all long trades when the price crosses under the EMA value - THRESHOLD which is 11 USD (user defined). For example, EMA = 33200 and the price crosses under that value (EMA), as soon as the price crosses under 33189 (33200-11) a short posi-on is opened, and all long posi-ons are automa-cally closed.

b. Trades, Lots, Stop Loss, and Take Profit:

- The EA should allow up to 3 parallel trades with the ability of disabling trade #2 and / or trade #3. These trades should be executed in the order of priority: Trade 1 (highest), Trade 2 (second), Trade 3 (third).

- For each trade, users should be able to define specific LOTS.

- For each trade, users should be able to define specific take-profit points. If the take-profit is set to zero, no take-profit point will be set.

- Users should be able to enable a trailing stop (pips based) on each trade individually. This should be ac-vated when the price moves in the trade direc-on with a certain pips value and then follow the price using a user defined trailing step.

- Stop loss should be automa-cally calculated and entered using EMA and the user defined THRESOLD. Example: for the long posi-on described above (opened at 33211) should have a Stop loss at EMA – THRESHOLD (33200-11=33189). Example for the short posi-on described above, opened at 33189 (33200-11) this posi-on should have a stop loss set at EMA + THRESHOLD (33200+11=33211)

c. Trade Closure:

When a short condi-on is met, all open long posi-ons should be closed immediately before opening short posi-ons, irrespec-ve of their profit or loss posi-on. The same applies when a long condi-on is met, where all short trades are closed before opening long trades.

d. Control Measures:

The maximum number of trades that can be opened at any given -me is three (user defined input).

The EA should also have a user defined trading interval (i.e. ability to define the trading interval in such a way that the EA trades only Mon-Fri between 09:00 CET to 22:00 CET)

As a last request I would like to add the following:

I want the EA to count the trades made and distinguish them into winning and losing trades. This can be done (in my opinion) in two ways:
Variant 1: to keep track of the trades that reached the TP
Variant 2: to remember the trades that were closed at TP or manually on profit.

*in my opinion the best option is to calculate/remember the trades that were closed on profit (any value greater than 0)

Here we want to have a function where we define a number (greater than 0).
example: if we select 1 it means that the EA will work until we have a trade closed on profit (taking into account lost trades).

concrete example: we have 3 consecutive trades with SL, followed by 4 consecutive trades with TP/closed on profit. This is the case where the function we discussed above is activated, i.e. selecting variable 1.

if we have 3 consecutive trades closed on SL followed by 5 consecutive trades closed on TP then the result is 2.

And so on...
This is the functionality of this variable.

I gave the example of consecutive trades, but they may not be consecutive, in which case this rule works until it is fulfilled.

This means that the EA in some cases may work for 1 hour or 2 hours or 30 min or even the whole day. The EA will work until it fulfils this condition: the essential condition is that the number of trades closed at TP/manual on profit is higher than the number of trades closed at SL.
When the rule has been fulfilled the whole EA must stop executing any trades, then restart the second/third day (in case of weekends) under the same conditions.

Thanks,


Responded

1
Developer 1
Rating
(153)
Projects
215
21%
Arbitration
14
64% / 21%
Overdue
1
0%
Loaded
2
Developer 2
Rating
(85)
Projects
105
24%
Arbitration
8
38% / 25%
Overdue
8
8%
Loaded
3
Developer 3
Rating
(90)
Projects
110
37%
Arbitration
8
88% / 0%
Overdue
0
Working
4
Developer 4
Rating
(5)
Projects
4
50%
Arbitration
4
0% / 75%
Overdue
0
Free
5
Developer 5
Rating
(37)
Projects
59
27%
Arbitration
25
20% / 52%
Overdue
10
17%
Working
6
Developer 6
Rating
(68)
Projects
77
8%
Arbitration
33
9% / 55%
Overdue
6
8%
Working
7
Developer 7
Rating
(236)
Projects
418
34%
Arbitration
52
37% / 40%
Overdue
153
37%
Busy
8
Developer 8
Rating
(2422)
Projects
3042
66%
Arbitration
77
48% / 14%
Overdue
340
11%
Working
9
Developer 9
Rating
(363)
Projects
389
70%
Arbitration
3
100% / 0%
Overdue
2
1%
Loaded
Similar orders
So i have copier EA. The idea is the EA will triggered through manual OP by user via mobile or whatever platform. Let's say 0.01 lot to trigger it. After the EA takes master's position, the EA will be standby mode. If the master take more OP, the EA still not take the master's position (OP) until the user input manually once again via mobile for another 0.01 lot. Since this is a MT4 EA, Whenever user want to close
preciso de um robô com duas médias móveis, uma exponencial high e uma exponencial low. preciso também ter a opção de utilizar e todos os tempos gráficos e alterar os parâmetros das médias. entrada de compra será feita quando um candle de alta romper e fechar a cima da média high e fechará a posição quando um candle de baixa romper e fechar a baixo da média low. a venda será feita quando o candle de baixa romper e
Description - An expert advisor(s), placing sell trades in EUR/USD, based on the close price of the previous two candles, as shown in the figure below. The trades would be made in the 5 minute, 1 hour, and 1 day timeframes. In the 5 minute and 1 hour timeframes the market orders would be placed at the start of a new candle, at specific times EST. The order would be cancelled at the close of that candle, i.e after 5
Greetings, As the title suggests, I am trying to convert an indicator that calls itself via an iCustom call like this. iMAArray_Buffer[loop_1] = iCustom ( NULL , Selected_TF, MQLInfoString ( MQL_PROGRAM_NAME ), "calculate" , RPeriod, MType, MPeriod, 1 , shift); Full code will not be provided, only the position that needs fixing. I cannot get this working in MQL5 but the original code runs smoothly in MQL4. Please
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
Greetings great developer, I am in search of a highly skilled developer to assist with an exciting project. I need to convert two open-source TradingView indicators to NinjaTrader 8 and implement a usage restriction based on computer IDs. If you have experience with NinjaTrader 8 coding please let me know. I’d be happy to discuss the details further
Greetings great developer, I am in search of a highly skilled MQL5 developer to assist with an exciting project. I need to convert two open-source TradingView indicators to NinjaTrader 8 and implement a usage restriction based on computer IDs. If you have experience with NinjaTrader 8 coding please let me know. I’d be happy to discuss the details further
Hi, I need a robot, which wil get instructions to trade in 3 symbols at the same time based on few parameters and calculations. Example: There is 1 symbol called Gold-Near and the rate for it is 1000-1002 If i specify that when the rate reaches 1050, it should sell 1 lot Upon execution it will have to sell 1 lot of cme gold, buy 3 lots of mcx gold and buy currently (lots will be based on calculation). All the
Trading bot 300+ USD
We need bot that trades when medium and low impact news hits It will release pending order both directions few min prior to news impact And will have certain risk management strategy attached Example If Monday and Tuesday news successful clears profits It will reduce risk for next news events until new week starts each week message on tg: Dstatewealthtrading NOTE: 4 YAERS OF EXPERIENCE UPWORD, YOU MUST BE A

Project information

Budget
31 - 51 USD
VAT (19%): 5.89 - 9.69 USD
Total: 36.89 - 60.69 USD
For the developer
27.9 - 45.9 USD
Deadline
from 1 to 3 day(s)