Hi,
I'd like to get the highest high and plot it's value for, say, Bar 21 through 30. I've been able to get something that works.
Do any of the EFS Gurus have a faster, more elegant solution ? Is there something available in E-signal that can do this better ?
And yes, this is just checking for 30. I do it again for each Bar, to 21.
Best Regards,
Glenn
if( ( high(-30) >= high(-29) ) &&
( high(-30) >= high(-28) ) &&
( high(-30) >= high(-27) ) &&
( high(-30) >= high(-26) ) &&
( high(-30) >= high(-25) ) &&
( high(-30) >= high(-24) ) &&
( high(-30) >= high(-23) ) &&
( high(-30) >= high(-22) ) &&
( high(-30) >= high(-21) ) )
{
Y = high(-30);
cc = formatPriceNumber(Y);
drawTextRelative(-30,high(-30),cc,Color.aqua,null,Text.CENTER,"Calibri",10,0) ;
I'd like to get the highest high and plot it's value for, say, Bar 21 through 30. I've been able to get something that works.
Do any of the EFS Gurus have a faster, more elegant solution ? Is there something available in E-signal that can do this better ?
And yes, this is just checking for 30. I do it again for each Bar, to 21.
Best Regards,
Glenn
if( ( high(-30) >= high(-29) ) &&
( high(-30) >= high(-28) ) &&
( high(-30) >= high(-27) ) &&
( high(-30) >= high(-26) ) &&
( high(-30) >= high(-25) ) &&
( high(-30) >= high(-24) ) &&
( high(-30) >= high(-23) ) &&
( high(-30) >= high(-22) ) &&
( high(-30) >= high(-21) ) )
{
Y = high(-30);
cc = formatPriceNumber(Y);
drawTextRelative(-30,high(-30),cc,Color.aqua,null,Text.CENTER,"Calibri",10,0) ;
Comment