Lavoro terminato
Specifiche
I use Meta4 ver. 4.00 Build 646
Please find attached file.(Oh! Word file cannot be attached...)
We use 1 custom indicator, ‘ozymandias’. I have only the ex4 file, not a code.
It is from https://www.mql5.com/en/market/product/3316
This indicator has one Input value: ‘Amplitude’.
(see pic1)
I need 1 indicator and 1 EA.
The Indicator:
Indicator’s name: Strategy 1 – Indi
I want to have in a separate window, all the signals of this Indicator as a colored bar of all Time Frames. Of course, I can choose which Time Frames to see.
It should look something like below: (Red => bearish, blue => bullish)
(see pic 2)
If current TF is M1, and I have chosen M1, M5, M15, H4, then it should look like below:
M1:
M5:
M15:
H4:
ð Meaning: At current bar, when I turn to M1, it is bullish, when I turn to M5, it is berish,
When I turn to M15, it is bullish, when I turn to H4, the Indicator is bearish.
If current TF is M5, and I have chosen M15, and H1, then it should look like below:
M15:
H1:
If current TF is H1, and I have chosen M1, M15, H4, D1, then it should look like below:
M1:
M15:
H4:
D1:
ð I don’t know, if this is possible. If only the grater or equal H1 Time Frames are possible, it’s also OK. (Please, let me know.)
Inputs:
M1(false): only the as ‘true’ chosen TFs should be seen.
Ampulitude_M1(2):
M5(false):
Ampulitude _M5(2):
M15(false):
Ampulitude _M15(2):
M30(false):
Ampulitude _M30(2):
H1(false):
Ampulitude _H1(2):
H4(false):
Ampulitude _H4(2):
D1(false):
Ampulitude _D1(2):
W1(false):
Ampulitude _W1(2):
MM(false):
Deviation_MM(2):
The EA:
Name: Strategy 1
Idea: Mainly, we will use the above indicator ‘Strategy 1 - Indi’ to trade.
We can use 4-digit Broker and 5-digit Broker. In the Input, 20 means 20 pips. It is better, if this can be automatically adjusted depending 4-digit or 5-digit Brokers. But, it’s not a must.
Inputs:
1) Same Inputs as the Indicator:
M1(false):
Ampulitude _M1(2):
…
MM(false):
Ampulitude _MM(2):
2) More Inputs:
Trading_Mode(0):
Trading_Mode = 0 => We trade only with the signals. We use no Profit Target, Stop Loss. We enter and exit on close, only following the signals (Indicator).
- Long Enter: If chosen TFs are all Long, we go long. (Here, I’ll input so that the shortest TF = current TF)
- Short Enter: If chosen TFs are all Long, we go long. (Here, I’ll input so that the shortest TF = current TF)
- Exit: We exit our Position, if 1(or more than 1) of the chosen TF change its signal.
Trading_Mode = 1 => We trade the ‘N bar Trading’. Here we need 2 more variables:
Nbar_Enter_Limit(20): We go long, if all the chosen TF indicates long(blue bars). If by closing of current bar(say C = 1.3000) we have long signal, then we go long at the Price 1.3000 – 20 pip = 1.3980 with a Limit Buy Order. This Order is valid only during the next bar. Going short is similar.
Nbar_Profit_Target(50): The Profit Target is 50 pips.
Nbar_Stop_Loss(40): You know, what I mean.
Nbar(1):
Nbar = 1 => We hold a Position only 1 bar long. So, we exit on this Entrybar’s Close(= Openprice of the Next Bar). Of course, before Closing of this bar, we can exit with Nbar_Profit_Target or Nbar_Stop_Loss.
Nbar = 2 => We hold a Position maximal 2 bar long. So, we exit with a Profit Target, or Stop Loss, or by Closing of the 2nd Bar since the Entry.
Nbar = 7 => You know, what it means.
For Friday Closing Out: I’ll give here the Broker Time. Say, my Broker ends Friday at 15:00
Friday_Closing_Hour(14):
Friday_Closing_Minute(40): We exit all the Positions at Friday 14:40 (Broker Time, 20 min. before Weekend). And We do not enter a Position until Monday.