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
Ok, my fault. Try to explain better.
I want the ea to send me an email whenever those conditions are met (rsi> 50 on 4 tf + heiken ashi green on the same tf and the way around for sell). But i don't want to have tons of email saying the same thing without any change.
For example: rsiD >50 and RsiW>50 it should send me an email. But after 1 hour if conditions are the same i don't want any message.
In the next day, if rsiD<50 and RSiw>50 no messages but if it goes up again and turns RsiD>50 and RsiW>50 i want a message.
THe idea behind signal as a bool is the conditions could be ok for email to be sent or not.
Bool res was a part of an ea which sends email. I thought it would be necessary.
Thanks man, sorry for misunderstanding.
Many thanks WHRoeder.
Is ok this way?
I tried to compile this
These are the errors... anyone knows why? except the last one...
'=' - '{' beginning bracket expected AlertRsiEA.mq4 6 14
'signals' - declaration without type AlertRsiEA.mq4 7 8
'void' function returns a value AlertRsiEA.mq4 16 1
'LastSignal' - undeclared identifier AlertRsiEA.mq4 41 101
'Buy' - undeclared identifier AlertRsiEA.mq4 41 113
'Sell' - undeclared identifier AlertRsiEA.mq4 65 118
'res' - variable already defined AlertRsiEA.mq4 69 12
enum signals ={Buy, Sell, NA};
to
enum signals {Buy, Sell, NA};
Many thanks to everyone guys. I compiled successfully and next week i'll test it,
Hope that works.
If anyone wanna help more, i can't make this ea open in backtest any order. It is the indicator built previously trying to open positions on its own. Is that normal?
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
Check your return codes (OrderSelect, OrderSend and OrderModify) What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 ArticlesWHRoeder:
Thanks again...
Wonderful. Ok Gum i got it now:)