![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
So exactly what is your problem ?
Thanks Raptor!
Im trying to implement an Rsi filter that allows me to use per choise, Use RSI=true or false.
Allows long trade when rsi>50 and short when rsi<50
RSI=false it should not turn of the existing EA
Is just an extra filter per choise
Thanks Raptor!
Im trying to implement an Rsi filter that allows me to use per choise, Use RSI=true or false.
Allows long trade when rsi>50 and short when rsi<50
RSI=false it should not turn of the existing EA
Is just an extra filter per choise
Yes I know, but when you run your code what is it not doing that it should or what is it doing that it shouldn't ?
If(UseRsi)=false the existing EA wont open any trades but he should
and when if(UseRsi)=true the EA works normal and the rsi filter does nothing.
If(UseRsi)=false the existing EA wont open any trades but he should
and when if(UseRsi)=true the EA works normal and the rsi filter does nothing.
If UseRsi is false then BuyRSI and SellRSI are still at their default values . . . it also looks like you have one too many braces . .
Thanks to Raptor again i got it working so far.
only if i put rsi=false the rest of the EA wont open any trades.
Please a litle hint. I like to have the rest of the EA working if i put rsi=false.
Thanks
Thanks to Raptor again i got it working so far.
only if i put rsi=false the rest of the EA wont open any trades.
Please a litle hint. I like to have the rest of the EA working if i put rsi=false.
Thanks
Thanks to Raptor again i got it working so far.
only if i put rsi=false the rest of the EA wont open any trades.
Please a litle hint. I like to have the rest of the EA working if i put rsi=false.
You need to show more of your code . . . we can't see how you are using your bools in relation to opening trades . . .
Here are my sell and buy conditions i believe ths change need to be made here.
Thanks for beeing on today.
Here are my sell and buy conditions i believe ths change need to be made here.
Thanks for beeing on today.
Why wouldn't I be here today ?
As I said before . . .
If UseRsi is false then BuyRSI and SellRSI are still at their default values . . .
. . . but you have changed the variable names.
Look at this and understand why it will work . . .
Why wouldn't I be here today ?
As I said before . . .
. . . but you have changed the variable names.
Look at this and understand why it will work . . .
Thank you very much it works now just fine but i do not understand the code line please point me to some text i can read about it.
thanks again.