
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
Dyslexia is a difficult thing to deal with, yes. Your "if" statements look like superheroes, I'll never understand why they wear underpants on the outside. I mean, underpants are supposed to be on the inside to brace your junk right? Also, you've effectively destroyed your clock, so checking that the current time is different from the candle time will always be true. You've also given some of your semicolons downs syndrome, they're way downs away from where they should be
This is what i've got after using trial and error from compiler errors, still wrong?....I guess I should actually learn to code properly
This is what i've got after using trial and error from compiler errors, still wrong?....I guess I should actually learn to code properly
Move it back to the OnTick method. You'll get notifications as soon as your conditions are met.
This is what I found people said worked, but all were talking about EAs, will this work for mine?
This is what I found people said worked, but all were talking about EAs, will this work for mine?
You did it! :D Congratulations! It gets easier and easier with practice. There's a pretty good tutorial series about C# that you could watch to learn some fundamental programming concepts. Almost everything in the series directly applies to the MQL language as well.
https://channel9.msdn.com/Series/C-Sharp-Fundamentals-Development-for-Absolute-Beginners
Yes, that will make it so that your code is only checking for your notification signals once at the beginning of each bar.
You did it! :D Congratulations! It gets easier and easier with practice. There's a pretty good tutorial series about C# that you could watch to learn some fundamental programming concepts. Almost everything in the series directly applies to the MQL language as well.
https://channel9.msdn.com/Series/C-Sharp-Fundamentals-Development-for-Absolute-Beginners
Ok, thank you for the help :) I'm still not getting notifications when the parameters hit though. Everything loads up fine in MT4, but something must be wrong still.
I'll definitely watch the series though, thanks for recommendation.
Ok, thank you for the help :) I'm still not getting notifications when the parameters hit though. Everything loads up fine in MT4, but something must be wrong still.
I'll definitely watch the series though, thanks for recommendation.
Notifications don't work in the backtester. Just add a line to print your notification message right after each call to send a notification. Then watch the journal tab in the tester. There will be a timestamp in the right hand column that tells you what time the notification would have been sent in the past.
I have it applied to a real account, and still doesn't work :/
Have you put your MQLID into the settings on this site? Have you enabled notifications in your metatrader settings and in the expert settings?
Then you broke something and can't see your broken code. There are no mind readers here and our crystal balls are cracked.