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
Thanks. I tried this and the alert executed immediately, It does limit the alert to once per hour but I need the alert to be delayed until a new bar appears, not to show up immediately.
then, you change this one:
to
int barMark = Hour();
You will have to wait next hour for the alert to give a first signal.
I've fixed the compile errors.
But now I have the problem where it's executing the alert on every tick.
I don't know how to adjust it from every tick to Once per bar.
then, you change this one:
to
You will have to wait next hour for the alert to give a first signal.
Ok I'll check this out. Thanks.
then, you change this one:
to
You will have to wait next hour for the alert to give a first signal.
int barMark = Minute()=5;
What's the correct syntax of Minute() If I wanted to change it to be e.g. 5 minutes instead of 1 hour?
What's the correct syntax of Minute() If I wanted to change it to be e.g. 5 minutes instead of 1 hour?
This is why you need to be more specific when asking a question. Because you may end up getting a different way of solving the problem.
BTW, if you want to be more flexible, use iBarShift instead.
There might be some bug, I didn't check the code. But, that's another way of doing it. You can change 'timeframe' from the input section according to your setup (ex. 5, 15, 30, 60,...).
Goodluck.
This is why you need to be more specific when asking a question. Because you may end up getting a different way of solving the problem.
BTW, if you want to be more flexible, use iBarShift instead.
There might be some bug, I didn't check the code. But, that's another way of doing it. You can change 'timeframe' from the input section according to your setup (ex. 5, 15, 30, 60,...).
Goodluck.
Hi, your code works fine. I wanted to make a small tweak but there's a compile error. What would be the correct syntax?
Alert if above price or Alert if below price.
Hi, your code works fine. I wanted to make a small tweak but there's a compile error. What would be the correct syntax?
Alert if above price or Alert if below price.
With your new code it triggered the alert instantly for both low & high, it didn't wait for the candle to be closed.
Does this line have to be above OnInit for it to work?
With your new code it triggered the alert instantly for both low & high, it didn't wait for the candle to be closed.
Does this line have to be above OnInit for it to work?
So? did you try it? does it work if you put it above OnInit?
You should try it yourself. Try and error.
You'll learn faster that way.