CMO ile market tipini belirleme
CMO ile market tipini belirleme
TRO_CMI ndicatorunun Matriz indicator formulu:
===================================
hh:=hhv(H,6);
ll:=llv(L,6);
denom:= (HH - LL) / C;
num:= ( REF(C,-4) - C) / C;
num:=ABS(num);
cmi:=100 * (num / denom);
if( denom>0 ,cmi, 0);
80;
20
===================
80 yukarsı Trendy, 20 aşağısı Choppy market type..
Alıntı:
bgungor68 Yazdı:
TRO_CMI ndicatorunun Matriz indicator formulu:
===================================
hh:=hhv(H,6);
ll:=llv(L,6);
denom:= (HH - LL) / C;
num:= ( REF(C,-4) - C) / C;
num:=ABS(num);
cmi:=100 * (num / denom);
if( denom>0 ,cmi, 0);
80;
20
===================
80 yukarsı Trendy, 20 aşağısı Choppy market type..
Bir yanlıs kodlama olmasın, trend dedıgı yer en tepe..
This image has been resized. Click this bar to view the full image. The original image is sized 1346x722 and weights 45KB.
MT4 tedki TRO_CMI deki hesaplamayı çevirmeye çalıştım
=========
int hh = Highest(symbol,tframe[x],MODE_HIGH,periodLength+1,0);
int ll = Lowest(symbol,tframe[x],MODE_LOW,periodLength+1,0);
HH = iHigh(symbol,tframe[x],hh) ;
LL = iLow(symbol,tframe[x],ll) ;
close = iClose(symbol,tframe[x],0) ;
pclose = iClose(symbol,tframe[x],periodLength-1) ;
denom = (HH - LL) / point ;
num = (pclose - close) / point ;
num = MathAbs(num) ;
ChoppyMarketIndex = 0.0 ;
if(denom > 0 )
{
ChoppyMarketIndex = 100 * (num / denom) ; // 100 * (num / denom)
}
===============
TRO_CC en son hali bu.. MQL4 teki aynı degerleri veriyor
===========
hh:=hhv(H,6);
ll:=llv(L,6);
denom:= (HH - LL) / C*10;
num:= ( REF(C,-4)- C) / C*10;
num:=ABS(num);
cmi:=100 * (num / denom);
if( denom>0 ,cmi, 0);
80;
20
============
Periyotlarda çıkan rakamların yorumlanması farklı sanırım.
I've checked the code and have clarified everything:
if CMI > 80 - it will be in green -
means TRENDY market
(for both Up and Down trend -
this was the reason of my initial confusion)
if CMI < 20 - it will be in red -
means CHOPPY market.
what happens in between -
will be in orange = FLAT.
When I'm standing in the rain, I really want to know
how wet I'm (or how strong rain is),
as soon as I'm in pocession of rain strength indicator.
And I do need a definition, because I'm a scientist.
Definition of a choppy market:
Market with prices pushing up and down considerably
or within a narrow defined range
but with no resulting overall price movement in either direction.
..
Şu anda 1 kullanıcı bu konuyu görüntülüyor. (0 kayıtlı ve 1 misafir)