Lavoro terminato
Specifiche
Please read the requirements carefully. Also, I require you to test the EA before you send it. If the EA has bugs which you should have caught during testing, I won't give a 5 star rating. Here the requirements. If you have read them and understand them and can program such an EA, I'm happy to receive your offer. Thank you.
EA Requirements
General:
The EA should only have one open order at a time.
The EA should only open a buy order if MACD (main line) is above 0 and price is higher than it was “j” minutes ago (j should be a changeable parameter)
The EA should only open a sell order if MACD (main line) is bellow 0 and price is lower than it was “j” minutes ago (j should be a changeable parameter)
The EA needs to take Swaps into account when calculating the amount in currency used to determine “Stop Loss” and “Take Profit”. It should only consider the profit or loss created by this EA. Not any other EAs which might be running.
PARAMETERS
A = Initial lot size
(For example .1)
B = Initial TP (in currency)
(For example: 100 USD)
C = Initial SL (in currency)
(For example: -100 USD)
D = Amount to multiply “Stop Loss in currency” by after SL has been hit.
(For example: 2. Then if SL is hit, the new SL for the new order will be -200 USD =2* -100)
E = Amount to multiply “Stop Loss in currency” by after TP has been hit.
(For example: 2. Then if TP is hit, the new SL for the new order will be -200 USD =2* -100)
F = Amount to multiply “Take Profit in currency” by after SL has been hit.
(For example: 2. Then if SL is hit, then the SL in currency will be 200 USD = 2*100)
G = Amount to multiply “Take Profit in currency” by after TP has been hit.
(For example: 2. Then if TP is hit, then the SL in currency will be 200 USD = 2*100)
H = Amount to multiply “Lot Size” by after SL has been hit.
(For example: 2. Then if SL is hit, then the new Lot Size will be .2 = .1*2)
I = Amount to multiply “Lot Size” by after TP has been hit.
(For example: 2. Then if TP is hit, then the new Lot Size will be .2 = .1*2)
J = Minutes ago price reference
(For example: 5 Minutes ago)
K = If active then if TP is hit, then lot size, initial TP (in currency) and initial SL (in currency) should return back to their original values (A, B, and C) regardless of the other settings.
I = If active then if SL is hit, then lot size, initial TP (in currency) and initial SL (in currency) should return back to their original values (A, B, and C) regardless of the other settings.
J = If active then If TP is hit all trading should be stopped regardless of the other settings
K = If active then If SL is hit all trading should be stopped regardless of the other settings