[Mad] Active LineThis is a simple line tool that can give you active feedback based on the closing price.
It is intended for a live chart whose ticker is not changed by the user every 10 minutes, like a general overview of an asset in a higher time frame.
What can it provide:
Price difference from the price to the line
Price at the current collision point
How to use it:
When opened, it requests 2 input points from you.
After you set these 2 points, it will set the "Active Line" for you, like the normal TV line.
One thing to know is that you can't place into the future, so "extend" is always on by default.
and as always, have fun trading the assets up and down :-)
Pine utilities
Custom Candle Body WidthOver the specified bar range, plots a vertical line from open to close using the specified colors and line width (in pixels).
In effect, these look like thinner/thicker candle bodies.
The default candle bodies are made transparent over this range to make them appear hidden.
The indicator is capable of referencing the bar colors from another plot, using a technique of encapsulating the RGBT color value in a float value (plot to data window only recommended).
Refer to example code (which is commented out) in the source code.
RSI Candle ColorI manually made a 100 point gradient for this one. Its just smooth sensitive rsi but it colors your candles based on the level of the rsi. I hope you find this useful even as a utility for the gradient.
True Range Outlier Detector (TROD)True Range Outlier Detector (TROD) shows you weather or not a candle is larger than normal. This works by taking the normalized true range and if the candle exceeds a score of 0.5 or -0.5 it triggers the outlier detection. This is great for building strategies if you want to refrain from buying larger than normal up or down ticks. The only feature is the ability to change the lookback period of the normalization. I hope you find this as useful as I do!
Enjoy!
Vector ScalerVector Scaler is like Stochastic but it uses a different method to scale the input. The method is very similar to vector normalization but instead of keeping the "vector" we just sum the three points and average them. The blue line is the signal line and the orange line is the smoothed signal line. I have added the "J" line from the KDJ indicator to help spot divergences. Differential mode uses the delta of the input for the calculations. Here are some pictures to help illustrate how this works relative to other popular indicators.
Vector Scaler vs Stochastic
Vector Scaler vs Smooth Stochastic RSI
average set to 100
average set to 200
Ultimate Strategy Template (Advanced Edition)Hello traders
This script is an upgraded version of that one below
New features
- Upgraded to Pinescript version 5
- Added the exit SL/TP now in real-time
- Added text fields for the alerts - easier to send the commands to your trading bots
Step 1: Create your connector
Adapt your indicator with only 2 lines of code and then connect it to this strategy template.
For doing so:
1) Find in your indicator where are the conditions printing the long/buy and short/sell signals.
2) Create an additional plot as below
I'm giving an example with a Two moving averages cross.
Please replicate the same methodology for your indicator wether it's a MACD , ZigZag , Pivots , higher-highs, lower-lows or whatever indicator with clear buy and sell conditions.
//@version=5
indicator(title='Moving Average Cross', shorttitle='Moving Average Cross', overlay=true, precision=6, max_labels_count=500, max_lines_count=500)
type_ma1 = input.string(title='MA1 type', defval='SMA', options= )
length_ma1 = input(10, title=' MA1 length')
type_ma2 = input.string(title='MA2 type', defval='SMA', options= )
length_ma2 = input(100, title=' MA2 length')
// MA
f_ma(smoothing, src, length) =>
rma_1 = ta.rma(src, length)
sma_1 = ta.sma(src, length)
ema_1 = ta.ema(src, length)
iff_1 = smoothing == 'EMA' ? ema_1 : src
iff_2 = smoothing == 'SMA' ? sma_1 : iff_1
smoothing == 'RMA' ? rma_1 : iff_2
MA1 = f_ma(type_ma1, close, length_ma1)
MA2 = f_ma(type_ma2, close, length_ma2)
// buy and sell conditions
buy = ta.crossover(MA1, MA2)
sell = ta.crossunder(MA1, MA2)
plot(MA1, color=color.new(color.green, 0), title='Plot MA1', linewidth=3)
plot(MA2, color=color.new(color.red, 0), title='Plot MA2', linewidth=3)
plotshape(buy, title='LONG SIGNAL', style=shape.circle, location=location.belowbar, color=color.new(color.green, 0), size=size.normal)
plotshape(sell, title='SHORT SIGNAL', style=shape.circle, location=location.abovebar, color=color.new(color.red, 0), size=size.normal)
/////////////////////////// SIGNAL FOR STRATEGY /////////////////////////
Signal = buy ? 1 : sell ? -1 : 0
plot(Signal, title='🔌Connector🔌', display = display.data_window)
Basically, I identified my buy, sell conditions in the code and added this at the bottom of my indicator code
Signal = buy ? 1 : sell ? -1 : 0
plot(Signal, title="🔌Connector🔌", transp=100)
Important Notes
🔥 The Strategy Template expects the value to be exactly 1 for the bullish signal, and -1 for the bearish signal
Now you can connect your indicator to the Strategy Template using the method below or that one
Step 2: Connect the connector
1) Add your updated indicator to a TradingView chart
2) Add the Strategy Template as well to the SAME chart
3) Open the Strategy Template settings and in the Data Source field select your 🔌Connector🔌 (which comes from your indicator)
From then, you should start seeing the signals and plenty of other stuff on your chart
🔥 Note that whenever you'll update your indicator values, the strategy statistics and visual on your chart will update in real-time
Settings
- Color Candles: Color the candles based on the trade state ( bullish , bearish , neutral)
- Close positions at market at the end of each session: useful for everything but cryptocurrencies
- Session time ranges: Take the signals from a starting time to an ending time
- Close Direction: Choose to close only the longs, shorts, or both
- Date Filter: Take the signals from a starting date to an ending date
- Set the maximum losing streak length with an input
- Set the maximum winning streak length with an input
- Set the maximum consecutive days with a loss
- Set the maximum drawdown (in % of strategy equity)
- Set the maximum intraday loss in percentage
- Limit the number of trades per day
- Limit the number of trades per week
- Stop-loss: None or Percentage or Trailing Stop Percentage or ATR - I'll add shortly multiple options for the trailing stop loss
- Take-Profit: None or Percentage or ATR - I'll add also a trailing take profit
- Risk-Reward based on ATR multiple for the Stop-Loss and Take-Profit
Special Thanks
Special thanks to @JosKodify as I borrowed a few risk management snippets from his website: kodify.net
Best
Dave
Didi's Needles setup screener Didi's Needles setup screener
I basically used the screener created by QuantNomad , made some modifications and used the indicators from the setup
Indicators used:
Didi Index, ADX, Bollinger Bands, Trix and Stochastic.
Signals from each column:
Column 'Symbol'
Blue Symbol: When the Didi, ADX and BB are with buy signals
Yellow Symbol: When Didi, ADX and BB are with sell signals
Red Symbol: When ADX, BB, Trix and Stoch are with signals to close the trade
ADX' Column
ADX Kick: When the ADX has given a Kick (Top or Bottom). ADX was rising and starts to fall
Uptrend: When the ADX is up and below the Level and the DI+ is above the DI-
Uptrend Strong: When the ADX is up and above the Level and the DI+ is above the DI-
Uptrend Falling: When the ADX is below and above the Level and the DI+ is above the DI-
Downtrend: When the ADX is below the level and the DI- is above the DI+
Downtrend Strong: When the ADX is above the level and the DI- is above the DI+
Downtrend Falling: When the ADX is below the level and the DI- is above the DI+
Didi' Column
Buy Alert: When the Fast Average crosses the Median to the upside (as long as it is not a False Point) = Needle Alert
Sell Alert: When Fast Average Crosses Median Down (as long as it is not a False Point) = Needle Alert
Needle Buy: When slow average crosses the median down = Needle confirmation
Needle Sell: When slow moving average crosses the median to high = Needle confirmation
Fake Buy: When the fast moving average crosses the median and the slow moving average is above the median and rising = False Point (Sell signal or if you are positioned on the buy side, hold the buy or raise the hand)
Fake Sell: When the fast moving average crosses the median and the slow moving average is below the median and falling = False Point (Buy signal or if you are positioned on the sell side, hold the sell or raise your hand)
BB' Column
Open Rising: When the Bollinger Bands are open and the Base Mean (BB) is rising
Open Falling: When the Bollinger Bands are open and the Base Mean (BB) is falling
Parallel Rising: When the Bollinger Bands are parallel and rising
Parallel Falling: When the Bollinger Bands are Parallel and falling
Close: When the Bollinger Bands are closed
Trix Column
Bought: When the Trix is above the MA (trix)
Sold: When the Trix is below the MA (trix)
Stoch Column
Bought: When %K is above %D
Sold: When %K is below %D
--------------------------
Rastreador para o setup de Agulhadas do Didi
Eu basicamente usei o screener criado por QuantNomad , fiz algumas modificações e usei os indicadores do setup
Indicadores usado:
Didi Index, ADX, Bandas de Bollinger, Trix e Estocástico.
Sinais de cada coluna:
Coluna 'Symbol'
Symbol Azul: Quando o Didi, ADX e BB estão com sinais de compra
Symbol Amarelo: Quando o Didi, ADX e BB estão com sinais de venda
Symbol Vermelho: Quando o ADX, BB, Trix e Stoch estão com sinais para fechar a operação
Coluna 'ADX'
Kick ADX: Quando o ADX deu um Kick (Topo ou Fundo). ADX vinha subinte e começa cair
Uptrend: Quando o ADX está subinte e abaixo do Nivel e o DI+ está acima do DI-
Uptrend Strong: Quando o ADX está subinte e acima do Nivel e o DI+ está acima do DI-
Uptrend Falling: Quando o ADX está cainte e acima do Nivel e o DI+ está acima do DI-
Downtrend: Quando o ADX está subinte e abaixo do Nivel e o DI- está acima do DI+
Downtrend Strong: Quando o ADX está subinte e acima do Nivel e o DI- está acima do DI+
Downtrend Falling: Quando o ADX está cainte e acima do Nivel e o DI- está acima do DI+
Coluna 'Didi'
Buy Alert: Quando a média rapida cruza a mediana para cima (contanto que não seja um Ponto Falso) = Alerta da Agulhada
Sell Alert: Quando a média rapida cruza a mediana para baixo (contanto que náo seja um Ponto Falso) = Alerta da Agulhada
Needle Buy: Quando a média lenta cruza a mediana para baixo = Confirmação da Agulhada
Needle Sell: Quando a média lenta cruza a mediana para cima = Confirmação da Agulhada
Fake Buy: Quando a média rapida cruza a mediana paa cima e a média lenta está acima da mediana e subindo = Ponto Falso (Sinal de venda ou caso esteja posicionado na compra, segurar a compra ou aumentar a mão)
Fake Sell: Quando a média rapida cruza a mediana para baixo e a média lenta está abaixo da mediana e caindo = Ponto Falso (Sinal de compra ou caso esteja posicionado na venda, segurar a venda ou aumentar a mão)
Coluna 'BB'
Open Rising: Quando as Bandas de Bollingers estão abertas e a média base (BB) está subindo
Open Falling: Quando as Bandas de Bollingers estão abertas e a média base (BB) está caindo
Parallel Rising: Quando as Bandas de Bollingers estão Paralelas e subindo
Parallel Falling: Quando as Bandas de Bollingers estão Paralelas e caindo
Close: Quando as Bandas de Bollingers estão fechadas
Coluna 'Trix'
Bought: Quando o Trix está acima da MA (trix)
Sold: Quando o Trix está abaixo da MA (trix)
Coluna 'Stoch'
Bought: Quando %K está acima do %D
Sold: Quando o %K está abaixo do %D
[Mad] Exchange liquidationThis is just a basic tool to calculate liquidation based on:
margin-maintenance
leverage
it starts drawing on your input point short and long liquidation, so you can easily place it on your trade and drag it around if you are rebuying as an example.
Also, you can use it to aim for a specific support/resistance to see if it is even possible to reach some levels, which leverage you can use...
It additionally delivers live data based on the actual close to the 2 liquidation points
have fun
Slow but limitless moving averagesThis aproach shows how to execute diffrent MAs with diffrent lenghts conditionaly with only one MA function call. Current method allows to swap inputs of functions on the fly, but due to pinescript limitations calculation is slow. Publishing this script like an indicator not a libriary because i am working on better calculation method that can be evaluated, also data collecting and processing can be optimised, BUT its still extrimely useful aproach if you dont need to calculate (and swap inputs condtionaly for) more than 8 HTF MAs on every bar.
Currency translate indicator v1.0This indicator enters the base currency exchange rate.
Then transform it to display a candle graph.
This indicator is not equivalent to the actual value of the stock.
It is converted and displayed based on the exchange rate information you entered.
e.g. FX_IDC:KRWUSD, FXCM:AUDUSD
---
이 표시기는 기초 통화의 환율을 입력 받습니다.
그러면 이 표시기가 변환하여 캔들 그래프를 표시합니다.
이 표시기는 주식의 실제 가치와 동등하지 않습니다.
이는 그저 당신이 입력한 환율을 기반으로 변환해서 보여줄 뿐입니다.
예시) FX_IDC:KRWUSD, FX:AUDUSD
Hull Moving Average Bollinger Bands (HMABB)Hello! This is simply Bollinger Bands calculated with HMA! Heres a recap on both.
The Hull Moving Average (HMA) attempts to minimize the lag of a traditional moving average while retaining the smoothness of the moving average line. Developed by Alan Hull in 2005, this indicator makes use of weighted moving averages to prioritize more recent values and greatly reduce lag.
Bollinger Bands are envelopes plotted at a standard deviation level above and below a simple moving average of the price. Because the distance of the bands is based on standard deviation, they adjust to volatility swings in the underlying price. Bollinger Bands use 2 parameters, Period and Standard Deviations, StdDev.
Beta ScreenerThis script allows you to screen up to 38 symbols for their beta. It also allows you to compare the list to not only SPY but also CRYPTO10! Features include custom time frame and custom colors.
Here is a refresher on what beta is:
Beta (β) is a measure of the volatility—or systematic risk—of a security or portfolio compared to the market as a whole (usually the S&P 500 ). Stocks with betas higher than 1.0 can be interpreted as more volatile than the S&P 500 .
Beta is used in the capital asset pricing model (CAPM), which describes the relationship between systematic risk and expected return for assets (usually stocks). CAPM is widely used as a method for pricing risky securities and for generating estimates of the expected returns of assets, considering both the risk of those assets and the cost of capital.
How Beta Works
A beta coefficient can measure the volatility of an individual stock compared to the systematic risk of the entire market. In statistical terms, beta represents the slope of the line through a regression of data points. In finance, each of these data points represents an individual stock's returns against those of the market as a whole.
Beta effectively describes the activity of a security's returns as it responds to swings in the market. A security's beta is calculated by dividing the product of the covariance of the security's returns and the market's returns by the variance of the market's returns over a specified period.
cov (a,b)/var(b)
Close CandlesClosing candle takes any input and turs it into a candle stick chart. You can go from a regular candle chart by setting the length to 1, to heikin ashi by setting the length to 4. One of the features of this scripts is the ability to reuse the function. This function is a great addition to most scripts as it makes it really easy to give your script a candle view. As always I hope that you find this release useful. If you find any bugs please let me know. The same goes with any features you might want to request. This includes requesting custom indicators. Enjoy!
Trading range display with BoxThis script is just for reference to see the trading range.
Do not use this strategy logic, it is just Test strategy.
The trading range is colored depending on whether it is profitable or not.
You can change the color if you want.
When you declare the strategy, put (process_orders_on_close=true,calc_on_every_tick=true, max_boxes_count=500) in your script.
Then it can show you current open trading as well.
If you use switching strategy (e.g longposition to shortposition right away), it may not show you the range properly.
In that case, reduse the test period.
IT IS Repainting Reference.
If you want to see your strategy result visually,
Just copy and paste from line 22 in my script.
Good Luck everyone.
전략 거래 기간 동안을 보여주는 지표입니다.
이 지표에 쓰인 전략은 단순 테스트용 입니다. 절대 사용하지 마세요.
각 거래기간은 수익이냐 아니냐에 따라 색깔이 정해 집니다.
색깔은 여러분이 변경하실 수 있습니다.
전략을 선언부에 process_orders_on_close=true,calc_on_every_tick=true, max_boxes_count=500 을 넣으시면 현재 오픈 거래도 보실 수 있습니다.
스위칭 전략(롱에서 숏으로 바로 전환하는 전략)을 쓰시는 분들은 아마 테스트 기간을 줄이라는 경고를 받으실 수 있습니다.
이 지표는 리페이팅이 될 수 있습니다.
전략 결과를 눈으로 보고 싶으신 분들은 22번째 줄 부터 카피하시면 됩니다.
행운이 있길..
---strategy set---
default_qty_value=10
commission_value=0.04
slippage=2
[VTaL] Vertical Time Alert Lines - By BlueJayBird🦾 USE
- Vertical lines drawn ON TOP of chart at selected key times of the day, week, month, year.
- You can use it at any symbol (as far as I know).
- Programmatic alerts available.
- Lines from lower time-frames are selectively NOT visible at higher time-frames. Example: At 1h time-frame, vertical lines from 1h and 4h intervals are not visible. Drawing them is considered not really useful.
🎭 MAIN FEATURES
- Available targeted times: 3m, 15m, 1h, 4h, 1D, 1W, 1M, 1Y.
- Offset available for all lines. Example: 1 offset for 4h moves lines from 4AM to 8AM.
- Programmatic alerts for all lines. Example: If alert is enabled for 15m lines, every time those lines are reached, alert will trigger.
- Available drawing themes: Custom, Light, Dark.
💻 NOTES ON CODE
- Vertical lines are drawn using a custom function, which uses line.new() built-in function.
- Alerts are triggered using ta.cross() built-in function. Alert is triggered when close price crosses a given time value from the line.get_x1() built-in function.
- I've added, where necessary, several comments to the code for understanding what's going on. If you have additional questions, you may ask them in the comment section of the publication.
- 3m lines are not really useful in day-trading, they were added for debugging purposes mainly. Useful for learning how to use alerts, though.
👉🏼 NOTES ON ALERTS
- When setting up an alert, the targeted line must be enabled/visible.
- Every time any alert is enabled or disabled, you must create AGAIN the alert from the "Alerts" panel (remember, alerts run in the back-end).
- Alerts contain really useful information. If you have any idea for adding some other data, tell in the comment section. 💡
⚠️ KNOWN ISSUES
- None. Let me know please if you find any.
--------------------------------------------
~ Comment , Follow and Boost ~ 🚀
Expansion of EMAWe are added multi EMA for trend analysis .
use only 1MIN and 5 MIN candle
its only use for Indian market and intraday purpose .
Altcoin Analyzer [Lysergik]Quickly view any USD-based asset's value relative to Bitcoin without needing to have a separate chart with all its bells and whistles.
[FFriZz]Priceline/TicksFFriZz | FrizLabz -- Priceline/Ticks
Due to TradingView not allowing us to change the size or style of the Priceline I decided to make this
You can change the style, size, color of the Price line with this Script
There is also an option for the closing price to be plotted on the Priceline
-- Colors --
You can have the Line and/or the Closing price change colors with the price movements
both are adjustable to your preference
-- Ticks --
Will show the difference in price from tick to tick
when Volume moves but price doesn't it will show '▲▼'
-- Adjustments --
The offset of the Close and Ticks can be adjusted from left to right
Can Extend Priceline in all directions
Can change the Line style and Width
Can change all the Text sizes and Colors
Can also Change Colors to change with Price movements
Can Change number of Ticks to show
-- Priceline --
You don't have to but I suggest going to the settings of your Chart and turning off the Priceline
-- Challenge --
There is Some code at the bottom that will move the Label and Ticks to the x% of your screen in from the right once
the last bar is no longer visible. I decided not to use it because even when the feature is turned off any movement of the
chart resets the Ticks. If you find out a way to have it not reset the Ticks Let me know!
If you find any bugs or have any suggestions feel free to DM me or leave a comment!
Hope you Enjoy! -- FFriZz | FrizLabz
[FriZz]Watermark -- Watermark by FriZz | FrizLabz --
Lets you Customize a watermark how ever you would like
There are 4 Textboxes in the settings window 2 for your inputs
There's 1 with instructions/examples and 1 with Special Characters (there are tons more online)
-- The options you can type into Textbox 1 and 2 --
- Volume
- Open
- Close
- High
- Low
- Ticker [ Chart ticker ]
- Ticker2 [ Optional 2nd ticker that can be set in the settings will also display close ]
- TF
- Day
- Date
- Time
- Session
- SessionTime
-- Important --
These options need to be spelled and Case matched correctly or it will simply just display the word
You can add anything around a word or between two words you would like
If you want a new line simply press [ ENTER/RETURN ] and continue
-- Tooltip --
Tooltip appears when you mouse over the watermark
There are options to change the session times if you need too
The Sessions will be listed on the tooltip with Session times
I think that pretty much covers most of it if you have any questions or suggestions on this or anything else I've made
or if I missed a bug.. feel free to comment or DM me
Enjoy! - FriZz
Benjamin Graham Net-Net AnalyserA simple indicator that displayers as a table, telling you whether or not the stock you have selected has a current price that is less than 67% of the company's net current asset value per share (NCAVPS) at its last reporting period (FQ, FY, TTM).
Benjamin Graham uses this 67% rule to decide whether or not a stock is significantly undervalued, and studies have shown that investing in companies whose share prices are less than 67% of their NCAVPS can be highly profitable, and will beat markets in the long run.
Feel free to use as you please or repurpose the code for your own projects.
Tick StrategyTick Strategy:
Questions many pine coders/traders have is, How to enter/exit trade as soon as trade condition is met i.e. do not wait till candle completion to enter/exit the trade. This strategy will help you to understand one of the way to achieve it.
This is an educational strategy to demonstrate, how one can trade based on tick data. This being a strategy based on tick data, it can be tested only on real time candles. This strategy will not take any trades on historical candles and cannot be used for back testing. All the strategy trades taken on real time candles will disappear (repainting) once chart is refreshed and new trades will be entered on real time candles.
The strategy will do nothing during off market hours and will not take any trades.
The strategy has been designed based on rules/inputs below:
1. Count the ticks from start of a candle till end of candle
2. Bifurcate ticks as up-ticks and down-ticks. If tick price is above previous tick price the tick is considered as up-tick and vice versa
3. Count the successive up-ticks and successive down-ticks
Strategy rules:
1. Track candle type (green or red) continuously on each tick (green candle is when latest tick price > previous tick price)
2. Take a long trade if work in progress (WIP) candle is green candle and we get successive up-ticks equal to user input ticks for trade
3. Take a short trade if work in progress (WIP) candle is red candle and we get successive down-ticks equal to user input ticks for trade
4. Exit the trade when we get successive ticks equal to user input ticks in opposite direction
5. Optionally for trade entry, user can decide whether to calculate successive up-ticks/down-ticks from beginning of candle or successive up-ticks/down-ticks anytime during the candle formation
6. Optionally for trade exit/square off, user can decide whether to apply exit rules on the entry candle or only from subsequent candle
Strategy setting:
1. '' – This is just to describe when trades are entered. This parameter is not used for any calculation
2. 'No of successive ticks to enter the trade' – User input to decide, number of successive ticks for trade entry
3. 'Count successive ticks for trade only from start of candle' – check this to count successive ticks only from beginning of a candle
4. 'Exit if succussive ticks in opposite direction' - User input to decide, number of successive ticks in opposite direction for exiting the trade
5. 'Apply exit criteria on entry candle' – check to allow exit of trade on the entry candle, if un-checked, trade will not be exited on the entry candle i.e. opposite direction ticks will be counted from subsequent candle
Information below will be displayed continuously on the chart:
1. Candle no – Candles are counted from start of the trading session. This is current candle being formed on the chart
2. Candle now – This shows either ‘Green’ or ‘Red’ based on type of candle being formed
3. Tick count – This is current tick number being processed. Tick number starts from 1 for each new candle
4. Up-tick count – Number of up-ticks during formation of current candle
5. Down-tick count – Number of down-ticks during formation of current candle
6. Successive up-ticks – Current successive up-tick count
7. Successive down-ticks – Current successive down-tick count
8. Up-tick volume – Volume associated with up-ticks
9. Down-tick volume – Volume associated with down-ticks
10. Up-tick volume % - This is % of volume associated with up-ticks
11. Total volume – Candle volume till now. (Some times you might observe small difference between total volume and the volume shown by volume indicator. The difference could be because of refresh rate of your screen)
12. Candle completion % - This shows current candles completion %. This is candle progress from start of candle till close of candle
Tick StatisticsTick Statistics:
I have seen many questions/queries related to tick data in TV telegram channels. This script will help pine scripts to understand how ticks work, how to capture and process tick data.
This is an educational indicator script for pine scripters.
The indicator shall work only on real time candles. Tick data capture is initiated as soon as indicator is loaded on the chart. You might not get correct statistics on 1st candle in case indicator is loaded when real time candle is in progress, in such case you can monitor the statistics generated for subsequent candles.
Generated statistics is shown on the chart by placing 2 diamond shapes above and below the candle.
Diamond shape below the candle will have candles ‘tick data’ listed in a table. This can be view by placing mouse pointer on the diamond shape. Refer to point 1 below for more details.
Diamond shape above the candle will have statistics as mentioned in point no 2 onwards. To view the statistics place the mouse point on the diamond shape. The shape will appear in green color when both tick price and tick volume are both moving in the same direction. The diamond shape in red color means tick price and tick volume are moving in opposite direction.
The script captures tick by tick data and generate statistics below:
1. List of tick data with details below: (this is stored in the diamond shape placed below the candle)
a. Tick no
b. Tick type – Up tick (Up), Down tick (Dn), No change (--)
c. Tick price
d. Volume
e. Price difference (as compared to previous tick price)
f. Volume difference (as compared to previous tick volume)
2. Tick statistics
a. Total ticks
b. Number of up ticks
c. Number of down ticks
d. Number of No change ticks
3. Volume Statistics
a. Total volume
b. Up tick volume
c. Down tick volume
d. Volume associated with ticks where there is no change
e. Candle volume (just for reconciliation purpose)
4. Max-min statistics
a. Max volume = <> at price = <> at tick no = <>
b. Min volume = <> at price = <> at tick no = <>
c. Max price = <> at volume = <> at tick no = <>
d. Min price = <> at volume = <> at tick no = <>
5. Candle summary
a. Price << Up >> (if price is up as compared to 1st tick <> otherwise
b. Volume <> (if up tick volume is more than down tick volume <> otherwise
Moving Average ChannelThe Moving Average Channel (MAC) is a concept developed by Jake Bernstein, Speaker at Wealth365®, where the 10 period SMA of the High and the 8 period SMA of the Low are plotted to create a channel. As the channel begins expanding, the current trend is getting stronger. However, when the expansion is too large, the trend may make a pullback to the channel (upper or lower), which act as support and resistance lines. This concept is the foundation for the Expansion Contraction Indicator (XC) developed by Brian Latta, Author of “The Book on Trading”.