PINE LIBRARY
MyNigmaPOICore

Library "MyNigmaPOICore"
fun(x)
TODO: add function description here
Parameters:
x (float): TODO: add parameter x description here
Returns: TODO: add what function returns
get_safe_atr(atr_val, atr_14)
Parameters:
atr_val (float)
atr_14 (float)
is_deep_value(is_buy, hh, ll, c, val_buy, val_sell)
Parameters:
is_buy (bool)
hh (float)
ll (float)
c (float)
val_buy (float)
val_sell (float)
draw_capsule(x1, x2, start_price, end_price, col, r_outer, r_mid, tr_transp, mid_transp, c_mid_glass)
Parameters:
x1 (int)
x2 (int)
start_price (float)
end_price (float)
col (color)
r_outer (int)
r_mid (int)
tr_transp (int)
mid_transp (int)
c_mid_glass (color)
method create_trade(is_long, price, zone_limit, safe_atr, sl_atr_mult, target_rr, c_tp_glass, c_sl_glass, c_mid_glass, r_outer, r_mid, tr_transp, mid_transp)
Namespace types: series bool, simple bool, input bool, const bool
Parameters:
is_long (bool)
price (float)
zone_limit (float)
safe_atr (float)
sl_atr_mult (float)
target_rr (float)
c_tp_glass (color)
c_sl_glass (color)
c_mid_glass (color)
r_outer (int)
r_mid (int)
tr_transp (int)
mid_transp (int)
method create_pending_order(is_bull, fvg_top, fvg_btm, zone_limit)
Namespace types: series bool, simple bool, input bool, const bool
Parameters:
is_bull (bool)
fvg_top (float)
fvg_btm (float)
zone_limit (float)
detect_pivots(len_pivot)
Parameters:
len_pivot (int)
create_pivot_line(pivot_idx, pivot_price, is_high)
Parameters:
pivot_idx (int)
pivot_price (float)
is_high (bool)
method update_pivot_point(pp, h, l, c)
Namespace types: PivotPoint
Parameters:
pp (PivotPoint)
h (float)
l (float)
c (float)
detect_fvg(mode_scalp, safe_atr, fvg_atr_mult_scalp, fvg_atr_mult_normal)
Parameters:
mode_scalp (bool)
safe_atr (float)
fvg_atr_mult_scalp (float)
fvg_atr_mult_normal (float)
create_fvg(is_bull, top, btm, line_col, fvg_line_width, active_extend)
Parameters:
is_bull (bool)
top (float)
btm (float)
line_col (color)
fvg_line_width (int)
active_extend (int)
create_ifvg(is_bull, top, btm, active_extend)
Parameters:
is_bull (bool)
top (float)
btm (float)
active_extend (int)
method update_fvg(f, active_extend, closed_extend, base_col, is_bright)
Namespace types: FVG
Parameters:
f (FVG)
active_extend (int)
closed_extend (int)
base_col (color)
is_bright (bool)
method update_ifvg(f, active_extend)
Namespace types: iFVG
Parameters:
f (iFVG)
active_extend (int)
calculate_ob_strengths(bar_idx, swing_length)
Parameters:
bar_idx (int)
swing_length (int)
create_order_block(top, btm, bar_start, bull_str, bear_str, is_bull)
Parameters:
top (float)
btm (float)
bar_start (int)
bull_str (float)
bear_str (float)
is_bull (bool)
method update_order_block(ob)
Namespace types: OrderBlock
Parameters:
ob (OrderBlock)
method delete_order_block(ob)
Namespace types: OrderBlock
Parameters:
ob (OrderBlock)
detect_pullback(pullback_pct)
Parameters:
pullback_pct (float)
create_cisd(price, is_bull, future_bars, bull_color, bear_color, bull_label, bear_label, line_width, line_style)
Parameters:
price (float)
is_bull (bool)
future_bars (int)
bull_color (color)
bear_color (color)
bull_label (string)
bear_label (string)
line_width (int)
line_style (string)
method update_cisd(c, future_bars)
Namespace types: CISD
Parameters:
c (CISD)
future_bars (int)
method delete_cisd(c)
Namespace types: CISD
Parameters:
c (CISD)
process_breakers(lines, is_high_breaker, len_pivot, active_extend, mitigated_style, mitigated_transp, mitigated_color, delete_after_mit, mit_delete_bars)
Parameters:
lines (array<BreakerLine>)
is_high_breaker (bool)
len_pivot (int)
active_extend (int)
mitigated_style (string)
mitigated_transp (int)
mitigated_color (color)
delete_after_mit (bool)
mit_delete_bars (int)
Trade
Fields:
is_long (series bool)
entry (series float)
sl (series float)
tp (series float)
tp_bg (series box)
tp_mid_fill (series box)
tp_out_fill (series box)
sl_bg (series box)
sl_mid_fill (series box)
sl_out_fill (series box)
start_idx (series int)
result (series int)
l_tp (series line)
l_sl (series line)
icon (series label)
lbl_entry (series label)
lbl_tp (series label)
lbl_sl (series label)
FVG
Fields:
top_line (series line)
btm_line (series line)
top (series float)
btm (series float)
is_bull (series bool)
is_uni (series bool)
mitigated (series bool)
trade_ref (Trade)
creation_bar (series int)
trade_closed (series bool)
iFVG
Fields:
zone_box (series box)
zone_label (series label)
top (series float)
btm (series float)
is_bull (series bool)
mitigated (series bool)
creation_bar (series int)
PendingOrder
Fields:
is_bull (series bool)
fvg_top (series float)
fvg_btm (series float)
entry_price (series float)
zone_limit (series float)
signal_bar (series int)
filled (series bool)
expired (series bool)
BreakerLine
Fields:
id (series line)
price (series float)
creation_bar (series int)
breach_bar (series int)
mitigated (series bool)
wick_touched (series bool)
stopped (series bool)
PivotPoint
Fields:
id (series line)
price (series float)
pivot_bar (series int)
is_high (series bool)
broken (series bool)
wick_touched (series bool)
OrderBlock
Fields:
ob_box (series box)
bullish_box (series box)
bearish_box (series box)
separator_line (series line)
text_separator (series line)
top (series float)
btm (series float)
bar_start (series int)
bullish_strength (series float)
bearish_strength (series float)
is_bull (series bool)
broken (series bool)
CISD
Fields:
level (series line)
txt (series label)
completed (series bool)
start_bar (series int)
price (series float)
is_bull (series bool)
fun(x)
TODO: add function description here
Parameters:
x (float): TODO: add parameter x description here
Returns: TODO: add what function returns
get_safe_atr(atr_val, atr_14)
Parameters:
atr_val (float)
atr_14 (float)
is_deep_value(is_buy, hh, ll, c, val_buy, val_sell)
Parameters:
is_buy (bool)
hh (float)
ll (float)
c (float)
val_buy (float)
val_sell (float)
draw_capsule(x1, x2, start_price, end_price, col, r_outer, r_mid, tr_transp, mid_transp, c_mid_glass)
Parameters:
x1 (int)
x2 (int)
start_price (float)
end_price (float)
col (color)
r_outer (int)
r_mid (int)
tr_transp (int)
mid_transp (int)
c_mid_glass (color)
method create_trade(is_long, price, zone_limit, safe_atr, sl_atr_mult, target_rr, c_tp_glass, c_sl_glass, c_mid_glass, r_outer, r_mid, tr_transp, mid_transp)
Namespace types: series bool, simple bool, input bool, const bool
Parameters:
is_long (bool)
price (float)
zone_limit (float)
safe_atr (float)
sl_atr_mult (float)
target_rr (float)
c_tp_glass (color)
c_sl_glass (color)
c_mid_glass (color)
r_outer (int)
r_mid (int)
tr_transp (int)
mid_transp (int)
method create_pending_order(is_bull, fvg_top, fvg_btm, zone_limit)
Namespace types: series bool, simple bool, input bool, const bool
Parameters:
is_bull (bool)
fvg_top (float)
fvg_btm (float)
zone_limit (float)
detect_pivots(len_pivot)
Parameters:
len_pivot (int)
create_pivot_line(pivot_idx, pivot_price, is_high)
Parameters:
pivot_idx (int)
pivot_price (float)
is_high (bool)
method update_pivot_point(pp, h, l, c)
Namespace types: PivotPoint
Parameters:
pp (PivotPoint)
h (float)
l (float)
c (float)
detect_fvg(mode_scalp, safe_atr, fvg_atr_mult_scalp, fvg_atr_mult_normal)
Parameters:
mode_scalp (bool)
safe_atr (float)
fvg_atr_mult_scalp (float)
fvg_atr_mult_normal (float)
create_fvg(is_bull, top, btm, line_col, fvg_line_width, active_extend)
Parameters:
is_bull (bool)
top (float)
btm (float)
line_col (color)
fvg_line_width (int)
active_extend (int)
create_ifvg(is_bull, top, btm, active_extend)
Parameters:
is_bull (bool)
top (float)
btm (float)
active_extend (int)
method update_fvg(f, active_extend, closed_extend, base_col, is_bright)
Namespace types: FVG
Parameters:
f (FVG)
active_extend (int)
closed_extend (int)
base_col (color)
is_bright (bool)
method update_ifvg(f, active_extend)
Namespace types: iFVG
Parameters:
f (iFVG)
active_extend (int)
calculate_ob_strengths(bar_idx, swing_length)
Parameters:
bar_idx (int)
swing_length (int)
create_order_block(top, btm, bar_start, bull_str, bear_str, is_bull)
Parameters:
top (float)
btm (float)
bar_start (int)
bull_str (float)
bear_str (float)
is_bull (bool)
method update_order_block(ob)
Namespace types: OrderBlock
Parameters:
ob (OrderBlock)
method delete_order_block(ob)
Namespace types: OrderBlock
Parameters:
ob (OrderBlock)
detect_pullback(pullback_pct)
Parameters:
pullback_pct (float)
create_cisd(price, is_bull, future_bars, bull_color, bear_color, bull_label, bear_label, line_width, line_style)
Parameters:
price (float)
is_bull (bool)
future_bars (int)
bull_color (color)
bear_color (color)
bull_label (string)
bear_label (string)
line_width (int)
line_style (string)
method update_cisd(c, future_bars)
Namespace types: CISD
Parameters:
c (CISD)
future_bars (int)
method delete_cisd(c)
Namespace types: CISD
Parameters:
c (CISD)
process_breakers(lines, is_high_breaker, len_pivot, active_extend, mitigated_style, mitigated_transp, mitigated_color, delete_after_mit, mit_delete_bars)
Parameters:
lines (array<BreakerLine>)
is_high_breaker (bool)
len_pivot (int)
active_extend (int)
mitigated_style (string)
mitigated_transp (int)
mitigated_color (color)
delete_after_mit (bool)
mit_delete_bars (int)
Trade
Fields:
is_long (series bool)
entry (series float)
sl (series float)
tp (series float)
tp_bg (series box)
tp_mid_fill (series box)
tp_out_fill (series box)
sl_bg (series box)
sl_mid_fill (series box)
sl_out_fill (series box)
start_idx (series int)
result (series int)
l_tp (series line)
l_sl (series line)
icon (series label)
lbl_entry (series label)
lbl_tp (series label)
lbl_sl (series label)
FVG
Fields:
top_line (series line)
btm_line (series line)
top (series float)
btm (series float)
is_bull (series bool)
is_uni (series bool)
mitigated (series bool)
trade_ref (Trade)
creation_bar (series int)
trade_closed (series bool)
iFVG
Fields:
zone_box (series box)
zone_label (series label)
top (series float)
btm (series float)
is_bull (series bool)
mitigated (series bool)
creation_bar (series int)
PendingOrder
Fields:
is_bull (series bool)
fvg_top (series float)
fvg_btm (series float)
entry_price (series float)
zone_limit (series float)
signal_bar (series int)
filled (series bool)
expired (series bool)
BreakerLine
Fields:
id (series line)
price (series float)
creation_bar (series int)
breach_bar (series int)
mitigated (series bool)
wick_touched (series bool)
stopped (series bool)
PivotPoint
Fields:
id (series line)
price (series float)
pivot_bar (series int)
is_high (series bool)
broken (series bool)
wick_touched (series bool)
OrderBlock
Fields:
ob_box (series box)
bullish_box (series box)
bearish_box (series box)
separator_line (series line)
text_separator (series line)
top (series float)
btm (series float)
bar_start (series int)
bullish_strength (series float)
bearish_strength (series float)
is_bull (series bool)
broken (series bool)
CISD
Fields:
level (series line)
txt (series label)
completed (series bool)
start_bar (series int)
price (series float)
is_bull (series bool)
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.