Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1330

 
Порт-моне тв:

can someone help me?

what do you mean by "rising" and "falling"?

 
MakarFX:

what do you mean by "rising" and "falling"?

For example, one bar went up 4 points, the second bar only went down 2 points, the third bar went up 6 points, the fourth bar only went down 3 points... ...and so on.

For 10 bars, count the sum of "rising" vs. "falling" prices. The former must be twice as big as the latter

 
Порт-моне тв:

can someone help me?

long volume_up=0, volume_dn=0;
double open, close;
for(int i=0; i<10; i++)
   {
   open=iOpen(symbol, frame,i);
   close=iClose(symbol, frame,i)
   if(close-open>=0) volume_up+=iVolume(symbol, frame,i);
   if(open-close>=0) volume_dn+=iVolume(symbol, frame,i);
   }
if(volume_up>volume_dn*2) .........
if(volume_dn>volume_up*2) .........
 
Aleksei Stepanenko:

YEAH!

 
Порт-моне тв:

YEAH!

Not for nothing ;)

 
Порт-моне тв:

YEAH!

Volume on an uptrend candle may be greater than volume on a downtrend candle...

or is the direction of the candle irrelevant?

 
Aleksei Stepanenko:

Not for nothing ;)

Do you understand Ukrainian?
 
Sorry, got caught up in the conversation, didn't notice...
 
MakarFX:
Do you understand Ukrainian?
so
 
Aleksei Stepanenko:
so

In Ukrainian, the technical task is better understood

Reason: