emailing
-
Hi fxdreema,
is there anyway i can set up emailing function to send email lets say to gmail.com mailbox?
i thought it might use profile email address, but i do not see it in the code it this way. Please advise on this one.
Thanks.
-
In MetaTrader go to Tools->Options->EMail tab
-
i have one more question regarding messaging when criterias were met.
In backtesting it shows precise messaging how i was expecting, but when i run expert advisor live it do not make same messaging as it did in backtesting.
Thank you for your advise.
-
Or its giving very late signal to send message
-
I don't know for emails for sure, because I never tested that for me seriously, but I know there are people using this.
In the email block very simple and native MQL4 function is used (SendMail()), so there is pretty much nothing there created by me. What this blocks do is to construct the message and use that function to send it.
If you think that signalling can be slow, which is not impossible, you can put Print message or Alert message before or after the email block... maybe after... so you will see when exactly things happen. Well, I'm not sure whether SendMail() if synchronous or not (whether it will wait for the function to finish before continue), but most of the things in MT4 are.
-
So i made this really simple signal. White vertical line when ema5x>ema10 and rsi>50, and oposite with vertical brown line.
You can see at the below link how I put those block together to make it work but it's not result that i want to see. i tried "once per minutes" just because i tried "once a bar" (thats how i want it), but it misses signal. Please see below screenshot to see where it misses signal.And why is there like signals one by another. If it crosses one time below, another crossover should be above. Please advise on my blocking and maybe you will sort this one out. Thank you very much.
http://fxdreema.com/shared/iKxFsfgwc
http://postimg.org/image/rks6m2mxb/
http://postimg.org/image/rks6m2mxb/ -
I think I have to remove one rule in "Once per minutes". Now this block can be active for 1 minute every X minutes. If it is set up for 5 minutes, then it can be active in minutes between 5-6, 10-11 and so on... Now that I think about it, this maybe only causes problems and it's not useful.
But what about "Once per bar", isn't it working with it? Because this is as it sounds - it can pass once per bar, no matter where are you inside the bar - in the beginning, in the end. And for things like indicators that have the bar in their nature I think this is the block to be used.
-
See configuration with "once per bar" below:
http://fxdreema.com/shared/84VByBYNand here is actual backtesting, and there is a lot of signal missed. i think it should be so easy that ema5 x> ema 10 and rsi >50 then show signal, but its not working this way. Where i pointed arrow, you can see SELL vertical line, but straight after it should be BUY vertical line.
http://postimg.org/image/gltlaugot/
Please advise or try testing it yourself to see my point..
-
When "Once per bar" is on the top, then what is below works at the first tick on every new bar. At this moment the candle is still new and it looks like nothing, or at least does not look the way you see it after the backtest ends. So, when indicators are used for the current candle (when Candle ID = 0), then where "Once per bar" is placed matters, it's different if it is below or above conditions. If Candle ID is something bigger than 0, then no problem, it will be the same, because operands in the condition will not change until the end of the candle.
If you really want to use the current candle, then I can suggest to put "Once per bar" blocks below conditions. This is what I got with setup like this: http://prntscr.com/2lo8q3
-
i want it to work this way. If the candle closes and generates cross while rsi is below 50, then send a signal.
In your screenshot you can see that the very first signal as i guess its to buy is without any cross, and just before sell cross. why? there is no such conditions at that point to draw vertical line.
Other observation, why there is some buy or sell signals going one by another. there is two buy signals next to each other. it should not be this way. there is no possible circumstances that cross can be generated above or below two times in a row.
Waiting for your reply. hope you will sort it out...
-
After the backtest everything you see is from the last moment of the candle. And when you values to detect signals from the current candle, they are temporary, especially in the beginning of the candle (when Once per bar is on the top). When Once per bar is below the conditions, then you work with the middle of the current candle. To work with finished candles, set Candle ID to 1 everywhere. In this situation I got this: http://prntscr.com/2loqu5