You Are At The Daily And Or Period Pivot Only Page
No There Is No Charge - If You Learn Or Get Something From It  - Contribute What You Think It Is Worth - Trading Is A Craft - I Should Learn It Well

"If, by chance, something less or more proper or necessary I omitted, your indulgence for me is entreated, as there is no one who is without fault, and in all things altogether circumspect." - Fibonacci
Contribute Here - Thank You
Return To Indicators - TOS Scripts - Page

Daily And Or Period Calculated Pivot Only
Select the period you want and you have that periods pivot. It is always painting the next periods pivot.

 Select the period you want the pivot for and whether you want only current period or show all previous periods.
By selecting yes or no - show only this period.



Daily period - showing all previous periods. The next periods plot is always visible.
If you choose show bubble, it is always plotting on the next period, not the current period, your call to show or not.




Script For Think Or Swim - Copy & Paste

input timeFrame = {default  DAY, "2 DAYS", "3 DAYS", "4 DAYS", "1 HOUR", "2 HOURS", "4 HOURS", "8 HOURS", "3 MIN", "5 MIN", "10 MIN", "15 MIN", "30 MIN", WEEK, MONTH, "OPT EXP"};
input ShowOnlyThisPeriod = no;

def range = high(period = timeFrame)[1] - low(period = timeFrame)[1];

def H1;
plot PP;
def L1;

if ShowOnlyThisPeriod and !IsNaN(close(period = timeFrame)[-1])
then {
    H1 = Double.NaN;
    PP = Double.NaN;
    L1 = Double.NaN;
  } else {
    PP = (high(period = timeFrame)[1] + low(period = timeFrame)[1] + close(period = timeFrame)[1]) / 3;
    H1 = close(period = timeFrame)[1] +  range * (0.0);
 
    L1 = close(period = timeFrame)[1] -  range * (0.0);



Investing And Trading Involve Significant Financial Risk And Is Not Suitable For Everyone. All Information Is Intended For Educational Purposes Only.
To the fullest extent of the law, we will not be liable to any person or entity for the quality, accuracy, completeness, reliability, or timeliness of the information provided on this website,
 or for any direct, indirect, consequential, incidental, special or punitive  damages that may arise out of the use of information we provide to any person or entity
 (including, but not limited to, lost profits, loss of opportunities, trading losses, and damages that may result from any inaccuracy or incompleteness of this information).
We encourage you to invest carefully and read investment information available at the websites of the SEC at http://www.sec.gov and FINRA at http://www.finra.org.

IF YOU DO NOT AGREE WITH THE TERMS OF THIS DISCLAIMER, PLEASE EXIT THIS SITE IMMEDIATELY.  PLEASE BE ADVISED THAT YOUR CONTINUED USE OF THIS SITE
 OR THE INFORMATION PROVIDED HEREIN SHALL INDICATE YOUR CONSENT AND AGREEMENT TO THESE TERMS.


Honor - Respect - Freedom - Country