cQ-Indicators
cQ-Indicators Home cQ-Indicators MT4 Indicators cQ-Indicators MT4 Interface Improvements Contact
cQ-DATR RSI-ish MT4 Indicator


As an Amazon Associate, I earn from qualifying purchases.

cQ-DATR RSI-ish mainscreen

Requirements
MT4 - MetaTrader 4
Version 4.00 Build 1360 or greater

Sept 9, 2023

Download the cQ-DATR RSI-ish MT4 Indicator v1.0

< iframe width="560" height="315" src="https://www.youtube.com/embed/wac_GMGaq_A?si=AyKTrsrv-UzT9GJ-" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen>

Overview

The cQ-DATR RSI-ish indicator can be used as a confirmation indicator. It's a combination of the DATR and the RSI. It's fairly simple to use, so use where ever you would the RSI. The DATR input can be either Abs(open-close) or the high-low. You can also apply a smoothing moving average after it's been calculated.

If the DATR RSI-ish value is going up then a Brighter Blue color is drawn. If it is going down then a Brighter Orange color is drawn.

Here is the code used:


for(int i=limit;i>=0;i--)
{

dInput = high[i]-low[i] or fabs(open[i]-close[i])
if(close[i] > open[i])
{
UpBuf[i] = dInput
DownBuf[i] = 0.0
}
else if(close[i] < open[i])
{
UpBuf[i] = 0.0
DownBuf[i] = dInput
}
else
{
UpBuf[i] = 0.0
DownBuf[i] = 0.0
}

}

for(int i=limit;i>=0;i--)
DATRUpBuf[i] = iMAOnArray(UpBuf,0,DATRPeriod,0,DATRMode,i)
DATRDownBuf[i] = iMAOnArray(DownBuf,0,DATRPeriod,0,DATRMode,i)

for(int i=limit;i>=0;i--)
tUpBuf[i] = iMAOnArray(DATRUpBuf,0,SmoothPeriod,0,SmoothMode,i)
tDownBuf[i] = iMAOnArray(DATRDownBuf,0,SmoothPeriod,0,SmoothMode,i)

for(int i=limit;i>=0;i--)
{

dUp = iMAOnArray(tUpBuf,0,DATRPeriod,0,DATRMode,i)
dDown = iMAOnArray(tDownBuf,0,DATRPeriod,0,DATRMode,i)
if(dDown > 0.0)
dRatio = dUp/dDown
else
dRatio = 0.5
RSIishBuf[i] = 100.0-(100.0/(1.0+dRatio))

}

Here are the expert advisor buffer numbers:

cQ-DATR RSI-ish Expert Advisor Buffer Numbers

cQ-DATR RSI-ish Dialog Box