Hi! This script shows several rsi lines in the same chart. When i switch between different intervals like 60 min to 5 esignal almost stops working. At the best it takes 30 seconds to change..
Is it the same for you guys? Is it possible to program in some other way so it works much faster?
Thanks!!
var myRSIStudy = new Array();
var myRSIValues = new Array();
//== preMain function use to define defaults
function preMain()
{
setStudyTitle("MultiRSI");
/*
* Set the properties of the default bar. These will be the
* properties of any bar for which style, color, thickness is
* not specificed.
*/
var i=0;
for (i = 0; i <=21; i++){
setCursorLabelName("RSI-" + (i+5), i);
setDefaultBarFgColor(Color.RGB((i+180),(i*10),(i*1 0)), i); // These might make some UGLY colors
setDefaultBarStyle(PS_SOLID,i);
}
/* Uncomment the statement below this to make it a price study! */
// setPriceStudy(true);
}
//== Main Function - EFS workhorse
function main()
{
var i = 0;
for (i=0;i<=21; i++){
myRSIStudy[i] = new RSIStudy(5+i,"Close");
myRSIValues[i] = myRSIStudy[i].getValue(RSIStudy.RSI);
}
return myRSIValues;
}
Is it the same for you guys? Is it possible to program in some other way so it works much faster?
Thanks!!
var myRSIStudy = new Array();
var myRSIValues = new Array();
//== preMain function use to define defaults
function preMain()
{
setStudyTitle("MultiRSI");
/*
* Set the properties of the default bar. These will be the
* properties of any bar for which style, color, thickness is
* not specificed.
*/
var i=0;
for (i = 0; i <=21; i++){
setCursorLabelName("RSI-" + (i+5), i);
setDefaultBarFgColor(Color.RGB((i+180),(i*10),(i*1 0)), i); // These might make some UGLY colors
setDefaultBarStyle(PS_SOLID,i);
}
/* Uncomment the statement below this to make it a price study! */
// setPriceStudy(true);
}
//== Main Function - EFS workhorse
function main()
{
var i = 0;
for (i=0;i<=21; i++){
myRSIStudy[i] = new RSIStudy(5+i,"Close");
myRSIValues[i] = myRSIStudy[i].getValue(RSIStudy.RSI);
}
return myRSIValues;
}
Comment