|
|||||||||||||||||||
|
|||||||||||||||||||
| Special offer: buy AmiBroker and EOD+Real-Time Data |
|
The name of the user function is PivotPoint. This user function will calculate the pivot point values. It will also allow the user to easily specify the method that will be used to calculate the pivot points. The "method" input is used to determine how the pivot points will be calculated (1= traditional; 2 = variation 1; 3 = variation 2). The EasyLanguage for the user function is thus: Type: Function, Name: PivotPoint Input: Method(NumericSimple); If Method <= 1 Then PivotPoint = (High[1] + Low[1] + Close[1]) / 3; If Method = 2 Then PivotPoint = (High[1] + Low[1] + Close[1] + Open) / 4; If Method >= 3 Then PivotPoint = (High[1] + Low[1] + Open) / 3; The second indicator, Pivot Point Average, plots the pivot point value, as well as a moving average of the pivot point value. The "method" input determines how the pivot point value will be calculated. The "smooth" input determines the number of bars used to calculate the moving average of the pivot point value. The complete formatting for the indicator follows the EasyLanguage. Type: Indicator, Name: Pivot Point Average Input: Method(1), Smooth(3); Variables: Pivot(0), PivotAvg(0), Length(0); Pivot = PivotPoint(Method); Length = MaxList(1, Smooth); PivotAvg = Average(Pivot, Length); Plot1(Pivot, "Pivot"); If CurrentBar >= Length Then Plot2(PivotAvg, "SmoothPivot"); Chart Style: PlotName Style Weight Pivot Point medium SmoothPivot Line thinnest Scaling: Same as symbol This EasyLanguage code for the pivot point function and indicators is also available from Omega Research's Website. The name of the posted file is "PivPoint.ELS." -- Gaston Sanchez, Omega Research Inc. 800 422-8587, 305 270-1095 http://www.omegaresearch.com Code:
all formulas for TradeStation all formulas
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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. |
|
|