TableLibrary "Table"
This library provides an easy way to convert arrays and matrixes of data into tables. There are a few different implementations of each function so you can get more or less control over the appearance of the tables. The basic rule of thumb is that all matrix rows must have the same number of columns, and if you are providing multiple arrays/matrixes to specify additional colors (background/text), they must have the same number of rows/columns as the data array. Finally, you do have the option of spanning cells across rows or columns with some special syntax in the data cell. Look at the examples to see how the arrays and matrixes need to be built before they can be used by the functions.
floatArrayToCellArray(floatArray)
Helper function that converts a float array to a Cell array so it can be rendered with the fromArray function
Parameters:
floatArray (float ) : (array) the float array to convert to a Cell array.
Returns: array The Cell array to return.
stringArrayToCellArray(stringArray)
Helper function that converts a string array to a Cell array so it can be rendered with the fromArray function
Parameters:
stringArray (string ) : (array) the array to convert to a Cell array.
Returns: array The Cell array to return.
floatMatrixToCellMatrix(floatMatrix)
Helper function that converts a float matrix to a Cell matrix so it can be rendered with the fromMatrix function
Parameters:
floatMatrix (matrix) : (matrix) the float matrix to convert to a string matrix.
Returns: matrix The Cell matrix to render.
stringMatrixToCellMatrix(stringMatrix)
Helper function that converts a string matrix to a Cell matrix so it can be rendered with the fromMatrix function
Parameters:
stringMatrix (matrix) : (matrix) the string matrix to convert to a Cell matrix.
Returns: matrix The Cell matrix to return.
fromMatrix(CellMatrix, position, verticalOffset, transposeTable, textSize, borderWidth, tableNumRows, blankCellText)
Takes a CellMatrix and renders it as a table.
Parameters:
CellMatrix (matrix) : (matrix) The Cells to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
tableNumRows (int) : (int) Optional. The number of rows in the table. Not required, defaults to the number of rows in the provided matrix. If your matrix will have a variable number of rows, you must provide the max number of rows or the function will error when it attempts to set a cell value on a row that the table hadn't accounted for when it was defined.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
fromMatrix(dataMatrix, position, verticalOffset, transposeTable, textSize, borderWidth, tableNumRows, blankCellText)
Renders a float matrix as a table.
Parameters:
dataMatrix (matrix) : (matrix_float) The data to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
tableNumRows (int) : (int) Optional. The number of rows in the table. Not required, defaults to the number of rows in the provided matrix. If your matrix will have a variable number of rows, you must provide the max number of rows or the function will error when it attempts to set a cell value on a row that the table hadn't accounted for when it was defined.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
fromMatrix(dataMatrix, position, verticalOffset, transposeTable, textSize, borderWidth, tableNumRows, blankCellText)
Renders a string matrix as a table.
Parameters:
dataMatrix (matrix) : (matrix_string) The data to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
tableNumRows (int) : (int) Optional. The number of rows in the table. Not required, defaults to the number of rows in the provided matrix. If your matrix will have a variable number of rows, you must provide the max number of rows or the function will error when it attempts to set a cell value on a row that the table hadn't accounted for when it was defined.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
fromArray(dataArray, position, verticalOffset, transposeTable, textSize, borderWidth, blankCellText)
Renders a Cell array as a table.
Parameters:
dataArray (Cell ) : (array) The data to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
fromArray(dataArray, position, verticalOffset, transposeTable, textSize, borderWidth, blankCellText)
Renders a string array as a table.
Parameters:
dataArray (string ) : (array_string) The data to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
fromArray(dataArray, position, verticalOffset, transposeTable, textSize, borderWidth, blankCellText)
Renders a float array as a table.
Parameters:
dataArray (float ) : (array_float) The data to be rendered in a table
position (string) : (string) Optional. The position of the table. Defaults to position.top_right
verticalOffset (int) : (int) Optional. The vertical offset of the table from the top or bottom of the chart. Defaults to 0.
transposeTable (bool) : (bool) Optional. Will transpose all of the data in the matrices before rendering. Defaults to false.
textSize (string) : (string) Optional. The size of text to render in the table. Defaults to size.small.
borderWidth (int) : (int) Optional. The width of the border between table cells. Defaults to 2.
blankCellText (string) : (string) Optional. Text to use cells when adding blank rows for vertical offsetting.
debug(message, position)
Renders a debug message in a table at the desired location on screen.
Parameters:
message (string) : (string) The message to render.
position (string) : (string) Optional. The position of the debug message. Defaults to position.middle_right.
Cell
Type for each cell's content and appearance
Fields:
content (series string)
bgColor (series color)
textColor (series color)
align (series string)
colspan (series int)
rowspan (series int)
Helper
lib_retracement_labelLibrary "lib_retracement_label"
creates a retracement label between the origin and target of a retracement, updating it's position (via update + draw) when the target moves.
create_tooltip(name, min, max, tol_min, tol_max)
Parameters:
name (string)
min (float)
max (float)
tol_min (float)
tol_max (float)
method update(this)
Namespace types: RetracementLabel
Parameters:
this (RetracementLabel)
method create_retracement_label(this, move_endpoint, args, tooltip)
Creates a new RetracementLabel object.
Namespace types: D.Line
Parameters:
this (Line type from robbatt/lib_plot_objects/23)
move_endpoint (Point type from robbatt/lib_plot_objects/23)
args (LabelArgs type from robbatt/lib_plot_objects/23)
tooltip (string)
method create_retracement_label(this, move_end, args, tooltip)
Creates a new RetracementLabel object.
Namespace types: D.Line
Parameters:
this (Line type from robbatt/lib_plot_objects/23)
move_end (Pivot type from robbatt/lib_pivot/43)
args (LabelArgs type from robbatt/lib_plot_objects/23)
tooltip (string)
method enqueue(id, item, max)
Namespace types: RetracementLabel
Parameters:
id (RetracementLabel )
item (RetracementLabel)
max (int)
method draw(this)
Namespace types: RetracementLabel
Parameters:
this (RetracementLabel)
method draw(this)
Namespace types: RetracementLabel
Parameters:
this (RetracementLabel )
method delete(this)
Namespace types: RetracementLabel
Parameters:
this (RetracementLabel)
method delete(this)
Namespace types: RetracementLabel
Parameters:
this (RetracementLabel )
RetracementLabel
Fields:
move_endpoint (|robbatt/lib_plot_objects/23;Point|#OBJ)
center_label (|robbatt/lib_plot_objects/23;CenterLabel|#OBJ)
toolsLibrary "tools"
A library of many helper methods, plus a comprehensive print method and a printer object.
This is a newer version of the helpers library. This script uses pinescripts v5 latest objects and methods.
PineHelperLibrary "PineHelper"
This library provides various functions to reduce your time.
recent_opentrade_entry_bar_index()
get a recent opentrade entry bar_index
Returns: (int) bar_index
recent_closedtrade_entry_bar_index()
get a recent closedtrade entry bar_index
Returns: (int) bar_index
recent_closedtrade_exit_bar_index()
get a recent closedtrade exit bar_index
Returns: (int) bar_index
all_opnetrades_roi()
get all aopentrades roi
Returns: (float) roi
bars_since_recent_opentrade_entry()
get bars since recent opentrade entry
Returns: (int) number of bars
bars_since_recent_closedtrade_entry()
get bars since recent closedtrade entry
Returns: (int) number of bars
bars_since_recent_closedtrade_exit()
get bars since recent closedtrade exit
Returns: (int) number of bars
recent_opentrade_entry_id()
get recent opentrade entry ID
Returns: (string) entry ID
recent_closedtrade_entry_id()
get recent closedtrade entry ID
Returns: (string) entry ID
recent_closedtrade_exit_id()
get recent closedtrade exit ID
Returns: (string) exit ID
recent_opentrade_entry_price()
get recent opentrade entry price
Returns: (float) price
recent_closedtrade_entry_price()
get recent closedtrade entry price
Returns: (float) price
recent_closedtrade_exit_price()
get recent closedtrade exit price
Returns: (float) price
recent_opentrade_entry_time()
get recent opentrade entry time
Returns: (int) time
recent_closedtrade_entry_time()
get recent closedtrade entry time
Returns: (int) time
recent_closedtrade_exit_time()
get recent closedtrade exit time
Returns: (int) time
time_since_recent_opentrade_entry()
get time since recent opentrade entry
Returns: (int) time
time_since_recent_closedtrade_entry()
get time since recent closedtrade entry
Returns: (int) time
time_since_recent_closedtrade_exit()
get time since recent closedtrade exit
Returns: (int) time
recent_opentrade_size()
get recent opentrade size
Returns: (float) size
recent_closedtrade_size()
get recent closedtrade size
Returns: (float) size
all_opentrades_size()
get all opentrades size
Returns: (float) size
recent_opentrade_profit()
get recent opentrade profit
Returns: (float) profit
all_opentrades_profit()
get all opentrades profit
Returns: (float) profit
recent_closedtrade_profit()
get recent closedtrade profit
Returns: (float) profit
recent_opentrade_max_runup()
get recent opentrade max runup
Returns: (float) runup
recent_closedtrade_max_runup()
get recent closedtrade max runup
Returns: (float) runup
recent_opentrade_max_drawdown()
get recent opentrade maxdrawdown
Returns: (float) mdd
recent_closedtrade_max_drawdown()
get recent closedtrade maxdrawdown
Returns: (float) mdd
max_open_trades_drawdown()
get max open trades drawdown
Returns: (float) mdd
recent_opentrade_commission()
get recent opentrade commission
Returns: (float) commission
recent_closedtrade_commission()
get recent closedtrade commission
Returns: (float) commission
qty_by_percent_of_equity(percent)
get qty by percent of equtiy
Parameters:
percent : (series float) percent that you want to set
Returns: (float) quantity
qty_by_percent_of_position_size(percent)
get size by percent of position size
Parameters:
percent : (series float) percent that you want to set
Returns: (float) size
is_day_change()
get bool change of day
Returns: (bool) day is change or not
is_in_trade()
get bool using number of bars
Returns: (bool) allowedToTrade
discord_message(name, message)
get json format discord message
Parameters:
name : (string) name of bot
message : (string) message that you want to send
Returns: (string) json format string
telegram_message(chat_id, message)
get json format telegram message
Parameters:
chat_id : (string) chatId of bot
message : (string) message that you want to send
Returns: (string) json format string
Order Blocks Indicator By ForexBee V.1
What are Order Blocks:
Order blocks in forex refer to the collection of orders of big banks and institutions in forex trading. The big banks do not just open a buy/sell order but distribute a single order into a check of blocks to maximize the profit potential. These chunks of orders are called order blocks in trading.
Types of order blocks
Order blocks are categorized into two types in trading based on order types.
Bullish order block
Bearish order block
Bullish order block
When a bullish impulsive wave forms after the break of a ranging market structure or block, it indicates the formation of a bullish order block.
When the price returns to the order block zone, we’ll open buy orders to trade with institutions.
Bearish order block
When a bearish impulsive wave forms after the break of price range or block, a bearish order block forms. We’ll open sell orders from the bearish order block zone when the price returns to this zone in the future.
How to draw an order block zone in trading?
To draw an order block, you should first learn to identify the chart’s price range or price block.
In the next step, mark the highest point and the lowest point of the price range
Draw a horizontal zone meeting the high and low of the order block zone. This will act as an order block zone.
Smart Money BusterAfter daytrading for a while i came into conclusion that price action trading is the most successful way to trade for me and this project was for me to simplify my way of trading at the beginning. Eventually it got big and turned into a very useful helper indicator for me to setup on different pairs for alerts and only look at the charts to decide for entry when the alerts come from 120 different pairs that i set it up. Since i always looked at indicators for a way to make my job simpler and give me more time to do more important things for me rather than drawing lines on different pairs eveyday i think it got to a point where it works to my liking and making me gain time, thus more money.
This indicator uses smart money concepts like Market Structure, Order Blocks, Quassimodo Levels, Structure Breaks, Pumps and Dumps, Imbalances(In the works will be added in first update) to help trader catch what the whales are thinking and how to enter in the right time for swing trading, catching bottoms and tops.
Here are some of the features as of release:
Detects Market Structure and draws zig-zag lines and keeps note of pivot points.
Detects Order blocks and draws boxes when the conditions met
Detects the quassimodo levels and changes the color of the box to signal double confluence meaning stronger signal
Draws structure break lines
Setting to set structure break percentage before drawing boxes to get the boxes drawn if you want to be more 'sure' about the Order Block Levels.
Setting to change depth and backstep values for zigzags to be able to let you fit the system for different time frames.
Setting to set MSB trigger point between High and Low, Close and Open or hl2 values.
Setting to set Signal Triggering Range between Start, Middle and End meaning eg. if you set it to Middle it will wait for MSB trigger point to hit the middle of the box before giving you a signal.
Setting for changing HH-LL pivot points lookback count, 5 as default. Increasing this value will make you compare your pivot points with more data, really useful in lower time frames where will be a lot of zig-zags and highs and lows giving you a method to avoid false signals. Recommended to keep it lower values on 30 min and higher and increase it in lower Timeframes according to market volatility.
Setting to add a Box limit where the box of order block will be set invalid after certain candles and it still didn't trigger. Default value of 0 means it's disabled.
Setting to set Candle volatility percentage value to avoid big candles getting opposite signals on fast pump or dump schemes and bust those market makers schemes. Gotta say this came out really handy in crypto markets :)
As an end you can set alerts for 'Buy' , ' Sell ', ' Buy and Sell' together or if you wish you can connect it to bots via webhook as an entry. Although haven't connected to any bots myself as i think the best method of trading is human and machine working together. Since we have the creativity and out of the box thinking and machines have the ability to brute force calculation and huge bandwith that we don't currently have. At least until Elon Musk turns is into a cyborg, which i am not very eager about.
Planned Features:
- Add ability to detect imbalances(fair value gaps) to add third confluence to detect dragon fruit entries. This will make the system work with triple confluence.
- Add more settings so humans can command the ai better.
- Maybe a strategy version after i write my own dynamic take profit algorithm to give system ability make quantitative decisions based on current position profit levels.
- Although i think i fixed almost all the important bugs if there ever comes up one bugs will take priority for updates.
- And some things i may decide to add later. I will keep working on this project since it works well for me.
And like always, happy trading.
external_input_utilsLibrary "external_input_utils"
Collection of external input utilities for conversion and other hacky functions
str_to_src(value) str_to_src - Convert the string value to the coresponding source series. It can be used to limit the "input.source" choices provided to the end user.
The most interesting part is that it can be used to overcome the "one input.source call limitation" for external inputs to your script
Parameters:
value : - The string equivalent to the source to be converted
Returns: series of the coresponding source
eval_cond(input, operator, value, defval) eval_cond - Evaluate the condition given an operator
Parameters:
input : - The input to be compared with. It can be an external input or a regular one
operator : - The string operator that describe the coparison operation
value : - The value to compare with the input. This can be a serries or a constant
defval : - The boolean value to return when 'noop' is selected
Returns: series of bool the result of the operation evaluation
Price Displacement - Candlestick (OHLC) CalculationsA Magical little helper friend for Candle Math.
When composing scripts, it is often necessary to manipulate the math around the OHLC. At times, you want a scalar (absolute) value others you want a vector (+/-). Sometimes you want the open - close and sometimes you want just the positive number of the body size. You might want it in ticks or you might want it in points or you might want in percentages. And every time you try to put it together you waste precious time and brain power trying to think about how to properly structure what you're looking for. Not to mention it's normally not that aesthetically pleasing to look at in the code.
So, this fixes all of that.
Using this library. A function like 'pd.pt(_exp)' can call any kind of candlestick math you need. The function returns the candlestick math you define using particular expressions.
Candle Math Functions Include:
Points:
pt(_exp) Absolute Point Displacement. Point quantity of given size parameters according to _exp.
vpt(_exp) Vector Point Displacement. Point quantity of given size parameters according to _exp.
Ticks:
tick(_exp) Absolute Tick Displacement. Tick quantity of given size parameters according to _exp.
vtick(_exp) Vector Tick Displacement. Tick quantity of given size parameters according to _exp.
Percentages:
pct(_exp, _prec) Absolute Percent Displacement. (w/rounding overload). Percent quantity of bar range of given size parameters according to _exp.
vpct(_exp, _prec) Vector Percent Displacement (w/rounding overload). Percent quantity of bar range of given size parameters according to _exp.
Expressions You Can Use with Formulas:
The expressions are simple (simple strings that is) and I did my best to make them sensible, generally using just the ohlc abreviations. I also included uw, lw, bd, and rg for when you're just trying to pull a candle component out. That way you don't have to think about which of the ohlc you're trying to get just use pd.tick("uw") and now the variable is assigned the length of the upper wick, absolute value, in ticks. If you wanted the vector in pts its pd.vpt("uw"). It also makes changing things easy too as I write it out.
Expression List:
Combinations
"oh" = open - high
"ol" = open - low
"oc" = open - close
"ho" = high - open
"hl" = high - low
"hc" = high - close
"lo" = low - open
"lh" = low - high
"lc" = low - close
"co" = close - open
"ch" = close - high
"cl" = close - low
Candle Components
"uw" = Upper Wick
"bd" = Body
"lw" = Lower Wick
"rg" = Range
Pct() Only
"scp" = Scalar Close Position
"sop" = Scalar Open Position
"vcp" = Vector Close Position
"vop" = Vector Open Position
The attributes are going to be available in the pop up dialogue when you mouse over the function, so you don't really have to remember them. I tried to make that look as efficient as possible. You'll notice it follows the OHLC pattern. Thus, "oh" precedes "ho" (heyo) because "O" would be first in the OHLC. Its a way to help find the expression you're looking for quickly. Like looking through an alphabetized list for traders.
There is a copy/paste console friendly helper list in the script itself.
Additional Notes on the Pct() Only functions:
This is the original reason I started writing this. These concepts place a rating/value on the bar based on candle attributes in one number. These formulas put a open or close value in a percentile of the bar relative to another aspect of the bar.
Scalar - Non-directional. Absolute Value.
Scalar Position: The position of the price attribute relative to the scale of the bar range (high - low)
Example: high = 100. low = 0. close = 25.
(A) Measure price distance C-L. How high above the low did the candle close (e.g. close - low = 25)
(B) Divide by bar range (high - low). 25 / (100 - 0) = .25
Explaination: The candle closed at the 25th percentile of the bar range given the bar range low = 0 and bar range high = 100.
Formula: scp = (close - low) / (high - low)
Vector = Directional.
Vector Position: The position of the price attribute relative to the scale of the bar midpoint (Vector Position at hl2 = 0)
Example: high = 100. low = 0. close = 25.
(A) Measure Price distance C-L: How high above the low did the candle close (e.g. close - low = 25)
(B) Measure Price distance H-C: How far below the high did the candle close (e.g. high - close = 75)
(C) Take Difference: A - B = C = -50
(D) Divide by bar range (high - low). -50 / (100 - 0) = -0.50
Explaination: Candle close at the midpoint between hl2 and the low.
Formula: vcp = { / (high - low) }
Thank you for checking this out. I hope no one else has already done this (because it took half the day) and I hope you find value in it. Be well. Trade well.
Library "PD"
Price Displacement
pt(_exp) Absolute Point Displacement. Point quantity of given size parameters according to _exp.
Parameters:
_exp : (string) Price Parameter
Returns: Point size of given expression as an absolute value.
vpt(_exp) Vector Point Displacement. Point quantity of given size parameters according to _exp.
Parameters:
_exp : (string) Price Parameter
Returns: Point size of given expression as a vector.
tick(_exp) Absolute Tick Displacement. Tick quantity of given size parameters according to _exp.
Parameters:
_exp : (string) Price Parameter
Returns: Tick size of given expression as an absolute value.
vtick(_exp) Vector Tick Displacement. Tick quantity of given size parameters according to _exp.
Parameters:
_exp : (string) Price Parameter
Returns: Tick size of given expression as a vector.
pct(_exp, _prec) Absolute Percent Displacement (w/rounding overload). Percent quantity of bar range of given size parameters according to _exp.
Parameters:
_exp : (string) Expression
_prec : (int) Overload - Place value precision definition
Returns: Percent size of given expression as decimal.
vpct(_exp, _prec) Vector Percent Displacement (w/rounding overload). Percent quantity of bar range of given size parameters according to _exp.
Parameters:
_exp : (string) Expression
_prec : (int) Overload - Place value precision definition
Returns: Percent size of given expression as decimal.
[HELPER] Math Constant Helper█ OVERVIEW
This indicator is to show constant in table using built-in math name space, coded in latest Pine Script version 5.
█ CREDITS
Credits to PineCoders.
█ FEATURES
- Display table by changing table position, font size and color.
[HELPER] Table Color For Pairing Black And White█ OVERVIEW
This helper intend to simplify which color pair better with black or white color, may help some pine coders.
█ INSPIRATION
This color choice was inspired during plot especially user enable dark color theme.
Color displayed at table and label are based on Indicator name label and Indicator last value label displayed at Scales.
█ FEATURES
Color can be tick to be inverted color.
Display table by changing table position and font size.
Zeal Trade HelperOnce you have mastered a trading strategy, risk management is the most important aspect of trading that will enable and long and successful trading career. The Zeal Trade Helper is based on Van Tharp's theory of R. It provides an immediate visual trading plan, as well as sizing parameters for trading equity and options (.25 and .50 deltas) based on a number of inputs to help you avoid needing to do quick mental math in the moment of taking a trade.
HOW TO USE
- First, you will need to input your R value. To find your R value, divide your **average green day** by the **average number of trades you take in a day**. Once you have this number, enter it into the "Your R Value" field in the indicator settings.
- The indicator settings then provides you with 5 different setup entries. When you have your watchlist ready for the day, simply go through and choose the specific stock, enter your entry price, stop loss, target, and setup type (build, short, bounce, or reject).
OUTPUTS
**Trading Plan**
The indicator will display a visual trading plan based on the inputs you entered on each individual stock's chart. The trading plan will have a green box and red box to represent your entry, target, and stop loss.
**Risk Parameters**
The indicator will also display text outlining what your risk parameters and sizing should be for the trade based on your R value. You will see 3 different lines: the first line showing the number of shares you can trade, the second line showing the number of option contracts you can trade at .50 delta, and the third line showing the number of option contracts you can trade at .25 delta. For reference, at the money options are .50 deltas. Even if you aren't trading exactly .50 or .25 deltas, these values will still help as a frame of reference in the moment of putting on the trade.
**Note that you can toggle the appearance of either of these outputs by checking/un-checking the boxes next to "Display trading plan" and "Display risk parameters" in the indicator settings.
Examples:
1. "**240 shares with $1.25 risk**" means you can take 240 shares and risk $1.25 on the share's price based on your R value
2. "**4.8 Cons @ .50 delta with $0.62 risk**" means you can take either 4 or 5 at the money option contracts and risk $0.62 **on the option contract's value** based on your R value
3. "**9.8 Cons @ .50 delta with $0.31 risk**" means you can take either 9 or 10 option contracts that have a .25 delta (a bit out of the money) and risk $0.31 **on the option contract's value** based on your R value
Happy Trading!
arsenalLibrary "arsenal"
This library is a collection of weapons that will help us win the war against the market.
isNewbar(res, timezone) Checks if the res is in new bar at the current timeframe
Parameters:
res : - resolution of the bar to check if new
timezone : - timezone of the resolution
Returns: ch: - 1=true, 0=false
Trend Maker Indicator - open publicThe Trend Maker indicator is an advanced technical analysis tool. A feature of the indicator is simple and user-friendly conclusions drawn from a variety of data, including the market price, buy and sell volumes, short-term and long-term trend and corridor, estimated support and resistance levels, and pivot points .
The result of the indicator's operation is the constructed probabilistic forecast of the market price. The forecast contains expectations for price levels, level of risk and level of consolidation. Depending on the selected trading pair and timeframe, the Trend Maker indicator builds a forecast automatically.
There are two types of forecast: forecast of market growth and forecast of market decline. Each forecast contains its own calculated data, indication of the candle on which it was opened, digital and graphical values of expectations.
The Trend Maker indicator has a simple user interface and settings. The indicator is designed to work on the crypto currency market, but it is also suitable for working on the stock and foreign exchange markets.
At the moment, the indicator is optimized for working with the BTCUSDTFUTURES pair on the Binance exchange, and on timeframes of 15 minutes and 1 hour. As the indicator develops and updates, new trading pairs and timeframes will be indicated in the indicator's update log.
The Trend Maker indicator is not financial advice and is not a "loot button". This is a technical analysis tool that is an assistant in trading, but you make all decisions yourself at your own peril and risk.
**********************
Индикатор Trend Maker - это продвинутый инструмент технического анализа. Особенность индикатора - простые и понятные пользователю выводы, сделанные из разнообразных данных, включая цену рынка, объемы купли и продажи, краткосрочные и долгосрочные тренд и коридор, расчетные уровни поддержки и сопротивления, разворотные точки.
Результатом работы индикатора является построенный вероятностный прогноз цены рынка. Прогноз содержит ожидания по ценовым уровням, уровню риска и уровню консолидации. В зависимости от выбранных торговой пары и таймфрейма, индикатор Trend Maker строит прогноз автоматически.
Прогноз бывает двух видов: прогноз рост рынка и прогноз падения рынка. Каждый прогноз содержит свои расчетные данные, индикацию свечи, на которой он был открыт, цифровые и графические значения ожиданий.
Индикатор Trend Maker миеет простой пользовательский интерфейс и настройки. Индикатор предназначен для работы на крипто валютном рынке, однако подходит и для работы на фондовом и валютном рынках.
В настоящий момент индикатор оптимизирован для работы с парой BTCUSDTFUTURES на бирже Бинанс, и на таймфреймах 15 минут и 1 час. По мере развития и обновления индикатора, новые торговые пары и таймфреймы будут указываться в журнале обновлений данного индикатора.
Индикатор Trend Maker не является финансовым советом и не является "кнопкой бабло". Это инструмент технического анализа, являющийся помощником в торговле, но все решения вы принимаете самостоятельно на ваш страх и риск.
Order Block FinderAfter finding a huge amount of use from TV user's wugamlo script Order Block Finder (Experimental) , I decided to make some much needed upgrades! Added support for plotting the last X number of Order Blocks and am currently working on a multi-timeframe version.
If you'd like to contribute to the MTF analysis portion, that would benefit tons of other scripts and open the possibility to more "MTF Panel" style indicators.
Please visit the original script page (link at top) to review how the indicator is used in trading.
[CLX][#02] Registry (type-based)This script only provides a basic __setter and __getter registration function with a type-based limitation.
We don't want to blow the code with additional conditions. The suggestion was to get the basic functionality.
Benefits:
- Get/set/update global-like variables between functions
- No init needed. You can call a entry before you set it.
Get-Functions:
- f_reg_getInt(_key)
- f_reg_getFloat(_key)
- f_reg_getBool(_key)
- f_reg_getString(_key)
- f_reg_getColor(_key)
- f_reg_getLabel(_key)
- f_reg_getLine(_key)
Set-Functions:
- f_reg_setInt(_key, _value)
- f_reg_setFloat(_key, _value)
- f_reg_setBool(_key, _value)
- f_reg_setString(_key, _value)
- f_reg_setColor(_key, _value)
- f_reg_setLabel(_key, _value)
- f_reg_setLine(_key, _value)
Feel free to contribute for an extended version. :)
We hope you enjoy it! 🎉
CRYPTOLINX - jango_blockchained 😊👍
Disclaimer:
Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely.
The script is for informational and educational purposes only. Use of the script does not constitute professional and/or financial advice. You alone have the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script.
Buy BTC Helper -* Buy SPOT, sell to USD -Alerts- By Che_TraderThis is the alert version of my strategy
"Buy BTC Helper - Buy SPOT, sell to USD (BTC-ETH) - By Che_Trader"
For more information visit the link below
*****************************************************************************************************************************************************************************
To get access, you can send me a PM here or at a link in the tradingview profile.
*****************************************************************************************************************************************************************************
Multi-Timeframe Configuration DemoThis is a developer friendly solution to the current PineScript limitation of not being able to easily configure presets for multiple timeframes.
If you're developing multi-timeframe strategies then you've no doubt done battle with built-in `input` function which only allows for a single default value. You've probably come up with all kinds of fancy workarounds, including messy hardcoding, and even gritting your teeth and patiently reentering all the necessary values each time you refresh the chart or change the timeframe. The last one is my personal favourite.
As you can see in the code below we have defined a `usePresets` condition which tells the script to use our preset configuration, otherwise the default `input` values will be used. If `usePresets` is false then we use our presets which are defined in a (fairly) easy to read condition chain with the help of some basic timeframe utility functions.
Obviously this is nothing groundbreaking, but its helped me clean up my scripts a bit, so hopefully it will help you too.
Block_Saver_v1This is a script that lets you manually add in a "Zone" by top and bottom price, which I intended to use so I could "Save" or "Trace Over" lines from the Breakers/OrderBlock indicator. This is so you can take the same drawing across different time-frames and charts, and color-code them.
In the future I will be adding labels to the top and/or bottom of blocks so you can annotate more specifically which time-frame they were formed on, price level, etc.
[RS][V4]ZigZag Percent Reversal - Helper - Retrace LevelsA helper script with multiple retrace level options.
[RS]ZigZag Percent Reversal - Helper - Draw Patterns - Part 3Helper script to draw patterns on chart.
[RS]ZigZag Percent Reversal - Helper - Draw Patterns - Part 2Helper script to display patterns on chart.
[RS]ZigZag Percent Reversal - Helper - Draw Patterns - Part 1Helper script to display patterns on chart.