log in     sign up for free
 
The trading rules I live by are: 1. Cut losses. 2. Ride winners. 3. Keep bets small. 4. Follow the rules without question. 5. Know when to break the rules.
Ed Seykota
 
 
Home
systems (284)
 
Special offer: buy MetaStock (try for free)   |   Reuters QuoteCenter Real-Time Data (get a free month)   |   EOD Data
 
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

Quarterly Pivots

Formula for: TradeStation

indicator


 

 

Views:  1528

Added: July 17, 2008
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 

email this link

 
 
Tags: TradeStation, indicator
 
Your Ad Here
This code plots a central pivot value based on the High, Low & Close of the most recently completed quarter (Jan-Mar, Apr-Jun, Jul-Sep, Oct-Dec).

You should be able to modify the code fairly easily to perform other similar calculations.

 

 



Code:

Type : Indicator, Name : Quarterly Pivots

Vars:
Mo(0),
RefHi(0),
RefLo(0),
QuarterC(0),
QuarterH(0),
QuarterL(0),
QPivot(0) ;

{ uses Mod function to detect new quarter: month = 1,4,7, or 10}
Mo = Mod(Month(Date)-1, 3) ;

{ new quarter detected}
If Mo < Mo[1] then begin
QuarterC = C[1] ;
QuarterH = RefHi ;
QuarterL = RefLo ;
RefHi = H ;
RefLo = L ;
QPivot = (QuarterC + QuarterH + QuarterL) / 3 ;
End ;

{ update quarterly high / low}
If H > RefHi then RefHi = H ;
If L < RefLo then RefLo = L ;

If QPivot > 0 then
Plot1(QPivot, "Pivot") ;


 





Source: https://www.tradestation.com

 

View similar (indicator for TradeStation):

Relative Vigor Index
RSI of Volatility
LBR_HistVoltyRatio
Moving Beyond the Closing Price
Ichimoku Charts
## Retr Indicator
Weekly Hi-Lo Lines
Adaptive Stochastic Oscillator
Hilbert Channel Indicator
Stochastics
...
 
 
all formulas for TradeStation
all formulas

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
 
Privacy note | (c) copyrights systems4trading.com 2006-2012