Hi,
I have a BarColor-problem, after I restart eSignal. If I insert the indicator in a new chart, all ok, but if I restart eSignal with the saved chart, the Bars "Receiving", but the Bars are not colored correctly. If I reload the indicator, nothing happens.
PB.efs
PB_load.efs
I have a BarColor-problem, after I restart eSignal. If I insert the indicator in a new chart, all ok, but if I restart eSignal with the saved chart, the Bars "Receiving", but the Bars are not colored correctly. If I reload the indicator, nothing happens.
PB.efs
PHP Code:
function preMain()
{
setPriceStudy(true);
setStudyTitle("PB");
}
function main()
{
var PB;
if (cci(20) >= 100) PB = 1;
else if ((cci(20) < 100) && (cci(20) > -100)) PB = 0;
else PB = -1;
//...
return PB;
}
PB_load.efs
PHP Code:
function preMain()
{
setPriceStudy(true);
setStudyTitle("PB_load");
}
var bInit = false;
function main()
{
if (bInit == false)
{
PB = efs("PB.efs");
bInit = true;
}
if (PB.getValue(0) == 1) setPriceBarColor(Color.blue);
else if (PB.getValue(0) == 0) setPriceBarColor(Color.yellow);
else setPriceBarColor(Color.red);
return;
}
Comment