PREVIOUS Day'sMedian

[Deleted]  

Hi can some body tell me how to get the previous days median in mql4?

Thanks

 
ankitkalindi:

Hi can some body tell me how to get the previous days median in mql4?

Thanks


I believe that MQL4 has the same definition of median as whatever else has - so sort the values and take the one in the middle.
 
ankitkalindi:

Hi can some body tell me how to get the previous days median in mql4?

Thanks

moving average
[Deleted]  
thanks for the reply but can you explain me through example ?How i find the previous daily median price?
 
ankitkalindi:
thanks for the reply but can you explain me through example ?How i find the previous daily median price?


moving average  daily median price

Moving Average daily chart median price

RTFM

 
deVries:


Moving Average daily chart median price

RTFM


This is what I call mean, not median... depends what op means, not what is written in TFM.

E.g. if he wants median on close price for 5 days, he must take 5 days closing prices, sort them a take the third as median.

 
Ovo:


This is what I call mean, not median... depends what op means, not what is written in TFM.

E.g. if he wants median on close price for 5 days, he must take 5 days closing prices, sort them a take the third as median.

this is median....

PRICE_MEDIAN4Median price, (high+low)/2.

ankitkalindi:

Hi can some body tell me how to get the previous days median in mql4?

Thanks

RTFM Moving Average

[Deleted]  
thanks devries
 


50 1 50 50 50 1 50 median 50

go on save every tick of the day ( although you miss a lot )

sort it and take the value what becomes in the middle

 
deVries:


50 1 50 50 50 1 50 median 50

go on save every tick of the day ( although you miss a lot )

sort it and take the value what becomes in the middle

It's Saturday, no ticks going on. Calm down.