SMA PersonalThis script provides a simple way to calculate and display a Simple Moving Average on your chart with flexibility in selecting input parameters.
Индикаторы и стратегии
Simple RSIA simple RSI that plots the RSI line in green when it's above 70 and red when it's below 30.
MA Crossover with Alerts (by Ismat)Bu Pine Script kodi "MA Crossover with Alerts" nomli indikatorni yaratadi, bu ikkita oddiy o'rtacha (MA 5 va MA 13) chiziqlarining kesishuvini kuzatib, xarid va sotish signalini ko'rsatadi
created by Ismat Barotov Latipovich
Milvetti_Pineconnector_LibraryLibrary "Milvetti_Pineconnector_Library"
This library has methods that provide practical signal transmission for Pineconnector.Developed By Milvetti
buy(licenseId, symbol, risk, sl, tp, beTrigger, beOffset, trailTrig, trailDist, trailStep, atrTimeframe, atrTrigger, atrPeriod, atrMultiplier, atrShift, spread, accFilter, secret, comment)
Create a buy order message
Parameters:
licenseId (string) : License Id. This is a unique identifier found in the Pineconnector Licensing Dashboard.
symbol (string) : Symbol. Default is syminfo.ticker
risk (float) : Risk. Function depends on the “Volume Type” selected in the EA
sl (float) : StopLoss. Place stop-loss. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
tp (float) : TakeProfit. Place take-profit. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
beTrigger (float) : Breakeven will be activated after the position gains this number of pips. Ensure > 0
beOffset (float) : Offset from entry price. 0 means the SL will be placed exactly at entry price. 1 means 1 pip above the entry price for buy trades and 1 pip below for sell trades.
trailTrig (int) : Trailing stop-loss will be activated after a trade gains this number of pips. Default is 0(inactive)
trailDist (int) : SL will be opened at traildist after trailtrig is met, even if you do not have a SL placed.. Default is 0(inactive)
trailStep (int) : Moves trailing stop-loss once price moves to favourable by a specified number of pips. Default is 0(inactive)
atrTimeframe (string) : ATR Trailing Stop will be based on the specified timeframe in minutes and will only update once per bar close. Default is Timeframe.Period
atrTrigger (float) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default is 0(inactive)
atrPeriod (int) : ATR averaging period. Default is 0
atrMultiplier (float) : Multiple of ATR to utilise in the new SL computation. Default is 1
atrShift (float) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default is 0
spread (float) : Enter the position only if the spread is equal or less than the specified value in pips. Default is 0(inactive)
accFilter (float) : Enter the position only if the account requirement is met. Default is 0(inactive)
secret (string)
comment (string) : Comment. Add a string into the order’s comment section. Default is "Symbol+Timeframe"
sell(licenseId, symbol, risk, sl, tp, beTrigger, beOffset, trailTrig, trailDist, trailStep, atrTimeframe, atrTrigger, atrPeriod, atrMultiplier, atrShift, spread, accFilter, secret, comment)
Create a buy order message
Parameters:
licenseId (string) : License Id. This is a unique identifier found in the Pineconnector Licensing Dashboard.
symbol (string) : Symbol. Default is syminfo.ticker
risk (float) : Risk. Function depends on the “Volume Type” selected in the EA
sl (float) : StopLoss. Place stop-loss. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
tp (float) : TakeProfit. Place take-profit. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
beTrigger (float) : Breakeven will be activated after the position gains this number of pips. Ensure > 0
beOffset (float) : Offset from entry price. 0 means the SL will be placed exactly at entry price. 1 means 1 pip above the entry price for buy trades and 1 pip below for sell trades.
trailTrig (int) : Trailing stop-loss will be activated after a trade gains this number of pips. Default is 0(inactive)
trailDist (int) : SL will be opened at traildist after trailtrig is met, even if you do not have a SL placed.. Default is 0(inactive)
trailStep (int) : Moves trailing stop-loss once price moves to favourable by a specified number of pips. Default is 0(inactive)
atrTimeframe (string) : ATR Trailing Stop will be based on the specified timeframe in minutes and will only update once per bar close. Default is Timeframe.Period
atrTrigger (float) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default is 0(inactive)
atrPeriod (int) : ATR averaging period. Default is 0
atrMultiplier (float) : Multiple of ATR to utilise in the new SL computation. Default is 1
atrShift (float) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default is 0
spread (float) : Enter the position only if the spread is equal or less than the specified value in pips. Default is 0(inactive)
accFilter (float) : Enter the position only if the account requirement is met. Default is 0(inactive)
secret (string)
comment (string) : Comment. Add a string into the order’s comment section. Default is "Symbol+Timeframe"
buyLimit(licenseId, symbol, pending, risk, sl, tp, beTrigger, beOffset, trailTrig, trailDist, trailStep, atrTimeframe, atrTrigger, atrPeriod, atrMultiplier, atrShift, spread, accFilter, secret, comment)
Create a buy limit order message
Parameters:
licenseId (string) : License Id. This is a unique identifier found in the Pineconnector Licensing Dashboard.
symbol (string) : Symbol. Default is syminfo.ticker
pending (float) : Computing pending order entry price. EA Options: Pips, Specified Price, Percentage
risk (float) : Risk. Function depends on the “Volume Type” selected in the EA
sl (float) : StopLoss. Place stop-loss. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
tp (float) : TakeProfit. Place take-profit. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
beTrigger (float) : Breakeven will be activated after the position gains this number of pips. Ensure > 0
beOffset (float) : Offset from entry price. 0 means the SL will be placed exactly at entry price. 1 means 1 pip above the entry price for buy trades and 1 pip below for sell trades.
trailTrig (int) : Trailing stop-loss will be activated after a trade gains this number of pips. Default is 0(inactive)
trailDist (int) : SL will be opened at traildist after trailtrig is met, even if you do not have a SL placed.. Default is 0(inactive)
trailStep (int) : Moves trailing stop-loss once price moves to favourable by a specified number of pips. Default is 0(inactive)
atrTimeframe (string) : ATR Trailing Stop will be based on the specified timeframe in minutes and will only update once per bar close. Default is Timeframe.Period
atrTrigger (float) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default is 0(inactive)
atrPeriod (int) : ATR averaging period. Default is 0
atrMultiplier (float) : Multiple of ATR to utilise in the new SL computation. Default is 1
atrShift (float) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default is 0
spread (float) : Enter the position only if the spread is equal or less than the specified value in pips. Default is 0(inactive)
accFilter (float) : Enter the position only if the account requirement is met. Default is 0(inactive)
secret (string)
comment (string) : Comment. Add a string into the order’s comment section. Default is "Symbol+Timeframe"
buyStop(licenseId, symbol, pending, risk, sl, tp, beTrigger, beOffset, trailTrig, trailDist, trailStep, atrTimeframe, atrTrigger, atrPeriod, atrMultiplier, atrShift, spread, accFilter, secret, comment)
Create a buy stop order message
Parameters:
licenseId (string) : License Id. This is a unique identifier found in the Pineconnector Licensing Dashboard.
symbol (string) : Symbol. Default is syminfo.ticker
pending (float) : Computing pending order entry price. EA Options: Pips, Specified Price, Percentage
risk (float) : Risk. Function depends on the “Volume Type” selected in the EA
sl (float) : StopLoss. Place stop-loss. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
tp (float) : TakeProfit. Place take-profit. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
beTrigger (float) : Breakeven will be activated after the position gains this number of pips. Ensure > 0
beOffset (float) : Offset from entry price. 0 means the SL will be placed exactly at entry price. 1 means 1 pip above the entry price for buy trades and 1 pip below for sell trades.
trailTrig (int) : Trailing stop-loss will be activated after a trade gains this number of pips. Default is 0(inactive)
trailDist (int) : SL will be opened at traildist after trailtrig is met, even if you do not have a SL placed.. Default is 0(inactive)
trailStep (int) : Moves trailing stop-loss once price moves to favourable by a specified number of pips. Default is 0(inactive)
atrTimeframe (string) : ATR Trailing Stop will be based on the specified timeframe in minutes and will only update once per bar close. Default is Timeframe.Period
atrTrigger (float) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default is 0(inactive)
atrPeriod (int) : ATR averaging period. Default is 0
atrMultiplier (float) : Multiple of ATR to utilise in the new SL computation. Default is 1
atrShift (float) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default is 0
spread (float) : Enter the position only if the spread is equal or less than the specified value in pips. Default is 0(inactive)
accFilter (float) : Enter the position only if the account requirement is met. Default is 0(inactive)
secret (string)
comment (string) : Comment. Add a string into the order’s comment section. Default is "Symbol+Timeframe"
sellLimit(licenseId, symbol, pending, risk, sl, tp, beTrigger, beOffset, trailTrig, trailDist, trailStep, atrTimeframe, atrTrigger, atrPeriod, atrMultiplier, atrShift, spread, accFilter, secret, comment)
Create a sell limit order message
Parameters:
licenseId (string) : License Id. This is a unique identifier found in the Pineconnector Licensing Dashboard.
symbol (string) : Symbol. Default is syminfo.ticker
pending (float) : Computing pending order entry price. EA Options: Pips, Specified Price, Percentage
risk (float) : Risk. Function depends on the “Volume Type” selected in the EA
sl (float) : StopLoss. Place stop-loss. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
tp (float) : TakeProfit. Place take-profit. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
beTrigger (float) : Breakeven will be activated after the position gains this number of pips. Ensure > 0
beOffset (float) : Offset from entry price. 0 means the SL will be placed exactly at entry price. 1 means 1 pip above the entry price for buy trades and 1 pip below for sell trades.
trailTrig (int) : Trailing stop-loss will be activated after a trade gains this number of pips. Default is 0(inactive)
trailDist (int) : SL will be opened at traildist after trailtrig is met, even if you do not have a SL placed.. Default is 0(inactive)
trailStep (int) : Moves trailing stop-loss once price moves to favourable by a specified number of pips. Default is 0(inactive)
atrTimeframe (string) : ATR Trailing Stop will be based on the specified timeframe in minutes and will only update once per bar close. Default is Timeframe.Period
atrTrigger (float) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default is 0(inactive)
atrPeriod (int) : ATR averaging period. Default is 0
atrMultiplier (float) : Multiple of ATR to utilise in the new SL computation. Default is 1
atrShift (float) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default is 0
spread (float) : Enter the position only if the spread is equal or less than the specified value in pips. Default is 0(inactive)
accFilter (float) : Enter the position only if the account requirement is met. Default is 0(inactive)
secret (string)
comment (string) : Comment. Add a string into the order’s comment section. Default is "Symbol+Timeframe"
sellStop(licenseId, symbol, pending, risk, sl, tp, beTrigger, beOffset, trailTrig, trailDist, trailStep, atrTimeframe, atrTrigger, atrPeriod, atrMultiplier, atrShift, spread, accFilter, secret, comment)
Create a sell stop order message
Parameters:
licenseId (string) : License Id. This is a unique identifier found in the Pineconnector Licensing Dashboard.
symbol (string) : Symbol. Default is syminfo.ticker
pending (float) : Computing pending order entry price. EA Options: Pips, Specified Price, Percentage
risk (float) : Risk. Function depends on the “Volume Type” selected in the EA
sl (float) : StopLoss. Place stop-loss. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
tp (float) : TakeProfit. Place take-profit. Computation is based on the Target Type selected in the EA. Default is 0(inactive)
beTrigger (float) : Breakeven will be activated after the position gains this number of pips. Ensure > 0
beOffset (float) : Offset from entry price. 0 means the SL will be placed exactly at entry price. 1 means 1 pip above the entry price for buy trades and 1 pip below for sell trades.
trailTrig (int) : Trailing stop-loss will be activated after a trade gains this number of pips. Default is 0(inactive)
trailDist (int) : SL will be opened at traildist after trailtrig is met, even if you do not have a SL placed.. Default is 0(inactive)
trailStep (int) : Moves trailing stop-loss once price moves to favourable by a specified number of pips. Default is 0(inactive)
atrTimeframe (string) : ATR Trailing Stop will be based on the specified timeframe in minutes and will only update once per bar close. Default is Timeframe.Period
atrTrigger (float) : Activate the trigger of ATR Trailing after market moves favourably by a number of pips. Default is 0(inactive)
atrPeriod (int) : ATR averaging period. Default is 0
atrMultiplier (float) : Multiple of ATR to utilise in the new SL computation. Default is 1
atrShift (float) : Relative shift of price information, 0 uses latest candle, 1 uses second last, etc. Default is 0
spread (float) : Enter the position only if the spread is equal or less than the specified value in pips. Default is 0(inactive)
accFilter (float) : Enter the position only if the account requirement is met. Default is 0(inactive)
secret (string)
comment (string) : Comment. Add a string into the order’s comment section. Default is "Symbol+Timeframe"
My strategy{ "secret": "eyJhbGciOiJIUzI1NiJ9.eyJzaWduYWxzX3NvdXJjZV9pZCI6MTA1NTM1fQ.LjhZON_V472svSJ-DYbE8zFstu01THnQ5pOiaFixEEY", "max_lag": "300", "timestamp": "{{timenow}}", "trigger_price": "{{close}}", "tv_exchange": "{{exchange}}", "tv_instrument": "{{ticker}}", "action": "{{strategy.order.action}}", "bot_uuid": "1eb94d98-de6e-4a1c-810c-edfc0a713306", "strategy_info": { "market_position": "{{strategy.market_position}}", "market_position_size": "{{strategy.market_position_size}}", "prev_market_position": "{{strategy.prev_market_position}}", "prev_market_position_size": "{{strategy.prev_market_position_size}}" }, "order": { "amount": "{{strategy.order.contracts}}", "currency_type": "base" }}
Cross-Symbol Candle Comparison IndicatorEasily compare the candle closing direction of your current chart's symbol with another symbol of your choice using this Pine Script indicator. Whether you're analyzing NAS100 against S&P500 or any other pair of assets, this tool highlights candles where the two symbols diverge:
Bullish vs. Bearish: Highlights candles when one symbol closes bullish and the other bearish, and vice versa.
Custom Symbol Input: Select any symbol to compare with the chart you're currently analyzing.
Multi-Timeframe Support: Works seamlessly across all timeframes to fit your trading style.
Enhance your technical analysis with this user-friendly and dynamic comparison tool. Perfect for traders seeking correlation or divergence insights between different assets.
PineTraderOT_V5Are you tired of the complexities of creating properly formatted order tickets in TradingView? We’ve got you covered! The PineTrader Order Ticket Generator library is here to simplify the process and help you automate your trading strategies with ease.
Why This Library?
Currently, TradingView doesn’t support JSON formatting natively. This means creating order tickets for automation often involves tedious string manipulations to build a message that services like PineTrader can understand. Our library takes care of all that for you by providing an easy-to-use method to generate correctly formatted JSON order tickets.
What Does It Do?
This library is your shortcut to creating automated trades using TradingView and PineTrader. It lets you build buy, sell, and pending orders with all the parameters you need, such as:
Take Profit (TP)
Stop Loss (SL)
Trailing Stops
And more!
Once your order ticket is ready, you can send it to the PineTrader webhook URL:
👉 webhook.pinetrader.io
The webhook communicates with your broker (like MT5) to execute trades based on the order ticket.
How to Use It?
Import the Library
Add this library to your Pine Script™ project.
Use CreateOrderTicket Method
Call the CreateOrderTicket function in your script and define the parameters for your trade, such as size, price, order type, and more.
Set Up Alerts
Create an alert in TradingView.
Use the webhook URL (webhook.pinetrader.io) for the alert notification.
Set the alert message to {{strategy.order.message}} (make sure to include alert_message in your strategy.entry or strategy.exit methods).
Enjoy Automation
Once the alert is triggered, the order ticket is sent to PineTrader, and your trades are executed automatically.
Example Workflow
Here’s how simple it is:
Define your trading parameters using CreateOrderTicket.
Add an alert linked to the PineTrader webhook.
Watch as your TradingView strategy seamlessly interacts with your broker!
Why Choose PineTrader Order Ticket Generator?
This library:
Saves time by automating the formatting of order tickets.
Reduces errors in creating JSON strings manually.
Simplifies integration between TradingView and brokers like MT5.
Automate your strategies today with the PineTrader Order Ticket Generator—the bridge between TradingView and effortless trading automation!
Order Ticket Generator by Pinetrader (TradingView Automation)
Are you tired of the complexities of creating properly formatted order tickets in TradingView? We’ve got you covered! The PineTrader Order Ticket Generator library is here to simplify the process and help you automate your trading strategies with ease.
Why This Library?
Currently, TradingView doesn’t support JSON formatting natively. This means creating order tickets for automation often involves tedious string manipulations to build a message that PineTrader can understand. Our library takes care of all that for you by providing an easy-to-use method to generate correctly formatted JSON order tickets.
What Does It Do?
This library is your shortcut to creating automated trades using TradingView and PineTrader. It lets you build buy, sell, and pending orders with all the parameters you need, such as:
Take Profit (TP)
Stop Loss (SL)
Trailing Stops
And more!
Once your order ticket is ready, you can send it to the PineTrader webhook URL:
👉 webhook.pinetrader.io
The webhook communicates with your broker (like MT5) to execute trades based on the order ticket.
How to Use It?
1. Import the Library
Add this library to your Pine Script™ project.
2. Use CreateOrderTicket Method
Call the CreateOrderTicket function in your script and define the parameters for your trade, such as size, price, order type, and more.
3. Set Up Alerts
Create an alert in TradingView.
Use the webhook URL (webhook.pinetrader.io) for the alert notification.
Set the alert message to {{strategy.order.message}} (make sure to include alert_message in your strategy.entry or strategy.exit methods).
4. Enjoy Automation
Once the alert is triggered, the order ticket is sent to PineTrader, and your trades are executed automatically.
Example Workflow
Here’s how simple it is:
Define your trading parameters using CreateOrderTicket.
Add an alert linked to the PineTrader webhook.
Watch as your TradingView strategy seamlessly interacts with your broker!
Why Choose PineTrader Order Ticket Generator?
This library:
Saves time by automating the formatting of order tickets.
Reduces errors in creating JSON strings manually.
Simplifies integration between TradingView and brokers like MT5.
Automate your strategies today with the PineTrader Order Ticket Generator—the bridge between TradingView and effortless trading automation!
Additional ressources:
Pinetrader Website
Documentation
Youtube Tutorial
Volume and Bollinger Band Arrow IndicatorThis is an indicator that is marked with arrows when the candle has a high volume despite its small size
It works when the candle touches the bolinger band (20, 2) at least once, and may be modified or added later
Vertical Lines OverlayVertical Lines Overlay with Custom Time Inputs
This script allows users to draw vertical lines on their charts at specific times of the day, providing a customizable tool for marking key events, session changes, or any other time-based analysis.
Features:
Customizable Time Inputs: Set up to 6 distinct times (hours and minutes) to draw vertical lines.
Line Style Options: Choose between solid, dotted, or dashed line styles for each line.
Line Width Control: Adjust the thickness of each line individually.
Color Selection: Assign unique colors to each vertical line for better visibility and organization.
Dynamic Time Offsets: Adjust line positions with predefined time offsets, ensuring compatibility across different trading instruments and time zones.
Automatic Line Drawing: Lines are plotted automatically at the specified times if the conditions are met.
How to Use:
Open the settings panel by clicking the gear icon.
Enable or disable each line by toggling the respective checkboxes.
Set the desired time for each line using the hour and minute inputs.
Customize line styles, widths, and colors for each line.
Optionally, apply a time offset based on your trading instrument or preference.
RSI edginthis strategy is on the 5 min timeframe
step 1 - Find the candle where the rsi just crossed below 20 and mark it as candle 1
step 2 - mark the high of candle 1 and wait for a candle to break the high and close above it. Once the candle closes above the candle 1 high, we will mark it as candle 2.
step 3 - when the candle 2 comes, there are 2 ways
a. If candle 2 is formed and rsi hasnt crossed above 50 we will wait for rsi to cross above 50
b. if candle 2 is formed and rsi has already crossed above 50 move to step 4
step 4 - once rsi is above 50 mark the low between candle 1 and candle 2 and when a candle breaks and closes below the low, we will mark it as candle 3.
step 5- Mark the high between candle 1 and candle 3, once a candle crosses above the high and closes above the high, we will take our entry
Stop loss - at the low between candle 1 and candle 3.
SMA y HMA PersonalizablesEste indicador puede ser útil para observar cómo se comportan diferentes tipos de medios móviles (SMA y HMA) con distintos períodos en un gráfico de precios. Las SMA son buenas para ver tendencias a largo plazo, mientras que la HMA es conocida por su capacidad para reducir el retraso.
Engulfing BarIt indicates an Engulfing Bar.
Bullish Engulfing Bar:
(1) A bar that sweeps the LOW and closes above the previous day's close (If previous day is bullish)
(2) A bar that sweeps the LOW and closes above the previous day's open (If previous day is bearish)
Bearish Engulfing Bar:
(1) A bar that sweeps the HIGH and closes below the previous day's open (If previous day is bullish)
(2) A bar that sweeps the HIGH and closes below the previous day's close (If previous day is bearish)
SMA 20/50/100/200 by TPThis calculates the SMA 20/50/100/200 and changes the color when it falls through the support level.
EMA 12/26 by TPThis is to provide the EMA 12/26. It essentially changes the color based on the 12 and 26
Enhanced Effort vs Result Analysis V.2How to Use in Trading
A. Confirm Breakouts
Check if the Effort-Result Ratio or Z-Score spikes above the Upper Band or Z > +2:
Suggests a strong, efficient price move.
Supports breakout continuation.
B. Identify Reversal or Exhaustion
Look for Effort-Result Ratio or Z-Score dropping below the Lower Band or Z < -2:
Indicates high effort but low price movement (inefficiency).
Often signals potential trend reversal or consolidation.
C. Assess Efficiency of Trends
Use Relative Efficiency Index (REI):
REI near 1 during a trend → Confirms strength (efficient movement).
REI near 0 → Weak or inefficient movement, likely signaling exhaustion.
D. Evaluate Volume-Price Relationship
Monitor the Volume-Price Correlation:
Positive correlation (+1): Confirms price is driven by volume.
Negative correlation (-1): Indicates divergence; price moves independently of volume (potential warning signal).
3. Example Scenarios
Scenario 1: Breakout Confirmation
Effort-Result Ratio spikes above the Upper Band.
Z-Score exceeds +2.
REI approaches 1.
Volume-Price Correlation is positive (near +1).
Action: Strong breakout confirmation → Trend continuation likely.
Scenario 2: Reversal or Exhaustion
Effort-Result Ratio drops below the Lower Band.
Z-Score is below -2.
REI approaches 0.
Volume-Price Correlation weakens or turns negative.
Action: Signals trend exhaustion → Watch for reversal or consolidation.
Scenario 3: Range-Bound Market
Effort-Result Ratio stays within the Bollinger Bands.
Z-Score remains between -1 and +1.
REI fluctuates around 0.5 (neutral efficiency).
Volume-Price Correlation hovers near 0.
Action: Normal conditions → Look for breakout signals before acting.
*IMPORTANT*
There is a problem with the overlay ... How to fix some of it
The Standard Deviation bands dont work while the other variable activated so Id suggest deselecting them. The fix for this is to make sure you have the background selected and by doing this it will highlight on the chart ( you may need to increase the opacity ) when the bands ( Second standard deviation) are touched.
- Also you can use them all at once if you can but you do not need to
First Weeks, Christmas, and May (Past 20 Years)Simple indicator that help mark the important sale off days of the year, including
- Black Friday
- Christmas
- And, but not least, sell in MAY
German Market Opening UTC+1Description:
This script highlights the opening time of the German stock market (08:00 UTC+1) on a TradingView chart. It is designed to help traders quickly identify market openings and analyze price movements during this key trading period.
Key Features:
Market Opening Identification:
Automatically detects the exact moment the German stock market opens each day (08:00 UTC+1).
Marks the opening with a vertical line spanning the entire chart and a label for visual clarity.
Custom Indicators:
A blue line is drawn from the lowest to the highest price of the opening candle, extending across the chart to visually indicate the start of the trading day.
A labeled marker reading "DE-Opening" is placed at the top of the opening candle for additional clarity.
Ease of Use:
Simple overlay indicator that works seamlessly on any timeframe chart.
Helps traders focus on key opening price action.
Use Case:
This script is particularly useful for day traders and scalpers who want to identify and analyze the price behavior around the opening of the German stock market. It provides a visual cue to help traders develop strategies or make informed decisions during this active trading period.
Note:
Ensure your chart’s timezone is set to match UTC+1 or appropriately adjust for your location to ensure accurate time alignment.
If you have questions or suggestions, feel free to provide feedback!
Milvetti_TraderPost_LibraryLibrary "Milvetti_TraderPost_Library"
This library has methods that provide practical signal transmission for traderpost.Developed By Milvetti
cancelOrders(symbol)
This method generates a signal in JSON format that cancels all orders for the specified pair. (If you want to cancel stop loss and takeprofit orders together, use the “exitOrder” method.
Parameters:
symbol (string)
exitOrders(symbol)
This method generates a signal in JSON format that close all orders for the specified pair.
Parameters:
symbol (string)
createOrder(ticker, positionType, orderType, entryPrice, signalPrice, qtyType, qty, stopLoss, stopType, stopValue, takeProfit, profitType, profitValue, timeInForce)
This function is designed to send buy or sell orders to traderpost. It can create customized orders by flexibly specifying parameters such as order type, position type, entry price, quantity calculation method, stop-loss, and take-profit. The purpose of the function is to consolidate all necessary details for opening a position into a single structure and present it as a structured JSON output. This format can be sent to trading platforms via webhooks.
Parameters:
ticker (string) : The ticker symbol of the instrument. Default value is the current chart's ticker (syminfo.ticker).
positionType (string) : Determines the type of order (e.g., "long" or "buy" for buying and "short" or "sell" for selling).
orderType (string) : Defines the order type for execution. Options: "market", "limit", "stop". Default is "market"
entryPrice (float) : The price level for entry orders. Only applicable for limit or stop orders. Default is 0 (market orders ignore this).
signalPrice (float) : Optional. Only necessary when using relative take profit or stop losses, and the broker does not support fetching quotes to perform the calculation. Default is 0
qtyType (string) : Determines how the order quantity is calculated. Options: "fixed_quantity", "dollar_amount", "percent_of_equity", "percent_of_position".
qty (float) : Quantity value. Can represent units of shares/contracts or a dollar amount, depending on qtyType.
stopLoss (bool) : Enable or disable stop-loss functionality. Set to `true` to activate.
stopType (string) : Specifies the stop-loss calculation type. Options: percent, "amount", "stopPrice", "trailPercent", "trailAmount". Default is "stopPrice"
stopValue (float) : Stop-loss value based on stopType. Can be a percentage, dollar amount, or a specific stop price. Default is "stopPrice"
takeProfit (bool) : Enable or disable take-profit functionality. Set to `true` to activate.
profitType (string) : Specifies the take-profit calculation type. Options: "percent", "amount", "limitPrice". Default is "limitPrice"
profitValue (float) : Take-profit value based on profitType. Can be a percentage, dollar amount, or a specific limit price. Default is 0
timeInForce (string) : The time in force for your order. Options: day, gtc, opg, cls, ioc and fok
Returns: Return result in Json format.
addTsl(symbol, stopType, stopValue, price)
This method adds trailing stop loss to the current position. “Price” is the trailing stop loss starting level. You can leave price blank if you want it to start immediately
Parameters:
symbol (string)
stopType (string) : Specifies the trailing stoploss calculation type. Options: "trailPercent", "trailAmount".
stopValue (float) : Stop-loss value based on stopType. Can be a percentage, dollar amount.
price (float) : The trailing stop loss starting level. You can leave price blank if you want it to start immediately. Default is current price.
3 Candle stick 1 hour rule It indicates Context of the Market, it applicable in 1 hour time frame only.
Weekly-SeparatorThis TradingView indicator draws vertical lines at the weekly open, providing a visual reference for the start of the trading week. These lines help traders identify key price levels and track market movements relative to the opening price of each week.