Specification
Background
It is much clear to look at the attached file.
I’m using Metatrader 4 build 735.
I have 3 different trade accounts; each trading account is displayed in a different Metatrade4 session. It means that there are 3 open MT4 runs on my local PC and each exe display one trade account.
The Robots I use are:
In the 1st account: 4 robots as follow - Robot All-in-one Long for EURUSD, Robot All-in-one Short for EURUSD, Robot All-in-one Long for GBPUSD, Robot All-in-one Short for GBP
In the 2st account: 2 robots as follow - Robot All-in-one Both for EURUSD, Robot All-in-one Both for GBP
In the 3rd account: same as in 2nd account.
for clear detailes please look at the attached file.
I'm asking for 2 short script:
Task 1 - which update the list of Alerts in the MT4 every user define period of time.
this task has 3 parameters
1. User defines: "period of time" in minutes.
2. User defines: "gap" in “Value” in pips.
3. User defines: "taking the Swap in account" is yes or no, take the Swap or not take it in consideration when the script calculates the value in order to have a real positive profit.
Note that the updated list of alerts should cover all open orders and should run separately on each MT4 on my local PC.
This list of Alerts will be updated every given time, external parameter by the user..
The updated Alert list shall follow the user define parameters.
The preferred name for this script is generator_alerts
Task 2 - which calculate the Average TP for some orders opened by the robot and the new SL.
Task 2 is different task, different script,
Task 2 should run independently of task 1.
script 2 has these user define parameters:
1. User defines: "SWAP" yes or no.
2. User defines: "Temporary TP"
3. User defines: required profit for each number (1,2,3,4,,,,10) of open orders/
The preferred name for this script is generator_average