Spezifikation
Hi,
Good morning: Thanks for looking at my requirement:
The objective of the EA is to do some updates in the Main EA (limit order)
I have an EA, which places limit order, by reading a text file in the specified folder.
Limit Order EA:
The EA reads:
AUDJPY, BUY, 100.52244, 100.34927, 09/10/2025, 05:45, 09/10/2025, 06:45, 0.17318, 100.91209, 0.09, 100.65232
PAIR, DIRECTION, LIMIT PRICE, SL PRICE, START DATE, START TIME, END DATE, END TIME, SL PIPS, TP PRICE, LOT SIZE, DELETE PRICE.
--------------------------------------------------------------------------------------------------------------------------------------
Update 1:
Make this EA to work in tester mode to test the following conditions easily without waiting for all occurrences on live. (if that’s possible on MT5, we can migrate it to MT5 from MT4 as well)
--------------------------------------------------------------------------------------------------------------------------------------
Update 2:
The EA reads files from just one folder and I have to place It in many terminals to do so.
Need to change it in a way, that it reads at least 5 folders.
File Folder Name: APAIRS1, BPAIRS1, CPAIRS1
Magic Number: 501,502,503
Trade Comments: MAA, MAB, MAC
If the above update is done, we need not need to run multiple EA and same EA can read across different folders and place limit orders accordingly.
(No inputs needed for this, as it is will be used as a string)
--------------------------------------------------------------------------------------------------------------------------------------
Update 3:
Risk Multiplier: 2
File Creation Account Size: 1000
Now, for every order being placed, check the account balance:
Let’s say, if the account balance is 2500 (read from terminal)
Now, when a trade lot is mentioned as 0.02 in the file.
Trade Lot/Balance: - 0.02/1000 = 0.00002
Now Multiple with Account size = 0.00002 * 2500 = 0.05
Since Risk Multiplier is 2, 0.05 * 2= 0.1
So, the same trade will be placed at 0.1 lot while the file it is printed as 0.02.
This way, I can use the compounding effect in live market, without updating the lot size in file creation.
Input Needed: For Update 3:
File Creation Lot Size: 1000
Risk Multiplier: 2
--------------------------------------------------------------------------------------------------------------------------------------
Update 4:
Delete Price:
If limit orders are not triggered, once the price reaches the delete price, the trades will be deleted.
Input Needed: For Update 4:
Enable Breakeven: True/False
ATR Multiplier: 1
If the trades are triggered and the delete price is triggered, move the SL to its entry price with ATR Multiplier (to cover commissions)
This Breakeven should happen only once, i.e., once the price reaches above the delete price, the trade will reach breakeven and we should not change it back to previous level, if price comes down the delete price.
If Entry Price:100 and ATR: 5, ATR Multiplier: 1. So 5*1 = 5, So, breakeven level for buy will be placed at 95.
Note: ATR should be calculated based on the trading symbol. Not the EA symbol.
--------------------------------------------------------------------------------------------------------------------------------------
Update 5:
TP Trailing Level:
The Existing TP will be sent to the broker as a Target Level. This is just a safeguard if EA/server fails.
In the Text File Created, there will be another input added after the delete price for Trailing TP.
For e.g.: Buy Entry at 100. TP in File: 300 Trailing TP:200
So, 300 will be assigned as a Target for Broker
But once it reaches 200, the Trades will be trailed.
Input Needed: For Update 5:
Enable TP Trailing: True/False
ATR Multiplier: 1
Once, TP level i.e. 200 is achieved, push to SL to below the candle + ATR pips for Buy and trail it for every candle. (based on the trade symbol) and not the chart symbol.
--------------------------------------------------------------------------------------------------------------------------------------
Update 6:
Input Needed: For Update 6:
Average RR Close Per Pair: 3
ATR Multiplier: 1
RR can be calculated by the simple method: for buy:
(Current Price – Entry Price)/ SL pips
SL Pips is there in the trade comments itself.
For e.g.: If multiple EURUSD Buy is happening, do the above calculation for every running trade and do the average, and if the average exceeds 3, trail the all the trades of EURUSD, by keeping the SL below the candle.
Note: Once, the average hits, trailing will be started and once trailing started, no changes on stoploss back to original place. It should trail, as the candle goes up.
Pending Orders will have no affect to this.
--------------------------------------------------------------------------------------------------------------------------------------
Update 7:
Input Needed: For Update 7:
Asian Session Start: 04:00
London Session Start: 09:00
US Session Start: 15:00
Average RR for all running trades: 3
Restart by: Immediate/Next Session/Next Day
--------------------------------------------------------------------------------------------------------------------------------------
The concept of Average Calculation is same as above, but only difference is instead of a single pair, it should calculate for all the pairs, and once the average hits, new trades should start to place, based on the above inputs.
If trades are closed at 12:00, new trades are allowed only after 15:00. And no limits are allowed to be placed in between 12:00 – 15:00. This should close even the pending orders as well.