Margin/Leverage CalculationMargin
This library calculates margin liquidation prices and quantities for long and short positions in your strategies.
Usage example
// ############################################################
// # INVESTMENT SETTINGS / INPUT
// ############################################################
// Get the investment capital from the properties tab of the strategy settings.
investment_capital = strategy.initial_capital
// Get the leverage from the properties tab of the strategy settings.
// The leverage is calculated from the order size for example: (300% = x3 leverage)
investment_leverage = margin.leverage()
// The maintainance rate and amount.
investment_leverage_maintenance_rate = input.float(title='Maintanance Rate (%)', defval=default_investment_leverage_maintenance_rate, minval=0, maxval=100, step=0.1, tooltip=tt_investment_leverage_maintenance_rate, group='MARGIN') / 100
investment_leverage_maintenance_amount = input.float(title='Maintanance Amount (%)', defval=default_investment_leverage_maintenance_amount, minval=0, maxval=100, step=0.1, tooltip=tt_investment_leverage_maintenance_amount, group='MARGIN')
// ############################################################
// # LIQUIDATION PRICES
// ############################################################
leverage_liquidation_price_long = 0.0
leverage_liquidation_price_long := na(leverage_liquidation_price_long ) ? na : leverage_liquidation_price_long
leverage_liquidation_price_short = 0.0
leverage_liquidation_price_short := na(leverage_liquidation_price_short ) ? na : leverage_liquidation_price_short
leverage_liquidation_price_long := margin.liquidation_price_long(investment_capital, strategy.position_avg_price, investment_leverage, investment_leverage_maintenance_rate, investment_leverage_maintenance_amount)
leverage_liquidation_price_short := margin.liquidation_price_short(investment_capital, strategy.position_avg_price, investment_leverage, investment_leverage_maintenance_rate, investment_leverage_maintenance_amount)
Get the qty for margin long or short position.
margin.qty_long(investment_capital, strategy.position_avg_price, investment_leverage, investment_leverage_maintenance_rate, investment_leverage_maintenance_amount)
margin.qty_short(investment_capital, strategy.position_avg_price, investment_leverage, investment_leverage_maintenance_rate, investment_leverage_maintenance_amount)
Get the price and qty for margin long or short position.
= margin.qty_long(investment_capital, strategy.position_avg_price, investment_leverage, investment_leverage_maintenance_rate, investment_leverage_maintenance_amount)
= margin.qty_short(investment_capital, strategy.position_avg_price, investment_leverage, investment_leverage_maintenance_rate, investment_leverage_maintenance_amount)
Margin
Liquidation Estimates (Real-Time) [LuxAlgo]The Liquidation Estimates (Real-Time) experimental indicator attempts to highlight real-time long and short liquidations on all timeframes. Here with liquidations, we refer to the process of forcibly closing a trader's position in the market.
By analyzing liquidation data, traders can gauge market sentiment, identify potential support and resistance levels, identify potential trend reversals, and make informed decisions about entry and exit points.
🔶 USAGE
Liquidation refers to the process of forcibly closing a trader's position. It occurs when a trader's margin account can no longer support their open positions due to significant losses or a lack of sufficient margin to meet the maintenance requirements.
Liquidations can be categorized as either a long liquidation or a short liquidation. A long liquidation is a situation where long positions are being liquidated, while short liquidation is a situation where short positions are being liquidated.
The green bars indicate long liquidations – meaning the number of long positions liquidated in the market. Typically, long liquidations occur when there is a sudden drop in the asset price that is being traded. This is because traders who were bullish on the asset and had opened long positions on the same will now face losses since the market has moved against them.
Similarly, the red bars indicate short liquidations – meaning the number of short positions liquidated in the futures market. Short liquidations occur when there is a sudden spike in the price of the asset that is being traded. This is because traders who were bearish on the asset and had opened short positions will now face losses since the market has moved against them.
Liquidation patterns or clusters of liquidations could indicate potential trend reversals.
🔹 Dominance
Liquidation dominance (Difference) displays the difference between long and short liquidations, aiming to help identify the dominant side.
🔹 Total Liquidations
Total liquidations display the sum of long and short liquidations.
🔹 Cumulative Liquidations
Cumulative liquidations are essentially the cumulative sum of the difference between short and long liquidations aiming to confirm the trend and the strength of the trend.
🔶 DETAILS
It's important to note that liquidation data is not provided on the Trading View's platform or can not be fetched from anywhere else.
Yet we know that the liquidation data is closely tied in with trading volumes in the market and the movement in the underlying asset’s price. As a result, this script analyzes available data sources extracts the required information, and presents an educated estimate of the liquidation data.
The data presented does not reflect the actual individual quantitative value of the liquidation data, traders and analysts shall look to the changes over time and the correlation between liquidation data and price movements.
The script's output with the default option values has been visually checked/compared with the liquidation chart presented on coinglass.com.
🔶 SETTINGS
🔹Liquidations Input
Mode: defines the presentation of the liquidations chart. Details are given in the tooltip of the option.
Longs Reference Price: defines the base price in calculating long liquidations.
Shorts Reference Price: defines the base price in calculating short liquidations.
🔶 RELATED SCRIPTS
Liquidation-Levels
Liquidity-Sentiment-Profile
Buyside-Sellside-Liquidity
Trade Manager & Position Size Tool & PnL Tracker [AlgoScopes] V1Position size tool, leverage calculator, trade tracker, money management, trade presentation, risk reward management, margin position, live profit and loss, that's all in this one Trade Manager indicator.
The idea for this indicator comes from two years ago when I was helping a friend who, at the request of 15-20 members from our telegram group, wanted to create a paid group and share our ideas for trade with them (it started as an experiment for just a month or two and ended with 15 months with over 500 trading ideas and signals, with a complete TA chart). If I had time to create this indicator back then for members, it would have been much easier for them to be able to understand and follow the trade idea that was presented through a classic chart, with all the things that a TA must have:
Entry (as well as the reason for entry),
Stop (where the idea for the trade is no longer valid),
Target (with the reason why it is the target for that trade),
Take profits (taking part of the profit on the way to the target).
The majority of members still did not understand how much position to trade, what is the possible profit or loss, if the margin trade is how much leverage to use, in one word “money management”. The most important rule that every trader must follow is "Plan your trade and trade your plan". Learn money management and you are halfway there to becoming a successful trader. It is only after all that, you learn to use some of the "holy grail" indicators. When you have mastered those first two rules, find and master your favorite indicator or trading style (the most important thing is to stick to those two rules). The margin | leverage is also included in the script, for which there are so many dilemmas, arguments and discussions. (that many who still do not understand margin, would trade that it is not passionate if it is controlled). Too much for an introduction, especially since this indicator has so much to explain.
Most importantly, this is an invite-only indicator, and there are so many free indicators on tradingview that can also serve you very well. As far as I know, all exchanges have a calculator tool to calculate the possible profit and loss for each trade you plan to take.
*This indicator is not recommended for scalping on a 1min chart because the script, as you will see, is very complex, so the loading time is longer than with simpler indicators.
💠 ABOUT THE SCRIPT
This script is made to help manage trade. In this one indicator you have the possibility to do technical analysis, calculation for trade (four types: account size risk, trade investment, maximum to lose or position size), monitor 'PnL' (profit and loss in real time) do the calculation in the second, maybe local currency, and set an alert (from entry to any other change in trade). As the script is made for general use, some slight differences are possible for real time 'PnL' or 'ROI'. Always do a test before you start trading with larger amounts. The script is recommended for intra day trading and above. The script is not recommended for scalping on the 1min chart
💎 PROCESS TO ADD SCRIPT TO CHART
Possible trade on break example trade
As this script is invite-only, to add it to the chart you need to click on Indicators and find it under the 'Invite-Only' section. When you add the script to the chart (as it is interactive), you will be asked to do 4 steps.
🔸 'SET TRADE TIME'
Click on the chart where the last vertical bar is.
If you are already in the trade, then find the bar|time where the trade started
(you want to follow trade or trade presentation)
🔸 1) 'SET ENTRY'
Click on the horizontal level where you want to place the Entry
🔸 2) 'SET STOP'
Click on the horizontal level where you want to set the Stop
🔸 3) 'SET TARGET
Click on the horizontal level where you want to place the Target
💎 CONFIRM INPUTS
After you have done those 4 steps, a popup will appear with the relevant inputs for the trade.
You will see that some inputs are already filled (done in those 4 steps before, Entry, Stop and Target). You can correct them if you want (you will sometimes notice a longer 'space decimal' for the trade ticker, but this will not affect the calculator or other parts of the script). You can do the rest of the inputs for trade or finish it later when the script is loaded on the chart (it is recommended to fill in 'Trade Type' and 'Amount'. Don't forget to click on the "Apply" button to load the script on the chart.
💎 INDICATOR LOADED ON CHART
• When the indicator is loaded on the chart (regardless of whether it is a new trade or a trade that has already started), the following items are displayed by default:
🔸 ' Trade Table ' shows all relevant information for the trade
🔸 ' Trade Box ' with lines for Entry, Stop and Target (Take Profits if enabled)
🔸 ' Trade Box Labels ' with relevant data
• The Entry label is also the trade status label, and if the trade is not active, by default it is the Entry color
If the trade is active or when a new trade reached Entry, several new things are noticeable:
• Entry|Status label as well as status row in table will change color as well as 'Entry Reached' text
• Several extra columns relative to trade will be added to the Entry|Status label
• 3 new columns will also appear on the Trade Table (Live PnL, Live min PnL and Live ROI)
• If Trail Stop is enabled, the label will change the text to T.Stop and change color depending on whether it is in loss or profit.
• If Trail Stop is enabled, inside Trade Box trail line it will follow price action inside the box, while the label will always be fixed at the initial level
• A vertical colored line will appear on the right side of the Trade Box (depending on whether the trade is in profit or loss) which shows as in the Trade Table like Live PnL
⚪ SETTINGS
💎 Trade Account Setup
🔸 ‘Trade Type’
• 'Account Capital' or portfolio (with combination '% Capital Risk')
• 'Investment' (how much you want to invest in the trade)
• 'Risk To Lose' (how much you want to risk losing)
• 'Position Size' (exact position size, units|share for trade)
🔸 ‘Account Type’
• If the account is in another currency or you want to see possible profit | loss in local currency
• Around 150 world and local currencies supported by ICE exchange
🔸 ‘Amount’
• Amount for ‘Trade Type’
🔸 ‘% Capital Risk’
• Only for ‘Account Capital’ trade type
(i.e. 10.000 account capital with ‘% Capital Risk’ 4 is 10.000 x 4% = maximum loss 400)
🔸 ‘Leverage’
• Enable|Disable for margin trade i size of leverage (maximum 125x)
(be sure to study how and when to use margin trade through the tutorial, because margin trade can be very dangerous. If you have not perfected margin trade, there is a great possibility of losing most or even all of your account capital).
💎 TRADE ENTRY & TARGET & STOP & T.STOP & DATE | TIME
🔸 ‘Trade Date & Time’
🔸 ‘Entry’
🔸 ‘Stop’
🔸 ‘Target’
• (all was set in the previous step but can be correct/adjusted if needed)
🔸 ‘Market Entry’
• Enabled will move Entry on that bar close
🔸 ‘Liquidation’ (enabled by default)
• Show ‘Warning’ if trade Stop is close or invalid (trade will hit liquidation before reached Stop level)
🔸 ‘Trailing Type’ (4 trailing stop type)
• ‘Disabled’ (Stop will stay the entire time at the initial stop level)
• ‘Continuous’ (I.Stop follow price by distance or percent when price reached Trail start level)
• ‘Stepped’ (I.Stop moves to previous level when price reached Trail start level)
• ‘Breakeven’ (I.Stop moves to Entry when price reached Trail start level)*
* (least one Take Profit enabled)
🔸 ‘Trailing Active’ (Entry, TP1, TP2 and TP3)
• Trailing stop starts level if ‘Trailing Type’ is enabled
🔸 ‘Trailing by’ (distance or percent)
• ‘Distance’ (T.Stop will follow price action by distance)
• ‘Percent’ (T.Stop will follow price action by percent)
(this is a good example to see the difference between trailing by initial distance and initial percentage)
🔸 ‘T.Stop Distance & Percent’ (initial distance and percent for table trade only)
• Useful for bot or exchange
🔸 ‘Stop, T.Stop, Target and TP’s in PIP’s’
• Distance in PIP’s
💎 TAKE PROFIT
🔸 ‘Split Target’ (enabled by default to three take profits (TP) with auto split)
🔸 ‘Number of Take Profits’ (up to three take profits)
🔸 ‘Type’ (auto or manual)
• For manual type fill all prices to preferred level. TP percent (TP1%, TP2% and TP3% ) and Target% is how much profit you want to take on a specific level.
• PLEASE NOTE sum of all enabled ‘TP’ and targets = 100 (e.g. two TP and sets TP1% to 25 and TP2% to 35, then Target% should be 40% i.e. 25 + 35 + 40 = 100)
💎 TRADE BOX & LINES
🔸 ‘Target Line’ (color for target line and trade table ‘direction’)
🔸 ‘Stop Line’ (color for initial line and trail line)
🔸 ‘Entry Line’ (color for entry line and label & table status)
🔸 ‘To Trade Time’ (‘trade box’ left vertical line)
• By default is set to trade date and time
• Unchecked will be moved to the last bar (live time)
🔸 ‘Extended Left’ (extend Entry, Stop, Target and TP’s lines to left)
• To check for possible support|resistance
🔸 ‘Size’ (Entry, Stop, Target and TP’s lines size)
🔸 ‘PnL Box Size’ (line size for vertical box lines)
🔸 ‘Offset’ (right vertical line offset from last bar)
🔸 ‘PnL Box Color’ (right vertical line and trail fill color)
• Color changes for profit & loss
🔸 ‘Box Line Color’ (box base color)
💎 LABELS
🔸 ‘Stop & Target Labels’ (enable|disable stop and target labels)
• By default is set to small (tiny, small, normal, large, huge and auto option)
• Disabled will move all information on Entry|Status label
🔸 ‘Offset’ (label offset from trade box)
🔸 ‘Target Label’ (label color for target and all enabled tp’s)
🔸 ‘Stop Label’ (label color for initial stop and enabled trailing stop)
🔸 ‘Label Text’ (color for label text)
🔸 ‘Status Label Color’ (label table entry|status color when trade is not active)
🔸 ‘PnL’ (entry|status color for profit and loss)
🔸 ‘Size’ (by default set to normal, option tiny, small, normal, large, huge and auto)
🔸 ‘Risk to Reward’ (show risk to reward on labels)
🔸 ‘Extra Info’ (by default disabled, show extra related info for trade on labels)
• Useful if Trade Table disabled
🔸 ‘Close Trade Stats’ (by default disabled, show all info when trade is closed)
• By default is white text color for close trade stats label
💎 ALERTS
🔸 ‘Failed Trade’ (alert if price reached Stop before is active, reached Entry)
• Useful if trade need adjustment but it can also be left as it is
and alert is just warning
🔸 ‘New & Update Alert’ (alert when price reached Entry or change status to enabled Take Profits)
🔸 ‘Trade Closure Alert’ (alert when trade closed, reached Stop, Target or enabled Trail Stop)
• Alert can be in modified or default preset jSon format as well as in plain text format
• Place holders for creating alerts are :
{type}, {symbol}, {exchange}, {ticker}, {base}, {quote}, {timeframe}, {price}, {direction}, {entry}, {stop}, {tstop}, {tp1}, {tp2}, {tp3}, {target}, {tstopstatus}, {status}, {result}
* {type} placeholder is set to ‘Trade Active’, ‘Trade Update’ and ‘Trade Closed’
💎 TABLE DISPLAY
🔸 ‘Trade Table’ (enable|disable trade table)
🔸 ‘Position’ (by default set to bottom right with option bottom, middle and top with left, center and right)
🔸 ‘Size’ (by default set to normal, option tiny, small, normal, large, huge and auto)
🔸 ‘Full Table’ (by default enabled, disabled show small table without some info*)
* check picture for reference
🔸 ‘Presentation’ (by default disabled, hide all info related to PnL in trade currency)
• Useful if trade shared for presentation, hidden trade fiat|currency info)
🔸 ‘Header’ (color for trade table first row)
🔸 ‘Stats’ (color for trade table statistics row)
🔸 ‘Text’ (color for trade table text)
🔸 ‘Error’ (color for all errors if is made when trade is setup)
• Color for errors is for trade table and trade labels
🔸 ‘Fiat Price’ (by default enabled, show info for second fiat*
* if trade is in crypto and ‘quoted’ currency is not stable coin, like ETHBTC, or ‘Account Type’ is set to different currency
🔸 ‘Live Fiat Price’ (if ‘quoted’ currency enabled will show live exchange conversion)
🔸 ‘All Errors’ (enabled by default, show all error if trade setup is wrong)
• When error shows on trade, disabled this to see what|where is error
• Check below for more details
🔸 ‘Tool Tip (chart)’ (enabled show all tooltip on chart)
• Check below for more details
• When you are familiar with indicator, disable popup tooltip
💎 TOOLTIP
All possible tooltips have been added for easier understanding, especially for traders who are just learning how to place a trade. (when you perfect this indicator, you can turn off the tooltip in settings, and you can also normally use the lite version of this indicator, which does not contain all these futures)
🔸 ' Settings Tooltips’
🔸 ‘Chart Tooltips’
🔸 ‘Table Tooltips’
🔴 ERRORS
When you setup trade, not only a novice in trading, but also experienced traders can make a mistake and for this reason all possible errors are included in the indicator which will be shown on the chart by changing the color of the labels as well as on the trade table and in most of the cases and error text.
If the tooltip is enabled in the settings, you can see the reason for the error as well as the solution.
Here are some examples of possible errors.
Stay safe
PLAN YOUR TRADE AND TRADE YOUR PLAN
[ChasinAlts] All-Timers [MO]*** PLEASE NOTE: THIS SCRIPT WILL MAKE TV's SERVERS FLEX IT'S MUSCLES SO IT WILL SLOW DOWN OTHER PROCESSES WITHIN TV (HIDE THEM IF NECESSARY TO REGAIN THE SPEED/FUNCTION...OR DELETE THEM...WHAT DO I CARE???) ESP IF YOU HAVE 3-4 ITERATIONS AS I DO TO SHOW THE WHOLE KUCOIN MARGIN MARKET ***
G'day Tradeurs, Hope everyone is having a FAN-FRIGGIN-TASTIC DAY!!! Right now (November 2nd, 2022) is a GREAT time to look for coins that are near their ALL-Time Low
due to the incoming bull market rearing its head around the corner (I'd wait for ONE MORE big dump to be safe though). And how GREAT would it be to even have
$50 of a coin with 10X leverage (I wouldn't suggest this to others though) at the near bottom said market? That is the reason for me publishing this.
This is a quick little scanner script thats part of my "Market Overview" series. Nothing monumental or advanced regarding the ATH/ATL calculations.
Perhaps one thing slightly different here than others is both the % from ATH and % from ATL is calculated and the result is the % that the price is between it's ATH/ATL.
So, it will show the All Time High/All Time Low BUT ONLY to the extent that the TF will allow. Ie. For the Free Planned Users, they can only get data as far back as
5,000 bars would provide. Thus, the ATH/ATL will not show the ACTUAL ATH/ATL but the highest high/lowest low within the last 5,000 bars. So if you want to get more
granular then I suggest you going with a Lower TF but if you want to see the ACTUAL ATH/ATL then the Daily TF or higher is what you're looking for. Make sure to note
that when a coin's plot is staying even with the 0 or 100 line(0 being the ATL within the TF and vise versa) that means the coin is pushing the ATH/ATL further than it
previously was, Also, as with many of my other scripts, I've included a coin filter that will either allow or disallow the plot to be printed depending on if the
"Printed Bar Count" is selected and if it's % is above the threshold (set by the user). This filter will pretty much be useless on the higher TF so don't expect a change
in the data output if you're using a HTF and have that filter selected for use. Elaboration on the inner-workings of MOST inputs can be found in the tooltips provided
along side it and viewed within the settings menu by hovering your curser over the little circled "i" next to the appropriate setting (or near it if the tooltips are
referencing each other or other inputs around itself). May the force be with your trades (in my best Darth Vader voice). Toodles. -ChasinAlts
[TTI] Fundamentals TableHISTORY AND CREDITS –––––––––––––––––––––––––––––––––––––––––––––––––––––––
I trade using TECHNICAL(70%) and FUNDAMENTAL(30%) Analysis. The table is inspired from my friend TED from BOOM traders who understands fundamentals very deeply. The structure and measures are inspired from the work of William O'Neil and Mark Minervini - recommending all their books.
WHAT IT DOES ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
The table is there to show the most important fundamentals we use for trading.
The indicator can be customised as to the position of the table and its coloring.
Measures:
Revenue
EPS
Net Profit Margin
IPO
Inventories
Receivable
All headers have tooltip to give idea how to use the indicator.
HOW TO USE IT –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Use the 3 dot system to determine if all things fall in place.
🟢 🟢 🟢 - this is the highest rating for a measure.
First dot = Increase from previous period
Second dot = Increase from 2 periods before
Third dot = Growth is accelerating.
EPS>20% = EPS have grown over 20% in last period
TDSG = Triple Digit Sales Growth
Code 33 = Mark Minervini rule
B/O EPS = Year with breakout of EPS
2Q AVG = 2 Quarters with growth over 20%
INV vs SAL = green means sales grow faster than inventories
REC vs SAL = green means sales grow faster than receivables
EST vs SAL = green means that estimates are higher than last period
ATR SL + Position Size Calculator [DoctaBot]Props to @Veryfid for his original script 'ATR Stop Loss Finder'.
The concept is simple. We use the average true range to determine an appropriate stop loss distance based on recent volatility. The original script calculated the stop loss offset from the current candle's high or low. Here, I've added the option to offset stop loss from the recent local low or local high (a better way in my opinion).
I have also added a feature to automatically calculate position size by either dollar amount or as a percent of your account size to suit your risk profile (percent of account at risk per trade). This calculator supports use of leverage to calculate the amount of margin required to open desired position size.
TL Data PanelIntroducing the TraderLion Data Panel
Features
1. Plot Quarterly EPS & Sales in a table. Disclaimer | TradingView data for EPS & Sales can be highly inaccurate in some cases.
2. U/D Ratio - Calculates the Up/Down Volume Ratio on a 50 Day Average or 20 Day Average. A number above 1.5 will show in green.
3. DCR - Calculates the Daily Closing Range for the stock. It's green when the DCR is greater than your benchmark (set in indicator settings) and greater than 50%.
4. WCR - Calculates the Weekly Closing Range for the stock. It's green when the DCR is greater than your benchmark (set in indicator settings) and greater than 50%.
5. Extended - Calculates if the stock is extended vs the 10DMA and 10WMA. The output will be Yes or No.
6. RSNHBP Count - Counts the number of RSNHBP in the past 30 sessions. Higher the count the better the odds of a stock performing well in the markets.
7. HV Stats - This shows if a stock meets the HVE/HV1/HVIPO criteria. HVE - Highest Volume Ever. HV1 - Highest Volume in One Year. HVIPO - Highest Volume Since IPO.
Customizations
Up Down Volume Length - Toggle between 50 Day or 20 Day.
Average $ Volume Length - Toggle between 50 Day or 20 Day.
Closing Range Benchmark - Set your benchmark vs any index.
RS Benchmark - Calculate RSNHBP benchmark vs any index.
Table Size - Tweak table size on personal preference.
Table Position - Tweak table position to top right, bottom left, bottom right, or top left.
Margins vs ROE - Toggle this setting to display Margins or ROE.
Color Theme - Toggle between Light or Dark Theme.
If you have any questions, please post them in the comments below!
Elevated Leverage index System - ELiSELEVATED LEVERAGE index SYSTEM (ELiS) tries to solve the problem of adjusting meaningful leverage in futures and margin trading.
The biggest problem for traders is adjusting the leverage level manually.
Concerning about the volatilities it's very hard to set a meaningful leverage level.
ELiS includes 4 different volatility component which are:
1- nATR: Normalized Average True Range which is actually ATR/price to stabilize ATR's value differences when price changes are high on long term periods.
2- Standard Deviation
3- Kairi based nATR
4- Bollinger %B
which are scaled from 0 to 100 and takes different averages with different combinations & ratios and combines them as an index.
This index calculates an average volatility to set the true leverage level when trading futures especially in Crypto and FX markets.
There are 5 risk levels of "GEARS" like on automobiles to set the max leverage for risk management.
Gear 1 - CONSERVATIVE: max leverage level can be 20 for swing traders and beginners
Gear 2 - STANDARD: max leverage level can be 25 (default) for day traders
Gear 3 - AVERAGE: max leverage level can be 33 for day traders
Gear 4 - RISKY: max leverage level can be 50 for scalpers
Gear 5 - AGRESSIVE: max leverage level can be 100 for advanced scalpers
default length for ATR, Standard Deviation and %B are all 50
Simply:
When markets aren't volatile: ELiS indicateshigher leverage values to maximize profits.
When markets are volatile enough: ELiS indicates lower values to reduce risk level.
hope you all enjoy ELiS on profitable trades.
Alferow_pnl_up_shortThis script allows you to determine the leverage required to enter one position based on the set entry price, the price of the expected take profit, stop loss and risk per transaction. It also allows you to schedule this transaction for 5 possible transactions, with different shoulders and a martingale coefficient for each subsequent gain at the same risk, allowing you to qualitatively improve the pnl of the transaction with price fluctuations after entering the transaction. The script is designed for short positions.
Alferow_pnl_up_longThis script allows you to determine the leverage required to enter one position based on the set entry price, the price of the expected take profit, stop loss and risk per transaction. It also allows you to schedule this transaction for 5 possible transactions, with different shoulders and a martingale coefficient for each subsequent gain at the same risk, allowing you to qualitatively improve the pnl of the transaction with price fluctuations after entering the transaction. The script is designed for long positions.
Margin Buying Pressure Zones Longs & ShortsShows the Margin Pressure Zones for longs and shorts Longs & Shorts based on 2 Base prices to be configured by you.
For definition of "Margin Pressure Zones" see: www.investopedia.com
How to use Leverage and Margin in PineScriptEn route to being absolutely the best and most complete trading platform out there, TradingView has just closed 2 gaps in their PineScript language.
It is now possible to create and backtest a strategy for trading with leverage.
Backtester now produces Margin Calls - so recognizes mid-trade drawdown and if it is too big for the broker to maintain your trade, some part of if will be instantly closed.
New additions were announced in official blogpost , but it lacked code examples, so I have decided to publish this script. Having said that - this is purely educational stuff.
█ LEVERAGE
Let's start with the Leverage. I will discuss this assuming we are always entering trades with some percentage of our equity balance (default_qty_type = strategy.percent_of_equity), not fixed order quantity.
If you want to trade with 1:1 leverage (so no leverage) and enter a trade with all money in your trading account, then first line of your strategy script must include this parameter:
default_qty_value = 100 // which stands for 100%
Now, if you want to trade with 30:1 leverage, you need to multipy the quantity by 30x, so you'd get 30 x 100 = 3000:
default_qty_value = 3000 // which stands for 3000%
And you can play around with this value as you wish, so if you want to enter each trade with 10% equity on 15:1 leverage you'd get default_qty_value = 150.
That's easy. Of course you can modify this quantity value not only in the script, but also afterwards in Script Settings popup, "Properties" tab.
█ MARGIN
Second newly released feature is Margin calculation together with Margin Calls. If the market goes against your trades and your trading account cannot maintain mid-trade drawdown - those trades will be closed in full or partly. Also, if your trading account cannot afford to open more trades (pyramiding those trades), Margin mechanism will prevent them from being entered.
I will not go into details about how Margin calculation works, it was all explainged in above mentioned blogpost and documentation .
All you need to do is to add two parameters to the opening line of your script:
margin_long = 1./30*50, margin_short = 1./30*50
Whereas "30" is a leverage scale as in 30:1, and "50" stands for 50% of Margin required by your broker. Personally the Required Margin number I've met most often is 50%, so I'm using value 50 here, but there are literally 1000+ brokers in this world and this is individual decision by each of them, so you'd better ask yourself.
--------------------
Please note, that if you ever encounter a strategy which triggers Margin Call at least once, then it is probably a very bad strategy. Margin Call is a last resort, last security measure - all the risks should be calculated by the strategy algorithm before it is ever hit. So if you see a Margin Call being triggred, then something is wrong with risk management of the strategy. Therefore - don't use it!
Trade Calculator by RealmixA clean Trade Calculator for any Asset, which calculates everything you need to know.
This script is a modified version of the Position Calculator by Mysteriown. Link:
I try to make it a bit better for Futures Trading.
Target Price for KuCoin FuturesWhen trading on KuCoin, it can be difficult to determine what you're exit price should be.
This script solves this issue by giving you an exit price based on a given entry price, a base margin, and a target profit %.
USE CASES:
No Entry Price:
If you have no position in KuCoin, then this use case could be more helpful. With no entry price inputted, two lines will be drawn above and below the current closing price.
The blue line represents your exit price for if you were to enter into a long at the current close.
The orange line represents your exit price if you were to enter into a short at the current close.
With Entry Price:
If you're already in a position in KuCoin, then this case might be more helpful.
The green line represents your exit price for a long from your entry price
The red line represents your exit price for a short from your entry price
The yellow line represents your entry price itself.
BitcoinNinjas NINJASIGNALS V4 (Script)BitcoinNinjas NINJASIGNALS V4 (Script)
(for Cryptocurrencies, Forex, GunBot, ProfitTrailer, Autoview, CryptoHopper, manual or automated trading, and more)
This is version 4 of our Ninja Signals trading script, with accompanying backtesting strategy.
BitcoinNinjas NINJASIGNALS V4 (Strategy)
•Allows users to easily set automated buy/long and sell/short alerts on TradingView for use with automatic and manual trading of cryptocurrencies, Forex securities, and more (alerts are compatible with automatic trading software such as GunBot, ProfitTrailer, Autoview, CryptoHopper, and more).
•Synthesizes many powerful indicators [e.g., Relative Strength Index (RSI), Stochastic RSI, Money Flow Index (MFI), Moving Average Convergence Divergence (MACD), etc.) into one powerful script to generate very precise buy and sell signals in virtually all market conditions.
•Features user-defined adjustable calibration settings, allowing traders to customize the script to fit any currency / security on any exchange available through TradingView.com, simply by adjusting settings.
•Buy/Long arrows, Sell/Short arrows, & EMA trendline can be customized or hidden, if desired.
•Complete with backtesting strategy version of script which allows users to test various trading strategies based on the alerts the script generates (see information and screenshots below).
•Backtesting strategy features a user-defined adjustable date range, so traders can estimate performance of the script over specific periods of time, such as the last week, month, or year.
•Script and backtesting strategy feature many user-adjustable settings including stop loss and take profit alerts, an ‘only sell for profit’ option (Gunbot-specific), many different buy and sell filters, and more. Simply adjust the script settings and the backtesting results will automatically refresh.
•Backtesting strategy allows for pyramid buying to test various average down / dollar cost average trading strategies. Simply adjust the number of pyramid buys and the quantity of each buy.
•Fully compatible with margin and futures trading for any currency / security on TradingView.com.
DISCLAIMER: By using our BitcoinNinjas ‘Ninja Signals’ planning script, you agree to the BitcoinNinjas 'Terms of Use'. No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. BitcoinNinjas is not responsible for any losses you may incur. Please invest wisely.
BitcoinNinjas NINJASIGNALS V4 (Strategy)BitcoinNinjas NINJASIGNALS V4 (Strategy)
(for Cryptocurrencies, Forex, GunBot, ProfitTrailer, Autoview, CryptoHopper, manual or automated trading, and more)
This is version 4 of our Ninja Signals trading script, with accompanying backtesting strategy.
BitcoinNinjas NINJASIGNALS V4 (Script)
•Allows users to easily set automated buy/long and sell/short alerts on TradingView for use with automatic and manual trading of cryptocurrencies, Forex securities, and more (alerts are compatible with automatic trading software such as GunBot, ProfitTrailer, Autoview, CryptoHopper, and more).
•Synthesizes many powerful indicators [e.g., Relative Strength Index (RSI), Stochastic RSI, Money Flow Index (MFI), Moving Average Convergence Divergence (MACD), etc.) into one powerful script to generate very precise buy and sell signals in virtually all market conditions.
•Features user-defined adjustable calibration settings, allowing traders to customize the script to fit any currency / security on any exchange available through TradingView.com, simply by adjusting settings.
•Buy/Long arrows, Sell/Short arrows, & EMA trendline can be customized or hidden, if desired.
•Complete with backtesting strategy version of script which allows users to test various trading strategies based on the alerts the script generates (see information and screenshots below).
•Backtesting strategy features a user-defined adjustable date range, so traders can estimate performance of the script over specific periods of time, such as the last week, month, or year.
•Script and backtesting strategy feature many user-adjustable settings including stop loss and take profit alerts, an ‘only sell for profit’ option (Gunbot-specific), many different buy and sell filters, and more. Simply adjust the script settings and the backtesting results will automatically refresh.
•Backtesting strategy allows for pyramid buying to test various average down / dollar cost average trading strategies. Simply adjust the number of pyramid buys and the quantity of each buy.
•Fully compatible with margin and futures trading for any currency / security on TradingView.com.
DISCLAIMER: By using our BitcoinNinjas ‘Ninja Signals’ planning script, you agree to the BitcoinNinjas 'Terms of Use'. No sharing, copying, reselling, modifying, or any other forms of use are authorized for our documents, script / strategy, and the information published with them. This informational planning script / strategy is strictly for individual use and educational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your personal judgement. BitcoinNinjas is not responsible for any losses you may incur. Please invest wisely.
Cross Pair [NeoButane]Creates candlesticks of a cross pair of any symbol you want. Ideally both pairs would be denominated in the same currency.
The candlesticks are plotted, a close value is available to use for applying indicators on, and a label shows what is being used.
Options to configure are choosing the symbols, displaying the ticker without the exchange name, and removing wicks. If the exchange prefix is 'BATS', 'FRED', or 'TVC', it is automatically removed.
Hullk Autobot
HULLK AUTOBOT
• Long entry positions
• Profit targets
• Stop loss targets
Description
The Fast Signal Line is an extremely fast and smooth moving average indicator, designed to eliminate
the lag typically associated with traditional moving average indicators.
When the price is trending upward the Fast Signal Line is colored light grey then turns orange when
price is trending downward.
How to Trade
It is good practice to assess multiple timeframes to ensure you are mindful of the larger picture. The
15 minute and 4-hour charts are worthy of note.
In addition to displaying the current macro trend, the Fast Signal Line can also be used for judging
entries and exits from trades.
Aggressive traders may choose to trade based on the first touch of the Fast Signal Line whereas
conservative traders may wait for the signal line to be broken and established as a line of support or
resistance before taking action.
Indicator Configuration
The Fast Signal Line’s display and colors can be changed by modifying the ‘Fast Signal’ options in
the indicator’s style settings;
Volume Line
Description
The Volume Line uses short-term historic volume data to determine the balance between demand
and supply.
When volume is supporting price the Volume Line is colored yellow then turns red when the volume is
rejecting the price.
How to Trade
While the Volume Line can indicate support and resistance levels, it is best used to confirm bias
when using the Fast Trend Line indicator to enter or exit trades and can also be used by traders for
stop-loss or take profit entries.
Indicator Configuration
The Volume Line’s display and colors can be changed by modifying the ‘Volume’ options in the
indicator’s style settings;
Trend Line
Description
The Trend Line is a Weighted Moving Average indicator based on a fixed period and is used to
identify the current trend of the market.
When supporting the price, the Trend Line is colored green then turns red when rejecting the price.
How to Trade
Timeframes of 4H and above are best used to determine the current trends, while shorter timeframes
can be used for entering and exiting trades when the trendline is turning in the relevant direction.
Indicator Configuration
The Trend Line’s display and colors can be changed by modifying the ‘Volume’ options in the
indicator’s style settings;
Whales Volume Line
Description
The Whales Volume Line uses long-term historic volume data to determine the balance between
demand and supply dictated by large/institutional traders in the market.
When volume is supporting price the Volume Line is colored yellow then turns red when the volume is
rejecting the price.
How to Trade
While the Whale Volume Line can indicate support and resistance levels, it is best used to confirm
bias when using the Fast Trend Line indicator to enter or exit trades and can also be used by traders
for stop loss or take profit entries.
Indicator Configuration
The Whales Volume Line’s display and colors can be changed by modifying the ‘Whales Volume’
options in the indicator’s style settings;
Trendline Direction Line
Description
The Direction Line is a Weighted Moving Average indicator based on a longer period than the Trend
Line and is used to identify the current direction of the market.
The Direction Line indicator is colored purple when the market direction is up trending and red when
downtrend.
How to Trade
Timeframes of 4H and above are best used to determine current trend, while shorter timeframes
can be used for entering and exiting trades when the trendline is turning in the relevant direction.
Indicator Configuration
The Trendline Direction’s display and colors can be changed by modifying the ‘Trendline Direction’
options in the indicator’s style settings;
Channel Line
Description
The Channel Line is a Least Squares Moving Average indicator based on a fixed period and is used as
a crossover signal to identify bullish or bearish trends ahead of traditional simple or exponential
moving averages.
The Channel Line indicator is colored cyan when the market direction is up trending and red when
downtrend.
How to Trade
When the Channel Line changes to an uptrend along with a recovery in price, traders can use this as a
signal to enter a long position. If the signal changes to a downtrend along with a fall in price, traders
can use this to enter a short position.
Indicator Configuration
The Channel Line’s display and colors can be changed by modifying the ‘Channel’ options in the
indicator’s style settings;
Dip & Pop Signals
Description
Dip and Pop signals occur when the price is likely to make a counter-trend movement before continuing
its direction.
In a bullish trend, a Dip signal suggests that price will move down to test support before continuing,
whereas a Pop signal suggests that price will move up. In a bearish trend, a Pop signal suggests that
price will move up to test resistance before continuing, whereas a Dip signal would suggest price is
likely to continue the trend.
How to Trade
Dip and Pop signals should be used as notification for preparation rather than a call to action as the price
can move unpredictably during volatility.
Indicator Configuration
The Dip & Pop’s display and colors can be changed by modifying the ‘PoP’ & ‘DIP’ options in the
indicator’s style settings;
Entry & Exit Signals
Description
Entry and Exit Signals are indications of when to open and close trades but should be used in
conjunction with other indicators to interpret their meaning.
How to Trade
While Entry and Exit signals can be interpreted as simple long and short entries, their meaning does
change based on trend circumstance. An Entry signal is typically printed price is starting to see a
positive reaction after a drop.
When the Fast Signal, Trend, and Trend Direction lines are indicating an upward trend an Entry signal
signifies a good place to enter a long or exit a short position. However, if the lines are not suggesting
an upward trend then a long signal indicates that any long order should be exited as any new long
orders in this scenario are risky as you would be opening a position at resistance.
Likewise, when indicator lines are indicating a downward trend and an Exit signal is received this
signifies a good place to enter a short or exit a long position. However, if the signal is against the
trendlines then this is a riskier short into support.
Indicator Configuration
The Entry & Exit’s display and colors can be changed by modifying the ‘Entry’ & ‘Exit’ options in the
indicator’s style settings;
If you have any questions or are looking for access please send me a private message.
Thx for your time and support
DMT 369 DRAGRONFLY StudyDragonfly Study version plus statistics panel
Successful traders trade with a fixed plan and without emotion, but this a lot harder than many new traders think. Many never master this skill and suffer continual drawdowns on their accounts as they overtrade high leverage positions in volatile markets.
ĐΜŦ Autobot resolves this issue by taking the human element out of the equation, allowing full automation of trades using TradingView alerts to trigger your favourite trading bot, such as Alertatron or 3Commas.
Being a Trend Reversal Indicator based on Volatility & Average True Range , ĐΜŦ Autobot is designed to identify spots in the market that offer suitable scalp and swing trade opportunities.
Due to popular demand we have expanded our ĐΜŦ Autobot product line to include the new ĐΜŦ Autobot Dragonfly 3-6-9 Edition which combines DMT with 3-6-9 Vortex mathematics, our Titan indicator and a multi-ladder scalping strategy to ensure you maintain a preferable average entry when price action moves against your position.
Indicator View
It its default state the DMT Autobot Dragonfly indicator displays key signal information, such as:
• Support & resistance range lines
• Titan Body Small & Large Time Frame lines
• Long & Short entry positions
• Long & Short position ladders
• Profit targets
Dragonfly displays a range between resistance (upper line) and support (lower line) on the chart.
Once the price is granted support in the range the lower line will turn green. As price action develops it will make repeated attempts to test support. If support holds price will attempt to test the resistance line (red).
When resistance is broken and the price is above the upper line, the line will turn blue confirming the bullish momentum and provide a potential buy opportunity.
Price action will make attempts to test the upper line as support and will keep rising while support is granted.
Once support is lost the upper line will become red once more. As price action develops it will make repeated attempts to test resistance. If resistance holds, the price will attempt to test the support line (green).
When support is broken and the price goes below the lower line, the line will turn red confirming the bearish momentum and provide a potential selling opportunity.
Price action will make attempts to test the lower line as resistance and will keep dropping while resistance is granted.
Titan Body
The Titan Body Small & Large time frame options in the indicator add additional trendlines to the chart to provide further clarity and confirmation to the Support & Resistance range indication.
Once price is granted support by the Small Time Frame trend line the line will turn green. As price action develops it will make repeated attempts to test the Small Time Frame support. Once the price is below the Small Time Frame trend line , the line will turn red and can act as resistance in a trend reversal.
When price is granted support by the Large Time Frame trend line the line will turn cyan. As price action develops it will make repeated attempts to test the Large Time Frame support. Once the price is below the Large Time Frame trend line , the line will turn orange and can act as resistance in a trend reversal.
The Titan Body enabled and customized in the indicator’s style settings,
Alert indicators
DMT Autobot Dragonfly Edition generates signals that can be used to scalp trade a volatile asset.
Signals are enabled and customized in the indicator’s input settings Additional options can be found in the options, but it is recommended that these are left at the default, as shown below. The indicator generates many
Entry and Profit levels can be disabled or customized in the indicator’s style settings,
Tradingview Alerts
Using Tradingview alerts, DMT Autobot Dragonfly signals can be used to trigger a trading bot.
To trigger a long or short position, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the long or short option.
It is recommended that long or short positions are configured to trigger Once Per Bar Close
Ladders can also be triggered using alerts. To trigger a ladder order, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the appropriate Long or Short ADD option that is to be triggered by the relevant values defined in the indicator’s configuration.
It is recommended that ladder orders are configured to trigger Once Per Bar,
To trigger a take profit order, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the Long or Short TP option that is to be triggered by the relevant values defined in the indicator’s configuration.
Take profit orders can be configured as Once Per Bar Close or Once Per Minute.
If you wish to trigger a take profit signal immediately when the indicator’s defined take profit value is achieved, then use the Once Per Bar option.
Selecting Once Per Bar Close to generate a take profit signal is a gamble as the candle may close far away from the defined profit target – positive or negative.
While stops can be used, they are not applicable to the recommended ladder strategy.
Ladder Strategy
The DMT Autobot Dragonfly indicator always turns an underwater position into a win by utilizing a ladder strategy.
By using the recommended defaults, the indicator will trigger ladder orders at 3%, 6% & 9% using increasing order sizes,
Order sizes increase exponentially to ensure a good average price is maintained. If you are not using DMT Autobot Dragonfly signals to trigger ladder or take profit orders, please ensure your trading bot is configured to recalculate the new ladder entry and profit target based on the new average position entry price as each ladder is filled.
If you are using DMT Autobot Dragonfly on a leveraged asset, please ensure the leverage position is configured suitably so that your position is not liquidated if the price rapidly moves against you.
If u are looking for more information or access to the script please private msg me in trading view chat thx for support
DMT 369 DRAGRONFLY STRATSuccessful traders trade with a fixed plan and without emotion, but this a lot harder than many new traders think. Many never master this skill and suffer continual drawdowns on their accounts as they overtrade high leverage positions in volatile markets.
ĐΜŦ Autobot resolves this issue by taking the human element out of the equation, allowing full automation of trades using TradingView alerts to trigger your favourite trading bot, such as Alertatron or 3Commas.
Being a Trend Reversal Indicator based on Volatility & Average True Range, ĐΜŦ Autobot is designed to identify spots in the market that offer suitable scalp and swing trade opportunities.
Due to popular demand we have expanded our ĐΜŦ Autobot product line to include the new ĐΜŦ Autobot Dragonfly 3-6-9 Edition which combines DMT with 3-6-9 Vortex mathematics, our Titan indicator and a multi-ladder scalping strategy to ensure you maintain a preferable average entry when price action moves against your position.
Indicator View
It its default state the DMT Autobot Dragonfly indicator displays key signal information, such as:
• Support & resistance range lines
• Titan Body Small & Large Time Frame lines
• Long & Short entry positions
• Long & Short position ladders
• Profit targets
Dragonfly displays a range between resistance (upper line) and support (lower line) on the chart.
Once the price is granted support in the range the lower line will turn green. As price action develops it will make repeated attempts to test support. If support holds price will attempt to test the resistance line (red).
When resistance is broken and the price is above the upper line, the line will turn blue confirming the bullish momentum and provide a potential buy opportunity.
Price action will make attempts to test the upper line as support and will keep rising while support is granted.
Once support is lost the upper line will become red once more. As price action develops it will make repeated attempts to test resistance. If resistance holds, the price will attempt to test the support line (green).
When support is broken and the price goes below the lower line, the line will turn red confirming the bearish momentum and provide a potential selling opportunity.
Price action will make attempts to test the lower line as resistance and will keep dropping while resistance is granted.
Titan Body
The Titan Body Small & Large time frame options in the indicator add additional trendlines to the chart to provide further clarity and confirmation to the Support & Resistance range indication.
Once price is granted support by the Small Time Frame trend line the line will turn green. As price action develops it will make repeated attempts to test the Small Time Frame support. Once the price is below the Small Time Frame trend line, the line will turn red and can act as resistance in a trend reversal.
When price is granted support by the Large Time Frame trend line the line will turn cyan. As price action develops it will make repeated attempts to test the Large Time Frame support. Once the price is below the Large Time Frame trend line, the line will turn orange and can act as resistance in a trend reversal.
The Titan Body enabled and customized in the indicator’s style settings,
Alert indicators
DMT Autobot Dragonfly Edition generates signals that can be used to scalp trade a volatile asset.
Signals are enabled and customized in the indicator’s input settings Additional options can be found in the options, but it is recommended that these are left at the default, as shown below. The indicator generates many
Entry and Profit levels can be disabled or customized in the indicator’s style settings,
Tradingview Alerts
Using Tradingview alerts, DMT Autobot Dragonfly signals can be used to trigger a trading bot.
To trigger a long or short position, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the long or short option.
It is recommended that long or short positions are configured to trigger Once Per Bar Close
Ladders can also be triggered using alerts. To trigger a ladder order, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the appropriate Long or Short ADD option that is to be triggered by the relevant values defined in the indicator’s configuration.
It is recommended that ladder orders are configured to trigger Once Per Bar,
To trigger a take profit order, set the Tradingview Alert Condition to DMT 369 Dragonfly and select the Long or Short TP option that is to be triggered by the relevant values defined in the indicator’s configuration.
Take profit orders can be configured as Once Per Bar Close or Once Per Minute.
If you wish to trigger a take profit signal immediately when the indicator’s defined take profit value is achieved, then use the Once Per Bar option.
Selecting Once Per Bar Close to generate a take profit signal is a gamble as the candle may close far away from the defined profit target – positive or negative.
While stops can be used, they are not applicable to the recommended ladder strategy.
Ladder Strategy
The DMT Autobot Dragonfly indicator always turns an underwater position into a win by utilizing a ladder strategy.
By using the recommended defaults, the indicator will trigger ladder orders at 3%, 6% & 9% using increasing order sizes,
Order sizes increase exponentially to ensure a good average price is maintained. If you are not using DMT Autobot Dragonfly signals to trigger ladder or take profit orders, please ensure your trading bot is configured to recalculate the new ladder entry and profit target based on the new average position entry price as each ladder is filled.
If you are using DMT Autobot Dragonfly on a leveraged asset, please ensure the leverage position is configured suitably so that your position is not liquidated if the price rapidly moves against you.
If u are looking for more information or access to the script please private msg me in trading view chat thx for support
Companion::DivergentCompanion::Divergent is a combined indicators strategy optimized for Bitcoin Markets and tested on Bitfinex.
Mainly, it is an Ichimoku based strategy.
Used indicators:
- Ichimoku (displayed on chart): trendline analysis;
- Double Hull MA (displayed on chart): trendline analysis;
- MACD (not displayed): confirmative/momentum detection;
- CCI (not displayed): confirmative/momentum detection;
- ATR: used toghether with Ichimoku to determine Stop Loss/Take Profit levels;
- VWMA: For implementing trailing stop orders based on volumes.
What the script does:
- determines trendlines combining mulitple indicators;
- automaticlally calculates Take profit and Stop Loss levels;
- permits automation generating Autoview signals;
- supports for margin trading. Spot trading will be added in the future.
It can be used on 1D or 1H timeframes but it can be adapted for other time frames tweaking the parameters. I used it a lot on Bitfinex on 1H timeframes. Please check parameters: if you will use the strategy on D or higher timeframes, the "Legacy Chikou analysis" option should be checked.
BACKTESTING
Backtest is not leveraged. Defaults are set as follow:
Capital: 10000
Percent of equity used for trades: 10%
Commission: 0.18% this is Bitfinex commission on orders
Change them accordingly on how you trade to get a more realistic backtest results.
Margin Zones 5 (MZE5)Extended version of MZE script.
This indicator can be set up for 5 different tickers, so you can fill up your favourite tikers as fixed and switch between them without changing settings options of Tick Count, Margin and POC
Using option "Show default Zones if not Matched" - you can set up default options,
switching off "Show default Zones if not Matched" - will hide indicator for not matched tikers
By default option is Off
RUS:
Расширенная версия индикатора MZE, которая позволяет сделать настройки одновременно для 5 разных тикеров, соответственно переключаясь между отслеживаемыми тикерами не нужно каждый раз менять настройки. Достаточно один раз настроить базовые настройки к любимым тикерам и только корректировать значение Маржи и Обеспечения.
Используя Опцию "Show default Zones if not Matched" ("Показывать, когда нет совпадения") - индикатор будет отображаться для всех тикеров с настройками по умолчанию.
И наоборот (по умолчанию): при снятой галочке - индикатор будет отображаться только на тех тикерах, к которым привязан, и не будет мешать на остальных
Margin Zones (MZE)Upgraded indicator Margin Zones with various number of options:
- Number of Days Ago to limit days when Zones are visible
- Price, margin and ticks can be set with decimal point
- Zones can be switched off separately
- all line are editable