by Frank8093 » Thu Apr 15, 2021 8:37 am
Hi Team
how are you
can you check this program. i think the program has problem in commands.
1- in Down or Up section in ICHIMOKU SCANNER :
IICHIMOKU Command : Period + 1 : means next candle Period : current candle
but according to the commands it means period +1 current candle and Period means next candle.
please revise it.
UpCondition(const string symbol, ENUM_TIMEFRAMES timeframe)
:ACondition(symbol, timeframe)
{
}
virtual bool IsPass(const int period, const datetime date)
{
double TENKANSEN_0 = iIchimoku(_symbol, _timeframe, Tenkan_Sen_Period, Kijun_Sen_Period, Senkou_Span_B_Period, 1, period);
double KIJUNSEN_0 = iIchimoku(_symbol, _timeframe, Tenkan_Sen_Period, Kijun_Sen_Period, Senkou_Span_B_Period, 2, period);
double TENKANSEN_1 = iIchimoku(_symbol, _timeframe, Tenkan_Sen_Period, Kijun_Sen_Period, Senkou_Span_B_Period, 1, period + 1);
double KIJUNSEN_1 = iIchimoku(_symbol, _timeframe, Tenkan_Sen_Period, Kijun_Sen_Period, Senkou_Span_B_Period, 2, period + 1);
return TENKANSEN_0 > KIJUNSEN_0 && TENKANSEN_1 <= KIJUNSEN_1;
DownCondition(const string symbol, ENUM_TIMEFRAMES timeframe)
:ACondition(symbol, timeframe)
{
}
virtual bool IsPass(const int period, const datetime date)
{
double TENKANSEN_0 = iIchimoku(_symbol, _timeframe, Tenkan_Sen_Period, Kijun_Sen_Period, Senkou_Span_B_Period, 1, period);
double KIJUNSEN_0 = iIchimoku(_symbol, _timeframe, Tenkan_Sen_Period, Kijun_Sen_Period, Senkou_Span_B_Period, 2, period);
double TENKANSEN_1 = iIchimoku(_symbol, _timeframe, Tenkan_Sen_Period, Kijun_Sen_Period, Senkou_Span_B_Period, 1, period + 1);
double KIJUNSEN_1 = iIchimoku(_symbol, _timeframe, Tenkan_Sen_Period, Kijun_Sen_Period, Senkou_Span_B_Period, 2, period + 1);
return TENKANSEN_0 < KIJUNSEN_0 && TENKANSEN_1 >= KIJUNSEN_1;
2- in Road Cross Condition : we want when in the specified time frame in iichimoku command occured.
the alert has been showed.
but when the timeframe in iichimoku specified the alert show all timeframe of symbols that the road cross occured.
3- please revise the alert show. because the alert show multi again alert for expired signal.
for example the sell signal in eurusd occured now the alert show it now and also after 1 hour or before next signal show again sell on eurusd.
4- i want when in two time or 3 or 4 timeframe together occured RC (Road Cross).
Tenkan and Kijun are same (overlap) in 2 or 3 or 4 timeframe.
Tenkan = Kijun (M5) , Tenkan = Kijun (M15) , Tenkan = Kijun (M30) , Tenkan = Kijun (H1)
Message alert show same as below :
Symbol , Timeframe : M5 , M15 , M30 , H1 -- Road Cross in Tenkan & Kijun
thanks