Specification
Hello please my budget 30$
I need to modify my EA and make new simple EA
Modifying Range EA
Add another point above the range 0=OFF, if the ask price is near the highest of the range, in this case the EA does not send pending order BUY STOP, in this situation, the EA will use, another point above the range 0=OFF.
Add another point below the range 0=OFF, if the bid price is near the lowest of the range, in this case the EA does not send pending order SELLSTOP, in this situation, the EA will use, another point below the range 0=OFF.
Add close all positions in the final trade day of the month in (( True/False or 0=OFF )) HH:MM, The EA must read the calendar, To see the final trade day of the month, for example final day of the month of July is 31 in calendar, If the 31 falls on a Sunday, That mean the final trading day of July will be in Friday 29, So the EA must close all positions in 29 of July and reset everything.
Add don’t trade specific day every month True/False, if true, for example, if I entered 22, That mean the EA will ignore trade in 22 every month and keep all functions of the EA work except opening new positions in this specific date.
New EA MACD must work in method:
First method
The EA work with time frame and start time and close time, For example 1 minute time frame, Start time 17 PM and close time 18 PM, The EA in start time see the close first 1 minute candle in MACD histogram if the histogram above the 0 line then the EA open buy position FIRST fixed lot for example FIRST fixed lot 0.01 if second candle closed above the 0 line open another fixed first lot 0.01 buy if third….. till we reach TP or SL or close time with profit or loss.
If the price goes in the opposite direction and go below the line 0 and first candle close below 0 line, the EA must open Second fixed lot position, and still open every candle closed below 0 line, till we reach TP or SL or close time with profit or loss.
If the price goes in the opposite direction and go above the line 0 and first candle close above 0 line, the EA must open Third fixed position, And still open every candle closed above 0 line, till we reach TP or SL or close time with profit or loss.
If the price opposite…. Till we reach 10th final fixed lot position.
Second method
The EA work with time frame and start time and close time, For example 1 minute time frame, Start time 17 PM and close time 18 PM, The EA in start time see the first candle closed opposite side and first 1 minute candle in MACD histogram if the histogram above the 0 line then the EA open buy position FIRST fixed lot for example FIRST fixed lot 0.01 if second candle closed above the 0 line open another fixed first lot 0.01 buy if third….. till we reach TP or SL or close time with profit or loss.
If the price is in the opposite direction and go below the line 0 and first candle close below 0 line, the EA must open Second fixed lot position, And still open every candle closed below 0 line, till we reach TP or SL or close time with profit or loss.
If the price goes in the opposite direction and go above the line 0 and first candle close above 0 line, the EA must open Third fixed position, And still open every candle closed above 0 line, till we reach TP or SL or close time with profit or loss.
If the price opposite…. Till we reach 10th final fixed lot position.
TP and SL in $, for example TP=50$ and we have 15 opened positions the EA must read profit in terminal if ALL POSITIONS REACH 50$ THEN THE EA MUST ALL POSITIONS IN ONE CLOSE NOT position after position, like when we close All open positions at once from terminal see the picture, SL work same as TP
Input :
Trade comment
Magic number
Time frame
Start time HH:MM
Close time HH:MM
TP=$
SL=$
First method True/False
Second method True/False
First fixed lot
Second fixed lot
to
Tenth fixed lot
MACD input
Fast EMA
Slow EMA
MACD SMA
Apply to
You should remove from code any license or expiration date
Looking for clean code with zero error and zero warning, And I need everything's work, in strategy tester.