Hi mrtoolsmrtools wrote: Mon Jun 01, 2020 4:30 am
This version I changed from trend colored bars to candles colored by trend, and seems to be better, hopefully fixing the problem you had.
Wonder if you can fix the alarm code of this indi since the mql4 was not released (i think, i didnt find it).
I use some indis in Renko charts, and I detected sometimes it keeps giving the alarm+alert on every price movement. I also found that other indis coded the same way dont have this issue, so I checked 2 open source indis with and without the issue and found and fixed the code that keeps the alert repeating forever at least in Renko charts.
The ones having the issue are indis with alert code as follow (as example):
Code: Select all
doAlert(" Buy")
Code: Select all
doAlert(whichBar," BUY");
Code: Select all
void doAlert(int forBar, string doWhat)
{
static string previousAlert="nothing";
static datetime previousTime;
string message;
if (previousAlert != doWhat || previousTime != Time[forBar]) {
previousAlert = doWhat;
previousTime = Time[forBar];
I didnt test them in normal candles, maybe this is only happening with renko/offline charts but if you can fix it I will appreciate it.
Thank you
Damian