Re: Pivots scripts
Posted: Wed Mar 20, 2019 6:37 pm
Yikes -- I accidentally posted an early draft version of my pivot script above. So, switch out this portion of the code:
endbar=barnum+bpd+1;
For (i=-1 to bpd-1 by 1)
{
IF(low<mylow)mylow=low;
IF (high>myhigh)myhigh=high;
}
with this
and you will be good to go. Hope I haven't caused to many headaches.
Earik, while we're still on the subject of intraday pivots, is there a way to display only the levels for the current day, and exclude preceding days?
Todd
endbar=barnum+bpd+1;
For (i=-1 to bpd-1 by 1)
{
IF(low<mylow)mylow=low;
IF (high>myhigh)myhigh=high;
}
with this
Code: Select all
endbar=barnum+bpd;
For (i=1 to bpd-1 by 1)
{
IF(low[i]<mylow)mylow=low[i];
IF (high[i]>myhigh)myhigh=high[i];
}
Earik, while we're still on the subject of intraday pivots, is there a way to display only the levels for the current day, and exclude preceding days?
Todd