Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1400
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
Look at the Heiken Ashi indicator. It solves this problem somehow. Experiment... maybe it will work.
So far the issue has been resolved by OBJ_TREND
but don't like it when zooming in(
Look at the Heiken Ashi indicator. It solves this problem somehow. Experiment... maybe it will work.
Your tip was helpful, but alas it didn't work.
It's not good at scale either(
Your tip helped, but alas it didn't fit
At scale it's no good either(
What's wrong?
What's wrong?
Visually bad
Hi all!
Here's the problem:
Price crosses the MA down or up.
I need to memorise it in order to use it later in calculating the number of points passed.
This is how I understand it:
double FixPrice; // variable
bool Fix=false; // marker
if ( Fix==false) {
if ( Close[0] > MA_lo ) FixPrice = Close[0];
} // measure until the price crosses the MA
if ( Close[0] < MA_lo ) Fix=true;
if ( Fix==true) FixPrice_L = FixPrice ;
And here is the next hitch - the price is not memorized!
Hello all!
only on the screenshot Close is no less than MA
Hi all!
Here's the problem:
Price crosses the MA down or up.
I need to memorise it in order to use it later in calculating the number of points passed.
This is how I understand it:
double FixPrice; // variable
bool Fix=false; // marker
if ( Fix==false) {
if ( Close[0] > MA_lo ) FixPrice = Close[0];
} // measure until the price crosses the MA
if ( Close[0] < MA_lo ) Fix=true;
if ( Fix==true) FixPrice_L = FixPrice ;
And here is the next hitch - the price is not memorized!
Declare globally
Or
Declare globally
Or