I made some changes to simplify things. Make there less to remember. Also added greater than (or equal to)/less than (or equal to) functions to easily compare prices of prior candlesticks wherein the distance is fixed. Default is prior bar
Added:
gt(_a, _b, _off, _e)
a >= b[off]
Parameters:
_a: (float) Queried Attribute
_b: (float) Reference Attribute
_off: (int) Offset
_e: (bool) (True = >=) | (False = >)
Returns: (bool) true if a > b[off]. Defaults: _off = 1. _e = false
lt(_a, _b, _off, _e)
a <= b[off]
Parameters:
_a: (float) Queried Attribute
_b: (float) Reference Attribute
_off: (int) Offset
_e: (bool) (True = <=) | (False = <)
Returns: (bool) true if a < b[off]. Defaults: _off = 1. _e = false
oGTo(_off)
open > open[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if open > open[off]
oGTh(_off)
open > high[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if open > high[off]
oGTl(_off)
open > low[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if open > low[off]
oGTc(_off)
open > close[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if open > close[off]
oLTo(_off)
open < open[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if open < open[off]
oLTh(_off)
open < high[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if open < high[off]
oLTl(_off)
open < low[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if open < low[off]
oLTc(_off)
open < close[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if open < close[off]
hGTo(_off)
high > open[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if high > open[off]
hGTh(_off)
high > high[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if high > high[off]
hGTl(_off)
high > low[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if high > low[off]
hGTc(_off)
high > close[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if high > close[off]
hLTo(_off)
high < open[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if high < open[off]
hLTh(_off)
high < high[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if high < high[off]
hLTl(_off)
high < low[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if high < low[off]
hLTc(_off)
high < close[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if high < close[off]
lGTo(_off)
low > open[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if low > open[off]
lGTh(_off)
low > high[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if low > high[off]
lGTl(_off)
low > low[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if low > low[off]
lGTc(_off)
low > close[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if low > close[off]
lLTo(_off)
low < open[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if low < open[off]
lLTh(_off)
low < high[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if low < high[off]
lLTl(_off)
low < low[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if low < low[off]
lLTc(_off)
low < close[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if low < close[off]
cGTo(_off)
close > open[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if close > open[off]
cGTh(_off)
close > high[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if close > high[off]
cGTl(_off)
close > low[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if close > low[off]
cGTc(_off)
close > close[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if close > close[off]
cLTo(_off)
close < open[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if close < open[off]
cLTh(_off)
close < high[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if close < high[off]
cLTl(_off)
close < low[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if close < low[off]
cLTc(_off)
close < close[off]
Parameters:
_off: (int) Offset
Returns: (bool) true if close < close[off]
Updated:
priceFromSp(_sp)
Price At Scalar Position of Bar
Parameters:
_sp: (float) Format: 0.XX Scalar Position of Price
Returns: the price of the corresponding Scalar Price Posiiton on current candle from argument rounded to mintick
bullbar(_off)
Bull Bar
Parameters:
_off
Returns: (bool) true if close > open
bearbar(_off)
Bear Bar
Parameters:
_off
Returns: (bool) true if close < open
Removed:
pb_gt(_a, _b, _off)
a > b[off]
pb_gte(_a, _b, _off)
a >= b[off]
pb_lt(_a, _b, _off)
a < b[off]
pb_lte(_a, _b, _off)
a <= b[off]