PINE LIBRARY
PineTraderOT_V6

Library "PineTraderOT_V6"
TODO: Simplify the order ticket generation for Pinetrader.io
GenerateOT(license_id, symbol, action, order_type, trade_type, size, price, tp, sl, risk, trailPrice, trailOffset)
CreateOrderTicket: Establishes a order ticket following appropriate guidelines.
Parameters:
license_id (string): Provide your license index
symbol (string): Symbol on which to execute the trade
action (string): Execution method of the trade : "MRKT" or "PENDING"
order_type (string): Direction type of the order: "BUY" or "SELL"
trade_type (string): Is it a "SPREAD" trade or a "SINGLE" symbol execution?
size (float): Size of the trade, in units
price (float): If the order is pending you must specify the execution price
tp (float): (Optional) Take profit of the order [price, ticks, percent]
sl (float): (Optional) Stop loss of the order [price, ticks, percent]
risk (float): Percent to risk for the trade, if size not specified
trailPrice (float): (Optional) Price at which trailing stop is starting
trailOffset (float): (Optional) Amount to trail by [percent, ticks]
Returns: Return Order string
TODO: Simplify the order ticket generation for Pinetrader.io
GenerateOT(license_id, symbol, action, order_type, trade_type, size, price, tp, sl, risk, trailPrice, trailOffset)
CreateOrderTicket: Establishes a order ticket following appropriate guidelines.
Parameters:
license_id (string): Provide your license index
symbol (string): Symbol on which to execute the trade
action (string): Execution method of the trade : "MRKT" or "PENDING"
order_type (string): Direction type of the order: "BUY" or "SELL"
trade_type (string): Is it a "SPREAD" trade or a "SINGLE" symbol execution?
size (float): Size of the trade, in units
price (float): If the order is pending you must specify the execution price
tp (float): (Optional) Take profit of the order [price, ticks, percent]
sl (float): (Optional) Stop loss of the order [price, ticks, percent]
risk (float): Percent to risk for the trade, if size not specified
trailPrice (float): (Optional) Price at which trailing stop is starting
trailOffset (float): (Optional) Amount to trail by [percent, ticks]
Returns: Return Order string
Pine kitaplığı
Gerçek TradingView ruhuyla, yazar bu Pine kodunu açık kaynaklı bir kütüphane olarak yayınladı, böylece topluluğumuzdaki diğer Pine programcıları onu yeniden kullanabilir. Yazara saygı! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Site Kuralları tarafından yönetilmektedir.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Pine kitaplığı
Gerçek TradingView ruhuyla, yazar bu Pine kodunu açık kaynaklı bir kütüphane olarak yayınladı, böylece topluluğumuzdaki diğer Pine programcıları onu yeniden kullanabilir. Yazara saygı! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Site Kuralları tarafından yönetilmektedir.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.