Работа завершена
Техническое задание
I have a simple request of modifying 1 pre-made indicator as followings below.
Firstly, take a look at below image, please.
Above image shows options in parameter.
As you can see, it shows boxes and
lines on chart.
I need an option to display boxes and lines on chart or not because boxes and lines are not necessary in system.
But I need
values of the boxes and lines to calculate.
So, the default setting is “False”.
1. There will be an option in parameter as followings below.
Boxes and Lines Display False
With above “False”, it will not display boxes and lines and texts on chart, but it will show the values of the boxes and lines in data window.
I
think this work should be done likely as previous work –“OIH_TrendLines_v1.1”.
As you know well, “OIH_TrendLines_v1.1” was coded well
to distinguish lines and values, so that it shows only values in data window without lines.
2. Text formation changed
** 1.12345 is an example of price, and (+12p) is also an example of pips
I changed
basic information with those as followings below.
And I made new text formation likely as “1ST BUY TP = 1.12345 (+12p)” and “1ST SELL TP =
1.12345 (+12p)”.
For example, value of “1ST BUY TP” == (value of 2ND BUY TP) / 2 and
value of “1ST SELL TP” == (value of 2ND
SELL TP) / 2.
Current New
Profit Target = 1.12345 (+12p) 2ND
BUY TP = 1.12345 (+12p)
None 1ST BUY TP = 1.12345 (+12p)
Entry BUY = 1.12345
(1.12345) BUY = 1.12345
Initial Sell Stop =
1.12345 (-12p) SELL SL = 1.12345 (-12p)
Initial BUY Stop =
1.12345 (-12p) BUY SL = 1.12345 (-12p)
Entry Sell =
1.12345 (-12p)
SELL = 1.12345
None 1ST SELL TP = 1.12345 (+12p)
Profit Target = 1.12345
(+12p) 2ND SELL TP = 1.12345 (+12p)
3. Extra buffer –“Trading Zone” for up and down
LightBlue colored 2 boxes starts at 06:00 and ends 09:00 according to the settings in
parameter.
I need an extra buffer (Trading Zone) from 09:15 (next candle to 09:00) to the 1st breakout upwards / downwards.
Take a look at
the last box in yellow circle at 06:00 ~ 09:00, 17 Apr, please.
It is EURUSD_M15 chart.
09:15 1. price_high[M15] <= “BUY”
&&
2. price_low[M15] >= “SELL” “Trading Zone” == 1.00000
09:30 1. price_high[M15] <= “BUY”
&& 2. price_low[M15] >= “SELL” “Trading Zone” == 1.00000
09:45 1. price_high[M15] <= “BUY”
&& 2. price_low[M15] >= “SELL” “Trading Zone” == 1.00000
10:00 1. price_high[M15] <= “BUY”
&& 2. price_low[M15] <“SELL” “Trading Zone” == 0.00000 1st
breakout happened
So, it will show “Trading Zone == 0.00000” at 10:00, and it will show “0.00000” continuously till next box end (new 09:00).
With this feature,
we can know where the 1st breakout happened.
As we know well, the 1st breakout happened at 10:00 – breakout downwards.
I
will use this value (Trading Zone == 1.00000 / 0.00000) on the 1st previous candle.
So, I can have fixed value at 10:15 as “Trading Zone ==
0.00000”.
Finally, there will be buffers in data window as followings below.
v1 2ND BUY TP 1.12345
v2 1ST
BUY TP 1.12345
v3 BUY 1.12345
v4 SELL SL 1.12345
v5 BUY SL 1.12345
v6
SELL 1.12345
v7 1ST SELL TP 1.12345
v8 2ND SELL TP 1.12345
v9 Trading
Zone 1.00000 / 0.00000
4.Remove the information text in yellow rectangle on top-left, please.
5. MaxBars
I need “MaxBars” function as default setting as 500.
For more details, take a look at my document attached, please.
Thanks,
David