Auftrag beendet
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spezifikation
Hello,
I have 1 request of adding Buy / Sell TP and check the contents in current system as I describe here.
There
are Buy / Sell TP conditions in current system, and it needs to have few values and functions likely as SetIndexBuffer and SetIndexLabel,
other functions and buffers in data window.
As you know well, we have tried Buy / Sell TP in previous system before.
When Buy / Sell Entry happened on current candle, it
sends pop-up message in MT4 and also sound alert and e-mail alert.
As we experienced, it will send e-mail alert as followings below.
1908202035_OIH_PBS_v1.0_GBPUSD_Buy Entry_O1.12345_SL1.12345_TP1.12345
In
“1908202035”, “19” means 2019 (year), “0820” means Aug 20, “2035” means 20:35 (time).
And hope you to check the code below.
In Buy / Sell Entry, condition 28, 29, 30 and 31
=> Check the conditions if
there are right or not, please.
Correct the conditions if necessary, please.
In Buy / Sell Exit, condition 28 and 29
=> Check the conditions if there are right or not, please.
Correct
the conditions if necessary, please.
And check and complete Buy / Sell TP conditions, please.
And there is code of OIH_123Patterns_v1.2 as followings below.
Row 925
//*------------------------------------------------------------------*
double Get_OIH_123Patterns(ENUM_TIMEFRAMES
tf, int buffer, int bar)
{
return(iCustom(NULL,tf,"OIH_123Patterns_v1.2", "", "", MaxBars, "", ZigZagDepth, RetraceDepthMin, RetraceDepthMax,
ShowAllLines, ShowAllBullBearDots, ShowAllBreaks, ShowAllArrows, buffer, bar));
}
In OIH_123Patterns_v1.2, here is an option "maxNoOfCandles", but "MaxBars" in row 928.
Is this right?
And check below contents, please.
//*------------------------------------------------------------------*
double
Get_iHigh(ENUM_TIMEFRAMES tf,int bar)
{
return(iHigh(NULL,tf,bar));
}
//*------------------------------------------------------------------*
double Get_iLow(ENUM_TIMEFRAMES tf,int bar)
{
return(iLow(NULL,tf,bar));
}
Above are right?
Details of Buy / Sell TP
- It will be shown as a dot of value of v9 (for Buy Entry) / v10 (Sell Entry) when Buy / Sell Entry happened on
current candle
Buy TakeProfit
Same sized and dot typed as Buy / Sell StopLoss in current system attached.
The only difference is
color, and the color of Buy TakeProfit is Gold.
New system will show Gold colored dot and value of v9 for Buy TakeProfit when Buy Entry happened on current candle.
Sell TakeProfit
Same sized and dot typed as Buy / Sell StopLoss in current system attached.
The only difference is
color, and the color of Buy TakeProfit is Gold.
New system will show Gold colored dot and value of v10 for Sell TakeProfit when Sell Entry happened on current candle.
For more details, take a look at my attached document, please.
Thanks in advance,
David