This function is available on the Add Study window and in the Formula Toolbox.
MaxPrd returns the maximum value of an expression looking back over a specific number of bars. The unique value of MaxPrd the number of bars in the look back is determined by a condition being met.
For example: MaxPrd(High(@),BarsSince (MA1(@,9) Xabove MA2(@,18) returns to highest value traded since the first moving average crossed above the second moving average.
Example: MaxPrd(@,6)
|
Parameter |
Description |
|
Display |
Opens a sub-window with display properties: •Color = Select a line color. •Weight = Type a value for line thickness. •Display = Select line style: line, histogram, or dash. •ShareScale = Assign a behavior for functions and studies sharing the vertical scale: •Auto = System determine whether sharing is feasible. •On = Scale is shared regardless of the functions and studies displayed. •Off = Scale is not shared. |
|
MarkIt |
Opens the Specify Conditions for Marking Bar window. |
|
Price |
Price used for calculations. |
|
Period |
Number of bars used in the calculation. |