工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
I want an expert advisor for this indicator mediumtermsaclper indicator.
I WANT TO CREATE THIS INDICATOR’S EA .
I WILL USE IT FOREXAMPLE EURUSD,AUDUSD,GBPJPY , GOLD , DAX FUTURE.
BUY RULE
WHEN IT IS UP ARROW (CLOSED BAR) ,
IT WILL OPEN 1 BUY POSITION, IT WILL BUY WITH THE MARKET PRICE.
WHEN
1 ) IF IT DOES NOT HIT TP OR SL , IT WILL WAIT FOR SELL SIGNAL (DOWN ARROW) TO CLOSE THE BUY POSITION.
2 ) AFTER IT HITS TAKE PROFIT OR STOP LOSS , IT WILL NOT OPEN A NEW BUY POSITION AND THEN IT WILL WAIT FOR SELL SIGNAL(DOWN ARROW).
3 ) IF IT LOST -23 PIPS IN BUY POSİTİON WITH 0.1 LOTS FOREXAMPLE, IT WILL OPEN SELL POSİTİON 0.15 LOTS.IT WILL MULTIPLY LOTS BY 1.5( we wıll set multiplier)
IT WILL TARGET 100 PIPS PROFIT FOREXAMPLE.
multiplier |
LOT |
up |
down |
up profit |
down profit |
profit |
total |
TP |
|
|
arrow |
arrow |
pips |
pips |
profit |
pips |
|
1.5 |
0.10 |
1.16109 |
1.15877 |
-23.2 |
|
-23.2 |
-23.2 |
100 |
1.5 |
0.15 |
1.15864 |
|
|
1.3 |
2.0 |
-21.2 |
100 |
1.5 |
0.23 |
|
1.16036 |
17.2 |
|
38.7 |
17.5 |
100 |
1.5 |
0.34 |
1.16303 |
|
|
-26.7 |
-90.1 |
-72.7 |
100 |
1.5 |
0.51 |
|
1.1639 |
8.7 |
|
44.0 |
-28.6 |
100 |
1.5 |
0.76 |
1.16691 |
|
|
-30.1 |
-228.6 |
-257.2 |
100 |
1.5 |
1.14 |
|
1.17005 |
31 |
|
357.2 |
100 |
100 |
IN THE FIRST POSITION , IT LOST -23.2 PIPS. PROFIT IS (0.10 LOT * -23.2)= -23.2
IN THE SECOND POSITION , IT GAINED 1.3 PIPS. PROFIT IS (0.15LOT * 1.3)= 2
2 POSITIONS TOTAL PROFIT (-23.2 + 2) = -21.2
IN THE THIRD POSITION , IT GAINED 17.2 PIPS. PROFIT IS (0.23 LOT * 17.2)= 38.7
3 POSITIONS TOTAL PROFIT (-23.2 + 2+ 38.7) = 17.5 PIPS
IN THE FOURTH POSITION , IT LOST -26.7 PIPS. PROFIT IS (0.34 LOT * -26.7)= -90.1
4 POSITIONS TOTAL PROFIT (-23.2 + 2+ 38.7 -90.1 ) = -72.7
IN THE FIFTH POSITION , IT GAINED 8.7 PIPS. PROFIT IS (0.51 LOT * 8.7)= 44
5 POSITIONS TOTAL PROFIT (-23.2 + 2+ 38.7 -90.1 +44 ) = -28.6 PIPS
IN THE SIXTH POSITION , IT LOST -30.1 PIPS. PROFIT IS (0.76 LOT * -30.1)= -228.6
6 POSITIONS TOTAL PROFIT (-23.2 + 2+ 38.7 -90.1 +44 -228.6 ) = -257.2 PIPS
IN THE SEVENTH POSITION , IT HITS TAKE PROFIT. IT GAINED +31 PIPS. PROFIT IS (1.14 LOT * 31.4)= 357.7
7 POSITIONS TOTAL PROFIT (-23.2 + 2+ 38.7 -90.1 +44 -228.6 + 357.7 ) = 100 PIPS
IF WE SET TP 100, WHEN TOTAL PROFIT HITS 100 , IT WILL NOT OPEN A NEW BUY POSITION AND THEN IT WILL WAIT FOR SELL SIGNAL(DOWN ARROW).
SELL RULE
WHEN IT IS DOWN ARROW (CLOSED BAR)
IT WILL OPEN 1 SELL POSITION , IT WILL SELL WITH THE MARKET PRICE.
IT HAS TAKE PROFİT AND STOP LOSS VALUES THAT WE CAN SET.
1 ) IF IT DOES NOT HIT TP OR SL , IT WILL WAIT FOR BUY SIGNAL (UP ARROW) TO CLOSE THE SELL POSITION.
2 ) AFTER IT HITS TAKE PROFIT OR STOP LOSS , IT WILL NOT OPEN A NEW SELL POSITION AND THEN IT WILL WAIT FOR BUY SIGNAL(UP ARROW).
*****FOR THE EA OPTIMIZATION****
1 ) WE WILL SET Sensitivity parameter in the mediumtermScalper indicator.We will choose it .
2 ) WE WILL SET TAKE PROFIT parameter.(standart 100)
3 ) WE WILL SET STOP LOSS parameter (standart 400)
4 ) WE WILL SET Lots parameter.(maybe 0.01 lot , or 0.10 lot ) (standart 0.10)
5 ) We will set Multiplier parameter.(maybe 1.5 or 2 or 3 or 1) 1 means no multiplier
6 ) Please add ReverseSignal TRUE OR FALSE.
If Reverse Signal option is True , for example if it is in a buy position,It will sell.
Or if it is in a sell position, it will buy.
Please put this options in the ea for optimization.
AND FOR EXAMPLE
1 ) WHEN I ATTACH THE EA TO THE GRAPH ,FOR EXAMPLE IF THE INDICATOR GAVE SELL SIGNAL 10 BARS BEFORE THE CURRENT BAR ,SO WE MISSED THAT SELL SIGNAL AND IT MUST NOT OPEN A SELL SIGNAL , IT MUST WAIT FOR THE NEW BUY SIGNAL
OR
IF THE INDICATOR GAVE BUY SIGNAL 5 BARS BEFORE THE CURRENT BAR , SO WE MISSED THAT BUY SIGNAL AND IT MUST NOT OPEN A BUY SIGNAL , IT MUST WAIT FOR THE NEW SELL SIGNAL.
2 ) WHEN I ATTACH THE EA TO THE GRAPH ,IF A BUY SIGNAL COMES AND IT BUYS , THEN FOR EXAMPLE 1 HOUR LATER I CLOSE THE MT4 AND OPEN IT AGAIN , IT MUST NOT OPEN A NEW BUY POSITION BECAUSE IT BOUGHT POSITION 1 HOUR BEFORE.IT MUST RECOGNISE THE POSITION IF I CLOSE AND OPEN METATRADER.
3 ) IF POSSIBLE I CAN USE THE EA WITH DIFFERENT EAS IN THE SAME METATRADER PLATFORM.
4 ) IT MUST HAVE MAGIC NUMBERS , I WILL USE THE EA WITH DIFFERENT CURRENCIES IN THE SAME METATRADER PLATFORM.