Just need this one line of code, Please
You are looking at a signal. Act on a change of signal.
MQL4 (in Strategy Tester) - double testing of entry conditions - Strategy Tester - Expert Advisors and Automated Trading - MQL5 programming forum
MQL4 (in Strategy Tester) - double testing of entry conditions - Strategy Tester - Expert Advisors and Automated Trading - MQL5 programming forum
Can you please help me to create just one line of code that tell the first appearance of a signal for example, I am creating an indicator through EA builder to alert me about overbought/oversold areas and it is simple, sell arrow at first appearance of RSI >80 after CCI>10 whether that was next, 3rd or 4th, etc candle I want to it to send an alert at first RSI hits 80 level, after one condition is met. I was able to make it at the next candle but I want it at the first time it hits 80 level. Thanks in advance
{ if (i >= MathMin(5000-1, rates_total-1-50)) continue; //omit some old rates to prevent "Array out of range" or slow calculation //Indicator Buffer 1 if(iCCI(NULL, PERIOD_CURRENT, 14, PRICE_TYPICAL, 1+i) <= CCI_Lower_Value //Commodity Channel Index <= fixed value && iRSI(NULL, PERIOD_CURRENT, 14, PRICE_CLOSE, i) <= RSI_Lower_Value //Relative Strength Index <= fixed value )