|
Description |
This function determines whether the current high is a new high. |
|
|
Formula |
NewHigh(instrument,distance)=begin bNewHigh = FALSE if vchart(disttomax(instrument.high,0,distance)[-1]) < 2 then begin if instrument.high>vchart(instrument.high[0]) then bNewHigh=TRUE end bNewHigh end |
|
|
Parameters |
instrument An instrument.
distance The number of bars to test. |
|
|
Return Value |
TRUE or FALSE |
|
|
Examples |
... if NewHigh($1, targetBar) == TRUE then begin ... |
|
|
Comments |
NA |
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.