Library "threengine_global_automation_library"
A collection of functions used for trade automation
getBaseCurrency()
Gets the base currency for the chart's ticker. Supported trade pairs are USD, USDT, USDC, BTC, and PERP.
Returns: Base currency as a string
getChartSymbol()
Get the current chart's symbol without the base currency appended to it. Supported trade paris are USD, USDT, USDC, BTC, and PERP.
Returns: Ssymbol and base currency
getDecimals()
Calculates how many decimals are on the quote price of the current market
Returns: The current deimal places on the market quote price
checkVar()
Plot a string as a label on the chart to test variable value. Use str.tostring() for any variable that isn't a string.
Returns: Label with stringified variable
getStrategyAlertMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a long entry
taGetAdx()
Calculates the Average Directional Index
Returns: The value of ADX as a float
taGetEma()
Calculates the EMA based on a type, source, and length. Supported types are EMA, SMA, RMA, and WMA.
Returns: The value of the selected EMA
isBetweenTwoTimes()
Checks to see if within a rage based on two times
@retunrs true/false boolean
getAllTradeIDs()
This gets all closed trades and open trades
@retunrs an array of all open and closed trade ID's
getOpenTradeIDs()
This gets all open trades
@retunrs an array of all open trade ID's
orderAlreadyExists()
This checks to see if a provided order id uses the getAllTradeIDs() function to check
@retunrs an array of all open and closed trade ID's
orderCurrentlyExists()
This checks to see if a provided order id uses the getAllTradeIDs() function to check
Returns: an array of all open and closed trade ID's
getContractCount()
calulates the number of contracts you can buy with a set amount of capital and a limit price
Returns: number of contracts you can buy based on amount of capital you want to use and a price
getLadderSteps()
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
A collection of functions used for trade automation
getBaseCurrency()
Gets the base currency for the chart's ticker. Supported trade pairs are USD, USDT, USDC, BTC, and PERP.
Returns: Base currency as a string
getChartSymbol()
Get the current chart's symbol without the base currency appended to it. Supported trade paris are USD, USDT, USDC, BTC, and PERP.
Returns: Ssymbol and base currency
getDecimals()
Calculates how many decimals are on the quote price of the current market
Returns: The current deimal places on the market quote price
checkVar()
Plot a string as a label on the chart to test variable value. Use str.tostring() for any variable that isn't a string.
Returns: Label with stringified variable
getStrategyAlertMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a long entry
taGetAdx()
Calculates the Average Directional Index
Returns: The value of ADX as a float
taGetEma()
Calculates the EMA based on a type, source, and length. Supported types are EMA, SMA, RMA, and WMA.
Returns: The value of the selected EMA
isBetweenTwoTimes()
Checks to see if within a rage based on two times
@retunrs true/false boolean
getAllTradeIDs()
This gets all closed trades and open trades
@retunrs an array of all open and closed trade ID's
getOpenTradeIDs()
This gets all open trades
@retunrs an array of all open trade ID's
orderAlreadyExists()
This checks to see if a provided order id uses the getAllTradeIDs() function to check
@retunrs an array of all open and closed trade ID's
orderCurrentlyExists()
This checks to see if a provided order id uses the getAllTradeIDs() function to check
Returns: an array of all open and closed trade ID's
getContractCount()
calulates the number of contracts you can buy with a set amount of capital and a limit price
Returns: number of contracts you can buy based on amount of capital you want to use and a price
getLadderSteps()
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
版本注释:
v2
Added:
getLadderInSteps()
Constructs arrays used for creating strategy entry orders via a for loop
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
getLadderOutSteps()
Constructs arrays used for creating strategy exit orders via a for loop
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
Removed:
getLadderSteps()
Added:
getLadderInSteps()
Constructs arrays used for creating strategy entry orders via a for loop
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
getLadderOutSteps()
Constructs arrays used for creating strategy exit orders via a for loop
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
Removed:
getLadderSteps()
版本注释:
v3
版本注释:
v4
版本注释:
v5
Added:
getPriceOfFirstClosedTradeSince()
This gets all closed trades since a provided bar number
@retunrs three arrays: closed trade IDs, closing bar number, and closing price
Added:
getPriceOfFirstClosedTradeSince()
This gets all closed trades since a provided bar number
@retunrs three arrays: closed trade IDs, closing bar number, and closing price
版本注释:
v6
Added:
getClosedTradeSince()
This gets all closed trades since a provided bar number
@retunrs three arrays: closed trade IDs, closing bar number, and closing price
Removed:
getPriceOfFirstClosedTradeSince()
This gets all closed trades since a provided bar number
@retunrs three arrays: closed trade IDs, closing bar number, and closing price
Added:
getClosedTradeSince()
This gets all closed trades since a provided bar number
@retunrs three arrays: closed trade IDs, closing bar number, and closing price
Removed:
getPriceOfFirstClosedTradeSince()
This gets all closed trades since a provided bar number
@retunrs three arrays: closed trade IDs, closing bar number, and closing price
版本注释:
v7
Updated:
getClosedTradeSince()
This gets all closed trades since a provided bar number
@retunrs three arrays: closed trade IDs, closing bar number, and closing price
Updated:
getClosedTradeSince()
This gets all closed trades since a provided bar number
@retunrs three arrays: closed trade IDs, closing bar number, and closing price
版本注释:
v8
Added:
getLadderStart()
Detect when the ladder has started to fill so that the ladder start can be locked to the initial strategy entry price. After trades close, reset it back to zero.
Returns: Locked ladder start price and the bar number that the first ladder was filled on
getAveragePriceOfFilledLadders()
Keeps count of the number of ladder orders that have been filled for an strategy entry
Returns: maximum number of ladder orders filled
Added:
getLadderStart()
Detect when the ladder has started to fill so that the ladder start can be locked to the initial strategy entry price. After trades close, reset it back to zero.
Returns: Locked ladder start price and the bar number that the first ladder was filled on
getAveragePriceOfFilledLadders()
Keeps count of the number of ladder orders that have been filled for an strategy entry
Returns: maximum number of ladder orders filled
版本注释:
v9
Added:
getLockedLadderStart()
Detect when the ladder has started to fill so that the ladder start can be locked to the initial strategy entry price. After trades close, reset it back to zero.
Returns: Locked ladder start price and the bar number that the first ladder was filled on
Removed:
getLadderStart()
Detect when the ladder has started to fill so that the ladder start can be locked to the initial strategy entry price. After trades close, reset it back to zero.
Added:
getLockedLadderStart()
Detect when the ladder has started to fill so that the ladder start can be locked to the initial strategy entry price. After trades close, reset it back to zero.
Returns: Locked ladder start price and the bar number that the first ladder was filled on
Removed:
getLadderStart()
Detect when the ladder has started to fill so that the ladder start can be locked to the initial strategy entry price. After trades close, reset it back to zero.
版本注释:
v10
Added:
orderAlreadyClosedSince()
Checks to see if a trade has already closed since a past bar number
@retunrs boolean of whether provided trade id has already closed since provided bar number
Added:
orderAlreadyClosedSince()
Checks to see if a trade has already closed since a past bar number
@retunrs boolean of whether provided trade id has already closed since provided bar number
版本注释:
v11
Added:
taGetVwap()
Calculates VWAP based on provided src, anchor, and multiplier
Returns: VWAP, lower band, and upper band
Added:
taGetVwap()
Calculates VWAP based on provided src, anchor, and multiplier
Returns: VWAP, lower band, and upper band
版本注释:
v12
版本注释:
v13
版本注释:
v14
Updated:
taGetVwap()
Calculates VWAP based on provided src, anchor, and multiplier
Returns: VWAP, lower band, and upper band
Updated:
taGetVwap()
Calculates VWAP based on provided src, anchor, and multiplier
Returns: VWAP, lower band, and upper band
版本注释:
v15
Added:
getAlertatronAlertMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a long entry
Added:
getAlertatronAlertMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a long entry
版本注释:
v16
Updated:
getAlertatronAlertMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a long entry
Updated:
getAlertatronAlertMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a long entry
版本注释:
v17
Added:
getAlertatronExitMessage()
Generates stringified JSON for a limit Exit that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a exit entry
Added:
getAlertatronExitMessage()
Generates stringified JSON for a limit Exit that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a exit entry
版本注释:
v18
Updated:
getAlertatronAlertMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for an entry.
Returns: Stringifed JSON for an entry
getAlertatronExitMessage()
Generates stringified JSON for a limit Exit that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a exit entry
Updated:
getAlertatronAlertMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for an entry.
Returns: Stringifed JSON for an entry
getAlertatronExitMessage()
Generates stringified JSON for a limit Exit that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a exit entry
版本注释:
v19
Added a forward slash (/) between the symbol and the base currency to match Alertatron formatting.
Added a forward slash (/) between the symbol and the base currency to match Alertatron formatting.
版本注释:
v20
版本注释:
v21
Added:
getAlertatronEntryMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for an entry.
Returns: Stringifed JSON for an entry
Removed:
getAlertatronAlertMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for an entry.
Added:
getAlertatronEntryMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for an entry.
Returns: Stringifed JSON for an entry
Removed:
getAlertatronAlertMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for an entry.
版本注释:
v22
Changed ladder lot size to be a standard size for each rung instead of splitting a total amount across the number of rungs.
Changed ladder lot size to be a standard size for each rung instead of splitting a total amount across the number of rungs.
版本注释:
v23
Added:
getRateOfChange()
Calulates the rate of change of a series based on a look back length
Returns: the rate of change as a float
Added:
getRateOfChange()
Calulates the rate of change of a series based on a look back length
Returns: the rate of change as a float
版本注释:
v24
Updated:
getAlertatronEntryMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for an entry.
Returns: Stringifed JSON for an entry
getAlertatronExitMessage()
Generates stringified JSON for a limit Exit that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a exit entry
Updated:
getAlertatronEntryMessage()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for an entry.
Returns: Stringifed JSON for an entry
getAlertatronExitMessage()
Generates stringified JSON for a limit Exit that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a exit entry
版本注释:
v25
Added:
getPairDividerForExchange()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a long entry
Added:
getPairDividerForExchange()
Generates stringified JSON for a limit order that can be passed to the strategy alert_message for a long entry.
Returns: Stringifed JSON for a long entry
版本注释:
v26
Updated function description.
Updated function description.
版本注释:
v27
Split exchange settings out into two functions to fix a bug.
Split exchange settings out into two functions to fix a bug.
版本注释:
v28
Updated getAlertatronExitMessage() to include 'reduceOnly=true' so that the exchange doesn't open a short/long when TV is trying to exit a position.
Updated getAlertatronExitMessage() to include 'reduceOnly=true' so that the exchange doesn't open a short/long when TV is trying to exit a position.
版本注释:
v29
update getAlertatronEntryMessage() to include reduceOnly=true on the stop loss.
update getAlertatronEntryMessage() to include reduceOnly=true on the stop loss.
版本注释:
v30
Made avgPrice := na when not in a position
Made avgPrice := na when not in a position
版本注释:
v31
Added:
getCountOfClosedTradeSince()
This gets the count of closed trades since a provided bar index
@retunrs three arrays: closed trade IDs, closing bar number, and closing price
Added:
getCountOfClosedTradeSince()
This gets the count of closed trades since a provided bar index
@retunrs three arrays: closed trade IDs, closing bar number, and closing price
版本注释:
v32
Added:
closeUnfilledEntriesAfter()
Constructs arrays used for creating strategy exit orders via a for loop
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
Added:
closeUnfilledEntriesAfter()
Constructs arrays used for creating strategy exit orders via a for loop
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
版本注释:
v33
Added:
getAlertatronEntryMessageV2()
Generates a string for a limit order that can be passed to the strategy alert_message for an entry.
Returns: string that represents a block of entries for alertatron
Added:
getAlertatronEntryMessageV2()
Generates a string for a limit order that can be passed to the strategy alert_message for an entry.
Returns: string that represents a block of entries for alertatron
版本注释:
v34
Added:
getOrderAlertMessage()
Generates a string for one or more orders to be placed on exchange using Alertatron
Returns: string to be passed to Alertatron
getCancelUnfilledOrdersAlertMessage()
Generates a string for the alert message needed to place a stopLimit order when a strategy produces an exit signal after hitting a trailing stop
Returns: string to be passed to Alertatron
getTrailingStopAlertMessage()
Generates a string for the alert message needed to cancel all unfilled orders with the matching strategy tag
Returns: string to be passed to Alertatron
Added:
getOrderAlertMessage()
Generates a string for one or more orders to be placed on exchange using Alertatron
Returns: string to be passed to Alertatron
getCancelUnfilledOrdersAlertMessage()
Generates a string for the alert message needed to place a stopLimit order when a strategy produces an exit signal after hitting a trailing stop
Returns: string to be passed to Alertatron
getTrailingStopAlertMessage()
Generates a string for the alert message needed to cancel all unfilled orders with the matching strategy tag
Returns: string to be passed to Alertatron
版本注释:
v35
Added:
formatEntryPrices()
Formats array of entry prices to supported format
Returns: CSV string of properly formated entry prices
Added:
formatEntryPrices()
Formats array of entry prices to supported format
Returns: CSV string of properly formated entry prices
版本注释:
v36
Add getEntryNames() function
Add getEntryNames() function
版本注释:
v37
Added:
getEntryNames()
Gets an array of entry names for number of desired entries
Returns: array of entry name strings
Added:
getEntryNames()
Gets an array of entry names for number of desired entries
Returns: array of entry name strings
版本注释:
v38
版本注释:
v39
Updated:
checkVar()
Plot a string as a label on the chart to test variable value. Use str.tostring() for any variable that isn't a string.
Returns: Label with stringified variable
Updated:
checkVar()
Plot a string as a label on the chart to test variable value. Use str.tostring() for any variable that isn't a string.
Returns: Label with stringified variable
版本注释:
v40
Updated:
checkVar()
Plot a string as a label on the chart to test variable value. Use str.tostring() for any variable that isn't a string.
Returns: Label with stringified variable
getOrderAlertMessage()
Generates a string for one or more orders to be placed on exchange using Alertatron
Returns: string to be passed to Alertatron
getTrailingStopAlertMessage()
Generates a string for the alert message needed to cancel all unfilled orders with the matching strategy tag
Returns: string to be passed to Alertatron
Updated:
checkVar()
Plot a string as a label on the chart to test variable value. Use str.tostring() for any variable that isn't a string.
Returns: Label with stringified variable
getOrderAlertMessage()
Generates a string for one or more orders to be placed on exchange using Alertatron
Returns: string to be passed to Alertatron
getTrailingStopAlertMessage()
Generates a string for the alert message needed to cancel all unfilled orders with the matching strategy tag
Returns: string to be passed to Alertatron
版本注释:
v41
版本注释:
v42
Added "%p" to profitTargetAmounts
Added "%p" to profitTargetAmounts
版本注释:
v43
Added \n to end of each alert message part to see if I can force some line breaks in the code.
Added \n to end of each alert message part to see if I can force some line breaks in the code.
版本注释:
v44
版本注释:
v45
版本注释:
v46
版本注释:
v47
Updated:
getOrderAlertMessage()
Generates a string for one or more orders to be placed on exchange using Alertatron
Returns: string to be passed to Alertatron
getTrailingStopAlertMessage()
Generates a string for the alert message needed to trail the best price a certain distance
Returns: string to be passed to Alertatron
Updated:
getOrderAlertMessage()
Generates a string for one or more orders to be placed on exchange using Alertatron
Returns: string to be passed to Alertatron
getTrailingStopAlertMessage()
Generates a string for the alert message needed to trail the best price a certain distance
Returns: string to be passed to Alertatron
版本注释:
v48
版本注释:
v49
版本注释:
v50
Updated:
getLadderInSteps()
Constructs arrays used for creating strategy entry orders via a for loop
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
Updated:
getLadderInSteps()
Constructs arrays used for creating strategy entry orders via a for loop
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
版本注释:
v51
版本注释:
v52
Updated:
getLadderOutSteps()
Constructs arrays used for creating strategy exit orders via a for loop
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
Updated:
getLadderOutSteps()
Constructs arrays used for creating strategy exit orders via a for loop
Returns: array of ladder entry prices and amounts based on total amount you want to invest across all ladder rungs and either a range between ladderStart and LadderStop based on specificed number of ladderRungs OR ladderStart, ladderRungs, and LadderSpacingPercent
版本注释:
v53
版本注释:
v54
版本注释:
v55
版本注释:
v56
版本注释:
v57
版本注释:
v58
版本注释:
v59
Merged all of the Alertatron alert message functions into a single one.
Merged all of the Alertatron alert message functions into a single one.
版本注释:
v60
Removed old functions not being used anymore
Removed old functions not being used anymore
版本注释:
v61
trying to fix a bug.
trying to fix a bug.
版本注释:
v62
Added:
taGetDirectionalIndex()
Calculates the Directional Index based on a DI Length
Returns: directional index (float)
Added:
taGetDirectionalIndex()
Calculates the Directional Index based on a DI Length
Returns: directional index (float)
版本注释:
v64
Added:
getAlertatronMarketEntryMessage()
Generates Alertatron alert message for a market entry
Returns: string of instructions for Alertatron to market enter
side, amount, position, reduceOnly) =>
getAlertatronMarketExitMessage()
Generates Alertatron alert message for a market exit
Returns: string of instructions for Alertatron to market close a position
Added:
getAlertatronMarketEntryMessage()
Generates Alertatron alert message for a market entry
Returns: string of instructions for Alertatron to market enter
side, amount, position, reduceOnly) =>
getAlertatronMarketExitMessage()
Generates Alertatron alert message for a market exit
Returns: string of instructions for Alertatron to market close a position
版本注释:
v65
Fixed the offset and limit offset.
Fixed the offset and limit offset.
版本注释:
v66
Added:
taGetExtremes()
Calculates and average, min, and max for provided series using a lookback period and sample size
Returns: Min, Max, and Average values
getLeveragedPercentAmount()
Calulates the amount for an etnry based on leverage and percent of account you want to use
Returns: float
Added:
taGetExtremes()
Calculates and average, min, and max for provided series using a lookback period and sample size
Returns: Min, Max, and Average values
getLeveragedPercentAmount()
Calulates the amount for an etnry based on leverage and percent of account you want to use
Returns: float
版本注释:
v67
Updating library to fix issue where using "Percent of Account" and leverage don't use correct quantity on bybit.
Updating library to fix issue where using "Percent of Account" and leverage don't use correct quantity on bybit.
版本注释:
v68
Hotfix for leverage percent calulation.
Removed:
getLeveragedPercentAmount()
Calulates the amount for an etnry based on leverage and percent of account you want to use
Hotfix for leverage percent calulation.
Removed:
getLeveragedPercentAmount()
Calulates the amount for an etnry based on leverage and percent of account you want to use
版本注释:
v69
Hot fix to fix issue where Stop limit and stop limit offset were reversed on the exchange.
Hot fix to fix issue where Stop limit and stop limit offset were reversed on the exchange.
版本注释:
v70
removing adjustment of lot size so we can use the standard lot size input in a strategy.
removing adjustment of lot size so we can use the standard lot size input in a strategy.
版本注释:
v71
Update Alertatron Market orders to include tags for the pair and cancel any existing orders before placing new ones.
Fixes issue where conditional orders were left on the exchange.
Update Alertatron Market orders to include tags for the pair and cancel any existing orders before placing new ones.
Fixes issue where conditional orders were left on the exchange.
版本注释:
v74
Added:
convertTimeframeToString()
Added:
convertTimeframeToString()
版本注释:
v75
Added Support/Resistance functions to the lib.
Added Support/Resistance functions to the lib.
版本注释:
v76
small update to the S/R function names.
small update to the S/R function names.
版本注释:
v77
Added:
taGetPercentDif()
Calculate the percent difference between two numbers
@retunrs the percentage difference between the two numbers
Added:
taGetPercentDif()
Calculate the percent difference between two numbers
@retunrs the percentage difference between the two numbers
版本注释:
v78
Updated:
taGetDirectionalIndex()
Calculates the Plust and Minus Directional Index and the distance betwen the two
Returns: The value of DI Plus, DI Minus, & Distance between them
Updated:
taGetDirectionalIndex()
Calculates the Plust and Minus Directional Index and the distance betwen the two
Returns: The value of DI Plus, DI Minus, & Distance between them
版本注释:
v79
Updated convertTimeframeToString() to support current chart timeframe
Updated convertTimeframeToString() to support current chart timeframe
版本注释:
v80
Added:
getAlertatronAlertMessageMarketClosePercentOfPosition()
Added:
getAlertatronAlertMessageMarketClosePercentOfPosition()
版本注释:
v81
Includes a function to get the entry amount and contract count for TradingView Strategies and alert messages to Alertatron.
Added:
getLotSize()
Includes a function to get the entry amount and contract count for TradingView Strategies and alert messages to Alertatron.
Added:
getLotSize()
版本注释:
v82
Added function to get Alertatron pair override provided in strategy settings.
Added:
getPairOverrides()
Added function to get Alertatron pair override provided in strategy settings.
Added:
getPairOverrides()
版本注释:
Fixed the overloaded function issue that was introduced with the latest version of Pine.
版本注释:
v84
Fixed a bug that was introduced when TV added the "P" to the end of "USDT.P" recently.
Fixed a bug that was introduced when TV added the "P" to the end of "USDT.P" recently.
版本注释:
v85
Fixed the getChartSymbol() function by adding support for "USDT.P"
Fixed the getChartSymbol() function by adding support for "USDT.P"
版本注释:
v86
Base Currency Bug fix
Base Currency Bug fix
版本注释:
v87
Adding support for USD.P currency.
Adding support for USD.P currency.
版本注释:
v88
Fixing issue where traditional stocks don't work because they don't have a base currency listed as part of the pair.
Fixing issue where traditional stocks don't work because they don't have a base currency listed as part of the pair.
版本注释:
v89
Added:
getAlertatronOcoMessage()
Generates Alertatron alert message for a market entry with a stop loss and profit target
Returns: string of instructions for Alertatron to create an OCO order
Added:
getAlertatronOcoMessage()
Generates Alertatron alert message for a market entry with a stop loss and profit target
Returns: string of instructions for Alertatron to create an OCO order
版本注释:
v90
Fixed stop stopLimitOffset in getStop when using "price" as the type.
Fixed stop stopLimitOffset in getStop when using "price" as the type.
版本注释:
v91
Added:
taGetSmoothedVwap()
Added:
taGetSmoothedVwap()
版本注释:
v92
Updated:
- getAlertatronMarketEntryMessage()
- getAlertatronMarketExitMessage()
Changes:
- Functions now require a "strategyKey" to be passed which is used to add additional clarity to the tagging structure. This allows multiple strategies to share a single account on the same trading pair.
Updated:
- getAlertatronMarketEntryMessage()
- getAlertatronMarketExitMessage()
Changes:
- Functions now require a "strategyKey" to be passed which is used to add additional clarity to the tagging structure. This allows multiple strategies to share a single account on the same trading pair.
版本注释:
v95
Added:
wavetrend(source, channelLength, avg, movingAverageLength, oversoldLevel, overboughtLevel)
Calculates Wavetrend
Parameters:
source
channelLength
avg
movingAverageLength
oversoldLevel
overboughtLevel
Returns: Tupple
Added:
wavetrend(source, channelLength, avg, movingAverageLength, oversoldLevel, overboughtLevel)
Calculates Wavetrend
Parameters:
source
channelLength
avg
movingAverageLength
oversoldLevel
overboughtLevel
Returns: Tupple