I would like to create a variable that when it touches the moving average has the value of 1 and after it performs an operation it becomes 0 and only allows new operations when it is worth 1 (touches the average)
- [ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5.
- Moving Average
- How to Stoploss change each tick?
gablima96:
I would like to create a variable that when it touches the moving average has the value of 1 and after it performs an operation it becomes 0 and only allows new operations when it is worth 1 (touches the average)
A variable does not touch any moving average. Price, trendlines etc do.
Keith Watford:
Understood. Do you know how to do it?
A variable does not touch any moving average. Price, trendlines etc do.
Do what?
A variable doesn't touch anything.
How To Ask Questions The Smart Way. 2004
Be precise and informative about your problem
A price doesn't either.
Doubles are rarely equal. Understand the links in:
The == operand. - MQL4 programming forum #2 2013.06.07
Show us your attempt (using the CODE button) and state the nature of your problem.
No free help 2017.04.21
Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum 2018.05.12
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