I realize that the Renko drift problem has not been resolved by development, any idea when they may get to fixing it?
The reason I ask is that has become a major obstacle for me right now and I was wondering if anyone had any suggestions as to a temporary resolution. In realtime after a very short time period the indicator values are plotted incorrectly and I can't figure how the values are being calculated.
Stevehare2003 posted the following code in an earlier post http://forum.esignalcentral.com/show...&threadid=3575
I made a simple change use the rawtime() function instead of getValue() for detecting a change in rawtime().
I would like to have the efs load as frequently as necessary to prevent the drift problem, after the completion of every bar would be the maximum amount of time between reloads and if possible maybe after a specified number of seconds every 30-60 seconds perhaps.
When I changed his code to add in getCurrentBarIndex ==0
to the
it hung up my esignal and had to restart so I'm obviously not the best person to code this up..
here is the code with the minor changes.
If anyone can help out it would be greatly appreciated.
The reason I ask is that has become a major obstacle for me right now and I was wondering if anyone had any suggestions as to a temporary resolution. In realtime after a very short time period the indicator values are plotted incorrectly and I can't figure how the values are being calculated.
Stevehare2003 posted the following code in an earlier post http://forum.esignalcentral.com/show...&threadid=3575
I made a simple change use the rawtime() function instead of getValue() for detecting a change in rawtime().
I would like to have the efs load as frequently as necessary to prevent the drift problem, after the completion of every bar would be the maximum amount of time between reloads and if possible maybe after a specified number of seconds every 30-60 seconds perhaps.
When I changed his code to add in getCurrentBarIndex ==0
to the
PHP Code:
if(rawtime(0) != rawtime(-1) || BARSTATE_NEWBAR && getCurrentBarIndex ==0)
here is the code with the minor changes.
PHP Code:
function main() {
var BarState = getBarState();
var nIndex = getCurrentBarIndex(); //debugPrintln("nIndex = " +nIndex);
if (nIndex < -100){return;}
if (rawtime(0) != rawtime(-1) || BarState == BARSTATE_NEWBAR) { //I know, overkill, but I check them both
barcount +=1;
nArray.unshift(close());
if (barcount > 25){nArray.pop();}//debugPrintln("bar = "+barcount+ "nArray[20] = " +nArray[20]+" close(-20) = "+close(-20));
if (nIndex >= 0 && close(-20) != nArray[20]){ debugPrintln("reloading R3 EFS"); reloadEFS();}
// Rest of code here
}
If anyone can help out it would be greatly appreciated.
Comment