if(PERIOD_CURRENT=PERIOD_M15)
This is not valid.
if(Period()==PERIOD_M15)
This is
if(Period()!=PERIOD_M15)
This is too.
Marco vd Heijden:
This is not valid.
This is
This is too.
Oh god, how did I not think of this.....
Thanks so much!
Next time, go here: https://www.mql5.com/en/job
Trading applications for MetaTrader 5 to order
- www.mql5.com
Hi, Based on the indicator here https://www.mql5.com/en/job/91148 we need another addition to the indicator as below: Add a new column to the top right displaying the following values: - Daily, Weekly and Monthly: Long Time RSI Divergence and Short Time RSI Divergence Thanks! I need an ea that use pending orders (Buy stop & Sell stop) for...
Yes OP, you should be hiring freelancers when you have simple programming questions. 🙄
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 I want my indicator to only do something if the current period is a certain timeframe.
I need it to have the logic of the title statement, as my indicator looks at all timeframes even if it's not the current one, but I only want certain things to occur if I'm on a certain timeframe.
Is there a way to have the same effect as "if(PERIOD_CURRENT=PERIOD_M15)"?