Mistakes corrected
Open[1] refers to bar 1 only and should be [i] to be indexed.
BBLOW= had a + sign that wasn't being used.
indicator was recalculating every tick for a closed bar signal.
Mistakes corrected
Open[1] refers to bar 1 only and should be [i] to be indexed.
BBLOW= had a + sign that wasn't being used.
indicator was recalculating every tick for a closed bar signal.
Thank you so much for helping! I need to write extra code to make it generate better signals and I'll share it here :)
There are a few things you need to cover first before you can implement such a strategy.
I totally agree with all your wrote.
My message was ironical, joking about people who talk about "winratio" that in trading is totally meaningless! They should probably go to a casino instead of doing trading.Mistakes corrected
Open[1] refers to bar 1 only and should be [i] to be indexed.
BBLOW= had a + sign that wasn't being used.
indicator was recalculating every tick for a closed bar signal.
Thanks for your helping again!
I wrote some codes and added a new rule :) Please check it if it is correct!
The rule: If candles goes out of the bands for 100 points, it will show Buy or Sell arrows.
Thanks
for(int i=1; i<inpBarsToCalculate; i++)
{
arrow(i);
if( Open[i+1]>BBUP && Low[i+1]<BBUP && Close[i] < BBUP &&(Close[i]>BBUP+100*Point()))
if(!UseRsi || RSI<70)
if(!UseStochastic || (m_2 > s_2 && m_1 < s_1))
{
buffer2[i]= High[i]+20*_Point; //red down arrow
}
if( Open[i+1]<BBLOW && High[i+1]>BBLOW && Close[i] > BBLOW && (Close[i]>BBLOW+100*Point()))
if(!UseRsi || RSI>30)
if(!UseStochastic || ( m_2 < s_2 && m_1 > s_1))
{
buffer1[i]= Low[i]-20*_Point; //blue up arrow
}
}
return(rates_total);
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'm coding a strategy based on 3 indicators Bollinger, RSI and STOCH! The win rate can be %99! The strategy is simple but effective! Since I'm newbie in MQL4 language, please help to code this and then we can use its signal all together :)
The Logic is like this:
When the candles touch lower bands and RSI above 30 and Stoch cross above 30, we will Buy!
When the candles touch Upper bands and RSI below 70 and Stoch cross above 70, we will Sell!
I'm trying to code an indicator to generate signals when the conditions meet :) Please help to correct my code!
Thank you :)