PINE LIBRARY
TradeTracker

Library "TradeTracker"
Simple Library for tracking trades
method track(this)
tracks trade when called on every bar
Namespace types: Trade
Parameters:
this (Trade): Trade object
Returns: current Trade object
Trade
Has the constituents to track trades generated by any method.
Fields:
id (series int)
direction (series int): Trade direction. Positive values for long and negative values for short trades
initialEntry (series float): Initial entry price. This value will not change even if the entry is changed in the lifecycle of the trade
entry (series float): Updated entry price. Allows variations to initial calculated entry. Useful in cases of trailing entry.
initialStop (series float): Initial stop. Similar to initial entry, this is the first calculated stop for the lifecycle of trade.
stop (series float): Trailing Stop. If there is no trailing, the value will be same as that of initial trade
targets (array<float>): array of target values.
startBar (series int): bar index of starting bar. Set by default when object is created. No need to alter this after that.
endBar (series int): bar index of last bar in trade. Set by tracker on each execution
startTime (series int): time of the start bar. Set by default when object is created. No need to alter this after that.
endTime (series int): time of the ending bar. Updated by tracking method.
status (series int): Integer parameter to track the status of the trade
retest (series bool): Boolean parameter to notify if there was retest of the entry price
Simple Library for tracking trades
method track(this)
tracks trade when called on every bar
Namespace types: Trade
Parameters:
this (Trade): Trade object
Returns: current Trade object
Trade
Has the constituents to track trades generated by any method.
Fields:
id (series int)
direction (series int): Trade direction. Positive values for long and negative values for short trades
initialEntry (series float): Initial entry price. This value will not change even if the entry is changed in the lifecycle of the trade
entry (series float): Updated entry price. Allows variations to initial calculated entry. Useful in cases of trailing entry.
initialStop (series float): Initial stop. Similar to initial entry, this is the first calculated stop for the lifecycle of trade.
stop (series float): Trailing Stop. If there is no trailing, the value will be same as that of initial trade
targets (array<float>): array of target values.
startBar (series int): bar index of starting bar. Set by default when object is created. No need to alter this after that.
endBar (series int): bar index of last bar in trade. Set by tracker on each execution
startTime (series int): time of the start bar. Set by default when object is created. No need to alter this after that.
endTime (series int): time of the ending bar. Updated by tracking method.
status (series int): Integer parameter to track the status of the trade
retest (series bool): Boolean parameter to notify if there was retest of the entry price
Biblioteca do Pine
No verdadeiro espirito do TradingView, o autor desse código Pine o publicou como uma biblioteca de código aberto, para que outros programadores Pine da nossa comunidade possam reusa-los. Parabéns ao autor! Você pode usar essa biblioteca privadamente ou em outras publicações de código aberto, mas a reutilização desse código em publicações é regida pelas Regras da Casa.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Biblioteca do Pine
No verdadeiro espirito do TradingView, o autor desse código Pine o publicou como uma biblioteca de código aberto, para que outros programadores Pine da nossa comunidade possam reusa-los. Parabéns ao autor! Você pode usar essa biblioteca privadamente ou em outras publicações de código aberto, mas a reutilização desse código em publicações é regida pelas Regras da Casa.
Trial - trendoscope.io/trial
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Subscribe - trendoscope.io/pricing
Blog - docs.trendoscope.io
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.