TCP | Money Management indicator | Crypto Version📌 TCP | Money Management Indicator | Crypto Version
A robust, multi-target risk and capital management indicator tailored for crypto traders. Whether you're trading spot, perpetual futures, or leverage tokens, this tool empowers you with precise control over risk, reward, and position sizing—directly on your chart. Eliminate guesswork and trade with confidence.
🔰 Introduction: Master Your Capital, Master Your Trades
Poor money management is the number one reason traders lose their accounts, even with solid strategies. The TCP Money Management Indicator, built by Trade City Pro (TCP), solves this problem by providing a structured, rule-based approach to capital allocation.
Want to dive deeper into the concept of money management? Check out our comprehensive tutorial on TradingView, " TradeCityPro Academy: Money Management ", to understand the principles that power this indicator and transform your trading mindset.
This indicator equips you to:
• Calculate optimal position sizes based on your capital, risk percentage, and leverage
• Set up to 5 customizable take-profit targets with partial close percentages
• Access real-time metrics like Risk-to-Reward (R/R), USD profit, and margin usage
• Trade with discipline, avoiding emotional or inconsistent decisions
💸 Money Management Formula
The indicator uses a professional capital allocation model:
Position Size = (Capital × Risk %) ÷ (Stop Loss % × Leverage)
From this, it calculates:
• Total risk amount in USD
• Optimal position size for your trade
• Margin required for each take-profit target
• Adjusted R/R for each target, accounting for partial position closures
🛠 How to Use
Enter Trade Parameters: Input your capital, risk %, leverage, entry price, and stop-loss price.
Set Take-Profit Targets: Enable 1 to 5 take-profit levels and specify the percentage of the position to close at each.
Real-Time Calculations: The indicator automatically computes:
• R/R ratio for each target
• Profit in USD for each partial close
• Margin used per target (in % and USD)
Visualize Your Trade:
• Price levels for entry, stop-loss, and take-profits are plotted on the chart.
• A dynamic info panel on the left side displays all key metrics.
🔄 Dynamic Adjustments: As each take-profit target is hit and a portion of the position is closed, the indicator recalculates the remaining position size, expected profit, R/R, and margin for subsequent targets. This ensures accuracy and reflects real-world trade behavior.
📊 Table Overview
The left-side panel provides a clear snapshot:
• Trade Setup: Capital, entry price, stop-loss, risk amount, and position size
• Per Target: Percentage closed, R/R, profit in USD, and margin used
• Summary: Total expected profit across all targets
⚙️ Settings Panel
• Total Capital ($): Your account size for the trade
• Risk per Trade (%): The percentage of capital you’re willing to risk
• Leverage: The leverage applied to the trade
• Entry/Stop-Loss Prices: Define your trade’s risk zone
• Take-Profit Targets (1–5): Set price levels and percentage to close at each
🔍 Use Case Example
Imagine you have $1,000 capital, risking 1%, using 10x leverage:
• Entry: $100 | Stop-Loss: $95
• TP1: $110 (close 50%) | TP2: $115 (close 50%)
The indicator calculates the exact position size, profit at each target, and margin allocation in real time, with all metrics displayed on the chart.
✅ Why Traders Love It
• Precision: No more manual calculations or guesswork
• Versatility: Works on all crypto pairs (BTC, ETH, altcoins, etc.)
• Flexibility: Perfect for scalping, swing trading, or futures strategies
• Universal: Compatible with all timeframes
• Transparency: Fully manual, with clear and reliable outputs
🧩 Built by Trade City Pro (TCP)
Developed by TCP, a trusted name in trading tools, used by over 150,000 traders worldwide. This indicator is coded in Pine Script v5, ensuring compatibility with TradingView’s platform.
🧾 Final Notes
• No Auto-Trading: This is a manual tool for disciplined traders
• No Repainting: All calculations are accurate and non-repainting
• Tested: Rigorously validated across major crypto pairs
• Publish-Ready: Built for seamless use on TradingView
🔗 Resources
• Money Management Tutorial: Learn the fundamentals of capital management with our detailed guide: TradeCityPro Academy: Money Management
• TradingView Profile: Explore more tools by TCP on TradingView
Penunjuk dan strategi
Spreader – Real-Time Spread Detector for ScalpingSpreader is a professional tool built for scalpers and intraday traders, designed to visually display live bid-ask spread on your chart. By showing you the true market friction in real time, it helps you avoid poor entries and reduce immediate trade losses.
EMA 8 & SMA 50 davide buncugaThe EMA, or Exponential Moving Average (Exponential Moving Average), is a technical indicator used in trading to identify upward or downward trends in securities and currencies. This tool gives more weight to more recent prices than older ones, allowing you to respond more quickly to current price movements than the simple moving average (SMA)
Psico Levels Davide BuncugaPsychological prices in the context of trading refer to marketing and neuromarketing strategies that use prices to influence consumer behavior, making a product or service perceive as advantageous or high quality. This strategy aims to push the customer to conclude a purchase thanks to the belief that he has saved or brought home a deal. In trading psychology, the perception of prices can significantly influence traders' decisions, as they always try to have the best offer and find the best value for money
ADXZigZagLibrary "ADXZigZag"
method lastPivot(this)
Returns the last Pivot of `this` ZigZag if there is at least one Pivot to return, and `na` otherwise.
Can be used as a function or method.
Namespace types: ZigZag
Parameters:
this (ZigZag) : (series ZigZag) A ZigZag object.
Returns: (Pivot) The last Pivot in the ZigZag.
update(this)
Updates `this` ZigZag object with new pivots, volume, lines, labels. NOTE: The function must be called on every bar for accurate calculations.
Can be used as a function or method.
Parameters:
this (ZigZag) : (series ZigZag) a ZigZag object.
Returns: (bool) true if a new Zig Zag line is found or the last Zig Zag line has changed.
newInstance(settings)
Instantiates a new ZigZag object with `settings`. If no settings are provided, a default ZigZag object is created.
Parameters:
settings (Settings) : (series Settings) A Settings object.
Returns: (ZigZag) A new ZigZag instance.
Settings
Provides calculation and display attributes to ZigZag objects.
Fields:
devThreshold (series float) : The minimum percentage deviation from a point before the ZigZag will change direction.
depth (series int) : The number of bars required for pivot detection.
lineColor (series color) : Line color.
extendLast (series bool) : Condition allowing a line to connect the most recent pivot with the current close.
displayReversalPrice (series bool) : Condition to display the pivot price in the pivot label.
displayCumulativeVolume (series bool) : Condition to display the cumulative volume for the pivot segment in the pivot label.
displayReversalPriceChange (series bool) : Condition to display the change in price or percent from the previous pivot in the pivot label.
differencePriceMode (series string) : Reversal change display mode. Options are "Absolute" or "Percent".
draw (series bool) : Condition to display lines and labels.
allowZigZagOnOneBar (series bool) : Condition to allow double pivots to occur ie. when a large bar makes both a pivot high and a pivot low.
Point
A coordinate containing bar, price, and time information.
Fields:
tm (series int) : A value in UNIX time.
price (series float) : A value on the Y axis (price).
barIndex (series int) : A `bar_index`.
Pivot
A level of significance used to determine directional movement or potential support and resistance.
Fields:
ln (series line) : A line object connecting the `start` and `end` Point objects.
lb (series label) : A label object to display pivot values.
isHigh (series bool) : A condition to determine if the pivot is a pivot high.
vol (series float) : Volume for the pivot segment.
start (Point) : The coordinate of the previous Point.
end (Point) : The coordinate of the current Point.
ZigZag
An object to maintain Zig Zag settings, pivots, and volume.
Fields:
settings (Settings) : Settings object to provide calculation and display attributes.
pivots (array) : An array of Pivot objects.
sumVol (series float) : The volume sum for the pivot segment.
extend (Pivot) : Pivot object used to project a line from the last pivot to the last bar.
ADXZigZagLibrary "ADXZigZag"
method lastPivot(this)
Returns the last Pivot of `this` ZigZag if there is at least one Pivot to return, and `na` otherwise.
Can be used as a function or method.
Namespace types: ZigZag
Parameters:
this (ZigZag) : (series ZigZag) A ZigZag object.
Returns: (Pivot) The last Pivot in the ZigZag.
update(this)
Updates `this` ZigZag object with new pivots, volume, lines, labels. NOTE: The function must be called on every bar for accurate calculations.
Can be used as a function or method.
Parameters:
this (ZigZag) : (series ZigZag) a ZigZag object.
Returns: (bool) true if a new Zig Zag line is found or the last Zig Zag line has changed.
newInstance(settings)
Instantiates a new ZigZag object with `settings`. If no settings are provided, a default ZigZag object is created.
Parameters:
settings (Settings) : (series Settings) A Settings object.
Returns: (ZigZag) A new ZigZag instance.
Settings
Provides calculation and display attributes to ZigZag objects.
Fields:
devThreshold (series float) : The minimum percentage deviation from a point before the ZigZag will change direction.
depth (series int) : The number of bars required for pivot detection.
lineColor (series color) : Line color.
extendLast (series bool) : Condition allowing a line to connect the most recent pivot with the current close.
displayReversalPrice (series bool) : Condition to display the pivot price in the pivot label.
displayCumulativeVolume (series bool) : Condition to display the cumulative volume for the pivot segment in the pivot label.
displayReversalPriceChange (series bool) : Condition to display the change in price or percent from the previous pivot in the pivot label.
differencePriceMode (series string) : Reversal change display mode. Options are "Absolute" or "Percent".
draw (series bool) : Condition to display lines and labels.
allowZigZagOnOneBar (series bool) : Condition to allow double pivots to occur ie. when a large bar makes both a pivot high and a pivot low.
Point
A coordinate containing bar, price, and time information.
Fields:
tm (series int) : A value in UNIX time.
price (series float) : A value on the Y axis (price).
barIndex (series int) : A `bar_index`.
Pivot
A level of significance used to determine directional movement or potential support and resistance.
Fields:
ln (series line) : A line object connecting the `start` and `end` Point objects.
lb (series label) : A label object to display pivot values.
isHigh (series bool) : A condition to determine if the pivot is a pivot high.
vol (series float) : Volume for the pivot segment.
start (Point) : The coordinate of the previous Point.
end (Point) : The coordinate of the current Point.
ZigZag
An object to maintain Zig Zag settings, pivots, and volume.
Fields:
settings (Settings) : Settings object to provide calculation and display attributes.
pivots (array) : An array of Pivot objects.
sumVol (series float) : The volume sum for the pivot segment.
extend (Pivot) : Pivot object used to project a line from the last pivot to the last bar.
SAN VWAP and Stoch RSI Crypto StrategyCreate a pine script strategy for crypto trading, using the VWAP and the stochastic RSI only on the 15min chart. Short condition only if price closes entirely above VWAP upper band #2 or upper band #3, the stochastic RSI is above 85 need and enter on the first red candle close. take profit condition is to take 100% of the profit whenever the Stoch RSI is below 20 and the blue line is crossing over the red line. Buy condition only if price closes entirely below VWAP lower band #2 or lower band #3, the stochastic RSI is below 12 and enter on the first green candle close. take profit condition is to take 100% of the profit whenever the Stoch RSI is above 80 and the blue line is crossing below the red line
ProbabilityContextLibrary "ProbabilityContext"
initContext(sessionTime, timeframe, instrumentType, timezone, maxBufferSize, useLIFO)
Parameters:
sessionTime (string)
timeframe (string)
instrumentType (string)
timezone (int)
maxBufferSize (int)
useLIFO (bool)
addCondition(ctx, name, value, patternName, priority, confidence)
Parameters:
ctx (Context)
name (string)
value (bool)
patternName (string)
priority (float)
confidence (float)
removeCondition(ctx, name, patternName)
Parameters:
ctx (Context)
name (string)
patternName (string)
clearConditions(ctx, patternName)
Parameters:
ctx (Context)
patternName (string)
isPatternValid(ctx, patternName, minConfidence)
Parameters:
ctx (Context)
patternName (string)
minConfidence (float)
Condition
Fields:
name (series string)
value (series bool)
patternName (series string)
timestamp (series int)
priority (series float)
confidence (series float)
ConditionGroup
Fields:
conditions (array)
Context
Fields:
sessionTime (series string)
timeframe (series string)
instrumentType (series string)
conditionGroups (map)
timezone (series int)
maxBufferSize (series int)
useLIFO (series bool)
SD XO level marking Custom Horizontal Linesthis is XO strategy idel for Nifty take mid point from PDH & PDL and keet distance of line at 63 points
MathLibrary "Math"
clamp(value, minVal, maxVal)
Parameters:
value (float)
minVal (float)
maxVal (float)
5m Gold Strategy - Session Break + Previous Day High/LowHere is your complete Pine Script v5 code for TradingView that:
Implements your 5-minute Gold breakout strategy.
Uses previous day high/low levels.
Confirms entry based on 15-minute SMA trend (SMA 9 > SMA 21).
Marks session time.
Filters news time (pause trading 15 minutes before/after major red news from ForexFactory).
DS Gurukul RoundupRoundup (Support & Resistance Indicator) For Bank Nifty
By DS Gurukul
To be used only for Bank Nifty.
Indicator Overview
The Round Figure Indicator identifies key psychological support and resistance levels based on round numbers. These levels often act as strong turning points in price action due to trader psychology and institutional order placement.
How It Works
Key Levels:
Mid Band (Black Solid Line): Major round number
Upper Band (Green Solid Line): Mid Band (resistance)
Lower Band (Red Solid Line): Mid Band (support)
Sub-Bands (Dotted Lines): ±100 levels for tighter zones
Alerts: Triggers when price touches any band, signaling potential reversals or breakouts.
Trading Strategy
✅ Bounce Trades:
Buy near Lower Band or Mid Sub-Lower with bullish confirmation (e.g., hammer candle).
Sell near Upper Band or Mid Sub-Upper with bearish rejection (e.g., shooting star).
✅ Breakout Trades:
Enter long on a close above Upper Band with volume.
Enter short on a close below Lower Band with momentum.
⚠️ Risk Management:
Place stops just beyond the opposite sub-band.
Avoid trading if price is stuck between mid/sub-bands (choppy market).
Why It Works
Round numbers attract limit orders (support/resistance).
Institutions use these levels for stop placements and profit targets.
Works across all timeframes (scalping to swing trading).
🔔 Tip: Combine with RSI/MACD for higher-probability trades!
Bar ColorFX Gold is multi market position sizing tool designed to help you manage risk quickly and accurately. with the script simple enter your account capital the percentage of risk you wish to take and stop in ticks depending on the market lets open first after we cools see how the price will paly out .
As Always use proper risk management Guys Trade wisely best of Luck.
Bar Value TableBar Values Calculated
ATR
Previous Bar Value
Current Bar Value
Displays values in a table at the bottom left of chart
LibMirPapaICTLibrary "LibMirPapaICT"
isConsecutiveBullish(_len, _count)
Parameters:
_len (int) : int
/ @param _count int
/ @return bool
_count (int)
isConsecutiveBearish(_len, _count)
Parameters:
_len (int) : int
/ @param _count int
/ @return bool
_count (int)
createBoxOrderBlock(_isState, _leftBar, _rightBar, _priceTop, _priceBot, _useMidline, _xloc, _color, _offset)
Parameters:
_isState (bool)
_leftBar (int)
_rightBar (int)
_priceTop (float)
_priceBot (float)
_useMidline (bool)
_xloc (string)
_color (color)
_offset (int)
processBoxLevels(_levels, _useLineMid, _useTouch, _closeCount)
Parameters:
_levels (array) : BoxLevel
/ @param _useMidline bool
/ @param _useOBtouch bool
/ @param _closeCount int
_useLineMid (bool)
_useTouch (bool)
_closeCount (int)
BoxLevel
Fields:
isState (series bool)
boxInfos (series box)
lineMid (series line)
offset (series int)
priceTop (series float)
priceBot (series float)
volBuy (series float)
volSell (series float)
breakStage (series int)
breakTop (series float)
breakBot (series float)
result (series string)