Relevant Populations GroupedUSPOP Same idea as my previous grouped GDP indicator but now population sizes. Goes to show how a small portion of the world is responsible for most of what we consider economic productivity.
Educational
atnX_2According to the Ichimoku cloud, this script provides the opportunity to buy, sell, and determine the trend direction by signaling at the point where the EMA 5/10 intersections are located and gives you the opportunity to successfully indicate when you will exit the commodity that I like the most.
Investor_coin is my mentor to create such a well-working script.
@melihtuna did the coding.
Harmonic Table Combo Point B█ OVERVIEW
This indicator was intended as educational purpose only and alternative way to show value in table as shown in Harmonic Pattern Possibility Table .
█ CREDITS
Credit to Scott M Carney, Harmonic Trading Volume 3: Reaction vs. Reversal.
█ USAGE EXAMPLE
Mean reversionSimple mean reversion strategy.
Strategy aims to find three bullish or bearish candle pattern which ends with strong move. Position will be open until we get close above previous highs.
Strategy uses also simple moving average to filter short positions.
This strategy works well with QQQ and daily time frame but it seems to do fairly well intraday also.
User can modify moving average length and how strong is the move of the last candle.
This strategy is inspired a strategy by hackertrader. The original idea by QuantpT.
Traling.SL.TargetTrailing SL and Target
I have seen few requests in PineScripters telegram group asking questions about implementation of trailing stop-loss (SL) and targets. This script is one of the way to implement the same.
This script is developed based on dark color theme and is best viewed using dark color theme.
How and where can this script be used:
The script is built to demonstrate how one can implement the trailing SL and target, so by referring the script one can mimic the approach and add trailing SL and target implementation in their own strategy.
How it works:
To demonstrate the SL and target implementation, i have considered simple EMA crossover strategy.
Key Input Parameters
Method to use for SL/Target trailing:
1. % Based Target and SL - Used to calculate trailing based on parameters defined under group '% Based Target SL'
2. Fixed point Based Target and SL - Used to calculate trailing based on parameters defined under group 'Fixed point Based Target and SL'
% Based Target and SL:
Initial profit % - This is used to calculate target when trade is initiated
Initial SL % - This is used to calculate SL when trade is initiated
Initiate trailing % - This parameter determines, when to start trailing SL and target.
Trail profit by % - Target would be trailed by % specified as this parameter
Trail SL by % - SL would be trailed by % specified as this parameter
e.g.
Trade type: - Long
Trade price: 10000
initial profit %: 1
Initial SL %: 1
Initiate trailing %: 0.5
Trail profit by %: 0.3
Trail SL by %: 0.4
Calculations based on above:
initial profit %: 10100 (trade price + 1%)
Initial SL %: 9900 (trade price - 1%)
Initiate trailing %: 10049.5 (initial profit - 0.5%)
Trail profit by %: 10130 (initial profit + 0.3%)
Trail SL by %: 9939.6 (initial SL + 0.4%)
For next iteration of Trailing SL and target above calculated values will be taken as a base and next set of values will be calculated. these calculations will continue till the trade is exited either on price reaching profit or SL point.
Fixed point Based Target and SL:
Initial profit target points - To derive initial target, parameter value is added to trade price in case of long trade.
Initial SL points - To derive SL point, parameter value is subtracted from trade price
Initiate trailing points - To derive start of trailing logic, parameter value is subtracted from initial profit point.
Trail profit by points - In case of long trade, parameter value is added to the profit target to derive new trailed profit target.
Trail SL by % - In case of long trade, parameter value is added to the SL initial point to derive new trailed SL.
Calculation of Trailing SL and target will continue till the trade is exited either on price reaching profit or SL point.
Plots displayed on the chart:
Apart from default trade markings i have added 3 shapes on the chart to describe working of Trailing SL and targets.
Diamond shape marks - These are added on the chart when trade is initiated. These shapes gives additional trade information by way of 'tooltip'. This information can be viewed by placing mouse pointer on the shape.
Circle shape marks - These are added on the chart whenever Trailing SL and targets are calculated. These shapes gives additional trade information by way of 'tooltip'. This information can be viewed by placing mouse pointer on the shape. You will also notice a number displayed just above or below circle denoting Trailing iteration.
Labels up and label down shapes - These are dynamically placed on the chart whenever trade is in progress. These labels will display ongoing trades, Target and SL points.
NSE Bank Nifty - Constituent StrengthNSE Bank Nifty - Constituent Strength
What is does:
Identifies how stocks under bank nifty index are performing if compared with bank nifty index.
Calculations:
A = Individual stock price
B = Bank nifty index price
C = A / B
D = average of A / B over length specified using input configuration
Stock is out-performing Bank nifty if A >= C
Stock is under-performing Bank nifty if A < C
Input Parameters:
Data source - For calculation of strength
Timeframe - For calculation of strength
Moving average type - SMA or EMA
Moving average length - Length for calculation of moving average
Show line chart for - One of the symbol from index constituents for showing line chart in the indicator window
S1 to S12 - Bank nifty stocks. Populated by default
Output:
Table listing each of the Bank nifty stocks
Stocks displayed in Green color are out-performing Bank nifty
Stocks displayed in Red color are under-performing Bank nifty
Line chart Price line - Blue colored line representing Stock price / Bank nifty price
Line chart Average line - Combination of Red, Green and Blue colors line representing average of Stock price / average of Bank nifty price
ICT EverythingVersion 1.0
Global Settings
• Timezone Selection
• Hide Indicator Above Specified Time
Thematic Override
• Override Colors For Dark Theme ( Colors Set for White Theme by Default )
• Override Session Highlighting Color
Session Options
• Show Historical Sessions
• Enable/Disable Session Highlighting
• Session Specific Visibility
• Session's Crucial Time Vertical Lines w/ Options
NY Midnight Line Options
• Show Historical NY Midnight Vertical Lines
• Midnight Verticle Line Options
• Show Historical NY Midnight Price Lines
• Midnight Price Line Options
Opening Price Line Options
• New York 8:30 AM Price Line Settings
• Equities Open 9:30 AM Price Line Settings
• Option to Display Historical Price Lines
HTF Levels
• Weekly Open
• Monthly Open
label Settings
• Show/Hide Label Text
• Show/Hide Label
Day of Week
• Show Day of Week at the bottom of chart w/ Time Co-ordinates Selection
••• Message Me For Link to Frequently Updated Version of This Indicator •••
DATE and ATR20 for practice using kojiro_indicatorsThis is an indicator to display ATR20, EMA100 of ATR20 and date at a glance for trade practices using kojiro_indicaotrs.
This will allow you to easily perform your practices.
Please change the period of EMA and the display interval and size of the indicator as needed.
Please enter small, normal, large, huge, or auto for the size.
The following is in Japanese.
小次郎講師のインジケーターでプラクティスする際に、
ATR、日付を見やすくするためのインジケーターです。
サイズや間隔を変更可能です。サイズはnormal、normal、large、huge、autoを入力してください。
Input Source█ OVERVIEW
This script demonstrates how your script can provide multiple input source selections while still allowing the use of an external indicator input.
█ CONCEPTS
There are occasions when one needs to provide script users with multiple input source selections while still allowing the selection of an external input. This is usually impossible because for external indicators to appear in an input widget's dropdown menu, only one input.source() call must be used in the script. If multiple calls are used, then no external indicator can be selected in any of the script's input widgets.
This script demonstrates how you can provide input sources offering a selection among the usual source built-ins ( open , high , low , close , hl2 , hlc3 , ohlc4 , hlcc4 ), but without the ability for users to select an external indicator. This allows your script to use multiple source inputs while still using one source input allowing the selection of an external input.
Look first. Then leap.
Volatility Trigger IndexThe script allows to assess the volatility of an asset.
It works by calculating the rate of change and the standard deviation.
The index is useful to determine the lowest volatility periods (could be useful to look strategies) and also it determine the highest volatility periods (maybe for exits or partial closes).
It has 3 iputs:
Lenght.
Low volatility value.
High volatility value.
The low and high values are set after a visual inspection. The values changes in each time frame. Usually when the timeframe is higher the value of the index is higher as well. So the low and high levels must be changed after each time frame set.
As an idea could be used in combination with any moving average to determine the market direction and the index used as a trigger.
Harmonic Pattern Possibility Table█ OVERVIEW
This indicator was intended as educational purpose only based on Harmonic Pattern Table (Source Code) and Ratio For Harmonic Points to show Harmonic Pattern Possibility.
█ INSPIRATION
This indicator was build upon realizing there are some overlap for B = XA among Alternate Bat, Bat, Crab and Gartley.
Hence, the values split up to showcase the possibility of non overlap ratio.
█ USAGE
Possible pattern, priority pattern and selected pattern may differs based value input.
Therefore C = AB, D = BC, D = XA and Stop Loss will change based value input and also selected pattern.
█ CREDITS
Credit to Scott M Carney, Harmonic Trading Volume 3: Reaction vs. Reversal.
Leverage and contracts toolThis script is more like a tool than an indicator.
The script determinates the amount of contracts and the leverage needed to do one trade.
You must specify the following parameters:
Entry price
Stop Loss price
Stop Loss risk. It's the capital that you will loss if the price hit the SL price.
Operation equity. It's the whole capital involved in the operation.
No matter what side of operation is, it works in both ways (short and long).
To determine the levels could be useful use the short-long position tool of TradingView.
'last red low / last green high' exitThis is a good alternative to pivot points and ma lines to find long and short exit points (stop loss prices) for a trade.
When you hear traders say "set the stop loss to the recent swing", this indicator seems to do a reasonable job of finding those.
This script marks
the low of the most recent red candle
the high of the most recent green candle
in order to help identify a reasonable stop loss exit point for long and short trades.
You can also specify a distance threshold to the stop loss point.
How to use it.
Decide how far from the current price the exit should be (default 1.5%)
Use your chosen trading strategy to identify a long or short entry position
Add a long/short drawing to the close of the trade candle
Set the stop loos of your drawing to the exit line of this indicator
Set the take profit of your drawing using the desired risk to reward ratio
Note: A good rule is that if this indicator does not show a valid exit line, do not enter the trade.
Note: If the change of a new "last Green High" or the "last Red Low" is below 0.5%, the indicator will keep the previous values
ATR Trex [SHK] - Modified Some minor changes :
1. APR Removed Temporarily
2. Whole table moved to new pane ( not overlay )
3. % of changes added to numbers for better decision
4. Some plots added. ( thick green line : higher timeframe ATR, orange line: current timeframe atr, black line: one timeframe lower ATR, purple line: largest candle shadow ( up or down) )
Bugs:
There is no upper time frame for weekly timeframe
There is no lower time frame for 1m
....
Simple_PyramidingA simple Pyramiding / DCA Strategy. Everyday at a specified time a position is opened. The individual position is closed when a take profit is triggered. Optionally a stop loss can be activated, or the option to close the position at the and of the time frame. You can specify the max amount of open positions. The equity will be divided through the max amount of open positions.
This strategy is a result of an exploration into working with time sessions, pyramiding, for loops and possibilities to trigger individual take profits (profit) and stop loss levels (stop). This strategy is by no means a worked out and reliable strategy. Please feel free to experiment with the code in your indicators and strategies.
Signal generatorThis simple script generates signals for testing the connection from TradingView to a REST API client via the webhook and demonstrates very basic concepts of gerenating alerts within the script.
This script also demonstrates how to visualize when a buy or a sell should take place and how to use diagnostics text for bug fixes/informational purposes.
This is for testing and learning only. Do not use with real money as losses WILL occur. This script is for educational purposes only and should only be used with demo accounts, never with real money .
Buy signals are generated when closing price is less then opening price.
Sell Signals are generated when closing price is greater then opening price.
Can also be used to test signal counting and very rudimentary dollar cost averaging.