- Dinh Tuan Tran #: For example I want to spot when the level 100 of momentum is above Level 0 of OsMA.
Momentum is a price difference (±0.01234). OsMA is an oscillator (0 … 100).
If the window scale is 0 … 100, your momentum is a straight line at the bottom, useless.
If the window scale is ±0.01234, your oscillator is mostly off screen, useless.
- Dinh Tuan Tran #: but I do not know how to apply in MQ4
Read them in, check for a cross. What's the problem?
double aPrev = …(i+1), aCurr = …(i), bPrev = …(i+1), bCurr = …(i); bool wasUp = aPrev > bPrev, isUp = aCurr > bCurr, isCross = isUp != wasUp;
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
Hello,
I combined two indicators such as momentum and moving average of oscillator (OsMA) on same window. I add level 100 on momentum parameter and level 0 on OsMA parameter. Now I would like to use these two parameters to determine the signal by coding on MQ4. Anyone can help? The point here I can spot on chart visually but I do not know how to apply in MQ4
For example I want to spot when the level 100 of momentum is above Level 0 of OsMA.
Appreciate if anyone can help me
Thanks