Baseline TrendBaseline Trend Strategy Overview
Baseline Trend is a crypto-only trading strategy built on straightforward price-based logic: market direction is determined solely by the price’s position relative to a selected baseline open price. No technical indicators like RSI, MACD, or volume are used—this approach is purely focused on price action and position size manipulation.
This strategy is a genuine concept, developed from my own market analysis and logical theory, refined through extensive observation of crypto market behaviour.
While the strategy offers structure and adaptability, it’s important to recognise that no single trading system or indicator fits all market conditions. This tool is meant to support decision-making, not replace it—encouraging traders to stay flexible, informed, and in control of their risk.
Important Usage Note:
This system is intended for crypto markets only.
– When used as an indicator guide, it can be applied to both spot and futures markets.
– However, when used with web-hook automation, it is designed only for futures contracts.
Ensure compatibility with your trading setup before using automation features.
Core Logic: The Baseline
The strategy revolves around the concept of a “Baseline”, with three types available:
Main Baseline: Defines the primary trend direction. If the price is above, go long; if below, go short.
Second Baseline and Third Baseline: Used to measure buying/selling pressure and are key to certain take-profit logic options.
Baselines are customisable to different timeframes—Year, Month, Week, and more—based on available input settings. Structurally, the Main Baseline is the highest-level trend reference, followed by the Second, then Third.
Users can mix and match these baselines across timeframes to backtest crypto symbols and understand behaviour patterns, particularly when used with standard candlestick charts.
Entry & Exit Logic
Entry Signal: Triggered when price crosses over/under a defined distance (percentage) from the Main Baseline. This distance is the Trade Line, calculated based on the close price.
Exit Signal / Stop Loss: If price moves un-favorable and crosses over/under the Stop Loss Line (a defined distance from the Main Baseline), the open position will be force-closed according to user-defined settings.
LiqC (Liquidation Cut)
LiqC is a secondary stop-loss that activates when a leveraged position’s loss equals or exceeds the user-defined liquidation threshold. It forcefully closes the position to help prevent full liquidation before stop-loss, providing an extra layer of protection.
This LiqC is directly tied to the leverage level set by the user. Please ensure you understand how leverage affects liquidation risk, as different broker exchanges may use different liquidation ratio models. Using incorrect assumptions or mismatched leverage values may result in unexpected behaviour.
Position Sizing & Block Units
This strategy features a block-based position sizing system designed for flexibility and precision in trade management:
Block Range: Customisable from 1 to 10 blocks
Risk Allocation: Controlled through a user-defined ROE (Risk of Equity) value
For example, setting an ROE of 0.1% with 10 blocks allocates a total of 1% of account equity to the position. This structure supports both conservative and aggressive risk approaches, depending on user preference.
Block sizes are automatically calculated in alignment with exchange requirements, using Minimum Notional Value (MNV) and Minimum Trade Amount (MTA). These values are dynamically calculated based on the live market price, and scaled relative to the trader’s balance and selected risk percentage. This ensures accurate sizing with built-in adaptability for any account level and current market conditions.
Scalping Meets Trend Holding
This system blends short-term scalping with longer-term trend holding, offering a flexible and adaptive trading style.
Example:
Enter 10 blocks → take quick profits on 5 blocks → let the remaining 5 ride the trend.
This dual-layered approach allows traders to secure early gains while staying positioned for larger market moves. Think of it as:
5 Blocks to Protect: Capture quick wins and manage exposure.
5 Blocks to Pursue: Let profits run by following the broader trend.
By combining both protection and pursuit, the strategy supports risk control without sacrificing the potential for extended returns.
Flexible Take-Profit Logic
The strategy supports multiple, customisable take-profit mechanisms:
TP1–4 (Profit Percentage)
Triggers take profit of 1 block unit when unrealised gains reach defined percentage thresholds (TP1, TP2, TP3, TP4).
Buying/Selling Pressure-Based Take Profit
D1 – Pressure 1
Measures pressure between Second and Third Baselines.
If the distance between them exceeds a user-defined DPT (Decrease Post Threshold) and the price moves far enough from the Third Baseline, D1 activates to take profit or scale out one block.
D2 – Pressure 2
Measures pressure between the Main and Second Baselines.
Works similarly to D1, using a separate distance and pressure trigger.
Note: Both D1 and D2 deactivate in reversal or even trend conditions.
D3–5: High-High / Low-Low Logic
Based on bar index tracking after position entry:
For Long Positions: If after D3 bars the price doesn't exceed the previous bar's high, the system executes a take profit or scale-out.
For Short Positions: If the price doesn't drop below the previous low, the same logic applies.
This approach adds time-based and momentum-aware exit flexibility.
Leverage & Liquidation Risk
When backtesting with leverage enabled, the system checks whether historical candles exceed the liquidation range, calculated based on the average entry price and the leverage input. If the Liquidation Risk Count exceeds 1, profit and loss accuracy may be affected. Traders are encouraged to monitor this count closely to ensure realistic backtesting results.
Since the system cannot directly control or sync with your broker exchange’s actual leverage setting, it’s important to manually match the system’s leverage input with your broker’s configured leverage.
For example: If the system leverage input is set to 10, your exchange leverage setting must also be set to 10. Any mismatch will lead to inaccurate liquidation risk and PnL calculations.
Backtesting and Customisation
All TP1–4 and D1–5 functions are fully optional and customisable. Users are encouraged to backtest different crypto symbols to observe how price behaviour aligns with baseline structures and pressure metrics.
Each of the TP1–4 and D1–5 triggers is designed to execute only once per open position, ensuring controlled and predictable behaviour within each trade cycle.
Since backtesting is based on available historical bar data, please note that data availability varies depending on your TradingView subscription plan. For more reliable insights, it’s recommended to backtest across multiple time ranges, not just the full dataset, to assess the stability and consistency of the strategy’s performance over time.
Additionally, the time frame resolution interval in TradingView is customisable. For best results, use commonly supported time frames such as 30 minutes, 1 hour, 4 hours, 1 day, or 1 week. While the system is designed to support a broad range of intervals, non-standard resolutions may still cause calculation errors.
Currently, the system supports the following resolution ranges:
Intraday: from 1 minute to 720 minutes
(e.g., 60 minutes = 1 hour, 240 minutes = 4 hours, 720 minutes = 12 hours)
Daily: from 1 day to 6 days
Weekly: from 1 week to 3 weeks
Monthly: from 1 month to 4 months
Although the script is built to adapt to various resolutions, users should still monitor output behaviour closely, especially when testing less common or edge-case time frames.
System Usage Notice:
This system can be used as a standalone trading indicator or integrated with an exchange that supports web-hook signal execution. If you choose to automate trades via web-hook, please ensure you fully understand how to configure the setup properly. Web-hook integration methods vary between exchanges, and incorrect setup may lead to unintended trades. Users are responsible for ensuring proper configuration and monitoring of their automation.
Note on Lower Time Frame Usage
When using lower time frames (e.g., 1-minute charts) as the trading time frame, please be aware that available historical data may be limited depending on your subscription plan. This can affect the depth and reliability of backtesting, making it harder to establish a trustworthy probability model for a symbol’s behaviour over time.
Additionally, when pairing a high-level Main Baseline (MBL) time line (such as "1 Month") with low time frame resolutions (like 1-minute), you may encounter order execution limits or calculation overloads during backtesting. This is due to the large number of historical bars required, which can strain the system's capacity.
That said, if a user intentionally chooses to work with lower time frames, that decision is fully respected—but it should be done with awareness and at the user’s own risk.
Things to Be Aware Of (Web-hook Usage Only)
The following points apply if you're using web-hook automation to send signals from the system to an exchange:
Alert Signal Reliability
During extreme market volatility, some broker exchanges may fail to respond to web-hook signals due to traffic overload. While rare, this has occurred in the past and should be considered when relying on automation.
Alert Expiration (TradingView)
If you're on a Basic plan, TradingView alerts are only active for a limited time—typically around 1.5 months. Once expired, signals will no longer be sent out.
To keep your system active, reset the alert before expiration. For uninterrupted alerts, consider upgrading to a Premium plan, which supports permanent alert activation.
TradingView Alert Maintenance
TradingView may occasionally perform system maintenance, during which alerts may temporarily stop functioning. It’s recommended to monitor TradingView’s status if you’re relying on real-time automation.
Repainting
As of the current version, no repainting behaviour has been observed. Signal stability and consistency have been maintained across real-time and historical bars.
Order Execution Type and Fill Logic
All signals use Limit orders by default, except for MBL Exit and Fallback execution, which use Market orders.
Since Limit orders are not guaranteed to fill, the system includes logic to cancel unfilled orders and resend them. If necessary, a Fallback Market order is used to avoid conflict with new incoming trades.
This has only happened once, and is considered rare, but users should always monitor execution status to ensure accuracy and alignment with system behaviour.
Feedback
If you encounter any errors, bugs, or unexpected behaviour while using the system, please don’t hesitate to let me know. Your input is invaluable for helping improve the strategy in future updates.
Likewise, if you have any suggestions or ideas for enhancing the system—whether it’s a new feature, adjustment, or usability improvement—please feel free to share. Together, we can continue refining the tool to make it more robust and beneficial for everyone.
Disclaimer
All trading involves risk, particularly in the crypto market where conditions can be highly volatile. Past performance does not guarantee future outcomes, and market behaviour may evolve over time. This strategy is offered as a tool to support trading decisions and should not be considered financial or investment advice. Each user is responsible for their own actions and accepts full responsibility for any results that may arise from using this system.
Futurestrading
FXC NQ Opening Range Breakout Strategy V2.4Mechanical Strategy that trades breakouts on NQ futures on the 15min timeframe during the NYSE session. It's designed to manage Apex and Top Step accounts with the lowest risk possible.
Risk Disclaimer:
Past results as well as strategy tester reports do not indicate future performance. Guarantees do not exist in trading. By using this strategy you risk losing all your money.
Important:
It only trades on Monday, Wednesday and Friday and takes usually only 1 trade per trading day.
It works on the 15min timeframe only.
The settings are optimised already for NQ but feel free to change them.
How it works:
Every selected trading day it measures the range of the first 15min candle after the NYSE open. As soon as price closes above on the 15min timeframe, it will trade the breakout targeting a set risk to reward ratio. SL on the opposite side of the range. It will trail the SL after a set amount of points and uses a buffer of the set amount of points to trail it.
Settings:
Opening Range Time : This is the time of the day in hours and minutes when the strategy starts looking for trades. It's in the EST/ NY Timezone and set to 9:30-09:45 by default
because that's the NYSE open.
Session Time : This is the time of the day in hours and minutes until the strategy trades. It's in the EST/ NY Timezone and set to 09:45-14:45 by default.
because that's what gave the best results in backtesting. Open trades will get closed automatically once the end of the session is reached. No matter if win or loss. This is just to prevent holding positions over night.
Session Border This setting is to select the border color in which the session box will be plotted.
Opening Range Box This setting is to select the fill color of the opening range box.
Opening Range Border This setting is to select the border color of the session box.
Trade Timeframe This setting determines on which timeframe candle has to close outside the opening range box in order to take a trade. It's set to 15min by default because this is what worked by far the best in backtests and live trading.
Stop Loss Buffer in Points: This is simply the buffer in points that is added to the SL for safety reasons. If you have it on 0, the SL will be at the exact price of the opposite side of the range. By default it's set to 0 pips because this is what delivered the best results in backtests.
Profit Target Factor: This is simply the total SL size in points multiplied by x.
Example: If you put 2, you get a 1:2 Risk to Reward Ratio. By Default it's set to 4 because this gave the best results in backtests, because trades always get closed either by trailing SL or because the end of the session is reached.
Use Trailing Stop Loss: This setting is to enable/ disable the trailing stop loss. It's enabled by default because this is a fundamental part of the strategy.
Trailing Stop Buffer: This setting determines after how many points in profit the trailing SL will be activated.
Risk Type: You can chose either between Fixed USD Amount, Risk per Trade in % or Fixed Contract Size. By default it's set to fixed contract size.
Risk Amount (USD or Contracts): This setting is to set how many USD or how many contracts you want to risk per trade. Make sure to check which risk type you have selected before you chose the risk amount.
Use Limit Orders If enabled, the strategy will place a pending order x points from the current price, instead of a market order. Limit orders are enabled by default for a better performance. Important: It doesn't actually place a limit order. The strategy will just wait for a pullback and then enter with a market order. It's more like a hidden limit order.
Limit Order Distance (points): If you have limit orders enabled, this setting determines how many points from the current price the limit order will be placed.
Trading Days: These checkboxes are to select on which week days the strategy has to trade. Thursday is disabled by default because backtests have shown that Thursday is the least profitable day
Backtest Settings:
For the backtest the commissions ere set to 0.35 USD per mini contract which is the highest amount Tradeovate charges. Margin was not accounted for because typically on Apex accounts you can use way more contracts than you need for the extremely low max drawdown. Margin would be important on personal accounts but even there typically it's not an issue at all especially because this strategy runs on the 15min timeframe so it won't use a lot of contracts anyways.
What makes it unique:
This script is unique because it's designed to be used on Apex and Top Step accounts with extremely strict drawdown rules.
The strategy is optimised to be traded with a fixed contract size instead of using % risk. The reason for that is that the drawdown rules of these Futures Prop Accounts are very strict and the fact that the smallest trade-able contract size is 1.
Why the source code is hidden:
The source code is hidden because I invested a lot of time and money into developing this strategy and optimising it with paid 3rd party software. Also since I use it myself on my Apex accounts and prop firms don't allow copy trading I don't want it to be used by too many traders.
DNSE VN301!, SMA & EMA Cross StrategyDiscover the tailored Pinescript to trade VN30F1M Future Contracts intraday, the strategy focuses on SMA & EMA crosses to identify potential entry/exit points. The script closes all positions by 14:25 to avoid holding any contracts overnight.
HNX:VN301!
www.tradingview.com
Setting & Backtest result:
1-minute chart, initial capital of VND 100 million, entering 4 contracts per time, backtest result from Jan-2024 to Nov-2024 yielded a return over 40%, executed over 1,000 trades (average of 4 trades/day), winning trades rate ~ 30% with a profit factor of 1.10.
The default setting of the script:
A decent optimization is reached when SMA and EMA periods are set to 60 and 15 respectively while the Long/Short stop-loss level is set to 20 ticks (2 points) from the entry price.
Entry & Exit conditions:
Long signals are generated when ema(15) crosses over sma(60) while Short signals happen when ema(15) crosses under sma(60). Long orders are closed when ema(15) crosses under sma(60) while Short orders are closed when ema(15) crosses over sma(60).
Exit conditions happen when (whichever came first):
Another Long/Short signal is generated
The Stop-loss level is reached
The Cut-off time is reached (14:25 every day)
*Disclaimers:
Futures Contracts Trading are subjected to a high degree of risk and price movements can fluctuate significantly. This script functions as a reference source and should be used after users have clearly understood how futures trading works, accessed their risk tolerance level, and are knowledgeable of the functioning logic behind the script.
Users are solely responsible for their investment decisions, and DNSE is not responsible for any potential losses from applying such a strategy to real-life trading activities. Past performance is not indicative/guarantee of future results, kindly reach out to us should you have specific questions about this script.
---------------------------------------------------------------------------------------
Khám phá Pinescript được thiết kế riêng để giao dịch Hợp đồng tương lai VN30F1M trong ngày, chiến lược tập trung vào các đường SMA & EMA cắt nhau để xác định các điểm vào/ra tiềm năng. Chiến lược sẽ đóng tất cả các vị thế trước 14:25 để tránh giữ bất kỳ hợp đồng nào qua đêm.
Thiết lập & Kết quả backtest:
Chart 1 phút, vốn ban đầu là 100 triệu đồng, vào 4 hợp đồng mỗi lần, kết quả backtest từ tháng 1/2024 tới tháng 11/2024 mang lại lợi nhuận trên 40%, thực hiện hơn 1.000 giao dịch (trung bình 4 giao dịch/ngày), tỷ lệ giao dịch thắng ~ 30% với hệ số lợi nhuận là 1,10.
Thiết lập mặc định của chiến lược:
Đạt được một mức tối ưu ổn khi SMA và EMA periods được đặt lần lượt là 60 và 15 trong khi mức cắt lỗ được đặt thành 20 tick (2 điểm) từ giá vào.
Điều kiện Mở và Đóng vị thế:
Tín hiệu Long được tạo ra khi ema(15) cắt trên sma(60) trong khi tín hiệu Short xảy ra khi ema(15) cắt dưới sma(60). Lệnh Long được đóng khi ema(15) cắt dưới sma(60) trong khi lệnh Short được đóng khi ema(15) cắt lên sma(60).
Điều kiện đóng vị thể xảy ra khi (tùy điều kiện nào đến trước):
Một tín hiệu Long/Short khác được tạo ra
Giá chạm mức cắt lỗ
Lệnh chưa đóng nhưng tới giờ cut-off (14:25 hàng ngày)
*Tuyên bố miễn trừ trách nhiệm:
Giao dịch hợp đồng tương lai có mức rủi ro cao và giá có thể dao động đáng kể. Chiến lược này hoạt động như một nguồn tham khảo và nên được sử dụng sau khi người dùng đã hiểu rõ cách thức giao dịch hợp đồng tương lai, đã đánh giá mức độ chấp nhận rủi ro của bản thân và hiểu rõ về logic vận hành của chiến lược này.
Người dùng hoàn toàn chịu trách nhiệm về các quyết định đầu tư của mình và DNSE không chịu trách nhiệm về bất kỳ khoản lỗ tiềm ẩn nào khi áp dụng chiến lược này vào các hoạt động giao dịch thực tế. Hiệu suất trong quá khứ không chỉ ra/cam kết kết quả trong tương lai, vui lòng liên hệ với chúng tôi nếu bạn có thắc mắc cụ thể về chiến lược giao dịch này.
action zone - ATR stop reverse order strategy v0.1 by 9nckACTION ZONE-ATR MOD v0.1 DOCUMENTATION
Overview
This tradingview pine script strategy is mainly created to enrich my coding skill. It is a combination of “CDC-ACTIONZONE” and my personal studies of trading techniques in various sources e.g.book, course or blog. This strategy purposefully built to connect with my automatic trading bot. However, It will be very useful to aid your trading routine by diminishing mental distraction which possibly leads to bad trades.
How does it work?
This strategy will do a basic simple thing that most traders do by creating entry signals on both sides long/short and also set the stop loss. Furthermore, It will also reverse the order (from long to short and vice versa (if long/short conditions are met). Finally, it will recalculate the stop loss/take profit price in every complete bar to increase the chance of winning and limit our loss.
Entry rules(Long/Short)
If you have no open order, an order will be created when a fast EMA crosses(up(long)/down(short) the slow EMA(It’s as simple as that).
If you have an open order, the current order will be (sold if long, covered if short) and the opposite side order will be created.
Exit and Reverse rules(Long/Short)
If fast EMA cross (DOWN(long), UP(short)), the current order will be closed, THE OPPOSITE SIDE ORDER WILL ALSO BE CREATED.
Risk management
FLEX STOP PRICE : initial value will be set at the bar which order created. It is a fast ema (+/-) MIDDLE ATR value.
If MIDDLE ATR value rises, it will be our new stop price.
If MIDDLE ATR value falls, stop price unchanged
If Price OVERBOUGHT(long)/SOLD(short), LOW of that bar will be a new stop price.
Minimum position hold period
In order to eliminate risk of repeatedly open, close orders in sideway trends. Minimum hold period must be passed to start exit our position. However, It always respects stop loss prices. The value refers to the number of bars.
MUST READ!!!
This strategy uses only MARKET ORDER. If you trade with a bot, make sure you choose only enormous market cap tokens.
This strategy is bi-direction strategy. It will work best in the DERIVATIVE market.
It was initially designed to compete in the cryptocurrency market which has very high volume and volatility.
I only use this strategy in 1HR (acceptable change rate, optimum trade frequency)
How (should) we use it?
Choose crypto future pairs (recommend only top 10-15 market volume pairs in Binance, let’s say 1000M+ trade value)
Choose your time frame (1H is strongly recommended)
Setup your portfolio profile (Setting->Properties) such as Initial cap, order size, commission. DO NOT USE CAL ON EVERY TICK IT WILL CAUSE REPAINTING AND YOUR CAPITAL IS BLEEDING !!!
BACKTEST FIRST!! Back test is a combination of art, math and statis(and a bit of luck). You can apply to train and test methods or whatever you are familiar with. In my opinion, your test period should include UPTREND, SIDEWAY, DOWNTREND. Fine tune fast, slow ema first(my best ema length of 1H timeframe around 7-10, 17-22). Try to eliminate fault breakout trade and use other options only necessary. Hopefully we can use automatic optimization on Pine Script soon.
Don’t forget to turn off using a specific backtest date option to start your strategy.A
THIS IS NOT A PERFECT (OR EVEN PROFITABLE) STRATEGY. USE AT YOUR OWN RISK AND TRADE RESPONSIBLY. DYOR DUDE.
[Fedra Algotrading Strategy Futures Signals]Linear Regression + Take Profit and Percentage Stop Loss
Optimize the parameters in backtesting to find the best entries, define your profit and risk strategy, take advantage of statistics and make trades without letting the psychological factor make you commit mistakes.
The strategy chooses the time to buy when the price breaks down the deviation of the linear regression calculated on the basis of the last lows prices and allows you to generate alerts.
It also includes an emergency exit at Break Even (1.5%) when it detects a negative trend in the short term.
It also has an advanced trend filter to avoid opening trades against the market.
*************************************
Regresión lineal + Take Profit y Stop loss porcentual
Optimice los parámetros en backtesting para encontrar las mejores entradas, defina su estrategia de profit y riesgo, apreveche las estadísticas y haga operaciones son dejar que el factor psicológico le haga cometer errores.
La estrategia elige el momento de compra cuando el precio rompe hacia abajo la desviación de la regresión lineal calculada en base a lows últimos precios y permite generar alertas.
También incluye una salida de emergencia en Break Even (1.5%) cuando detecta una tendencia negativa en el corto plazo.
Tiene también un filtro avanzado de tendencia para no abrir operaciones en contra del mercado.
Volume RSI Crypto This is a special version RSI, in this case , I am using the volume, which is measuring the speed and change of volume to the price both up and down size.
Volume RSI attempts to gauge price trend changes via changes in bullish and bearish movements.
Its formula is :
VoRSI = 100 - 100 / (1 + VoRS)
where VoRS is Volume Relative Strength over specified period which is calculated as a ratio between averages of Up-Volumes and Down-Volumes:
VoRS = (Average Up-Volume) / (Average Down-Volume)
The logic for this strategy is simple
We entry long when we have a crossover with the Overbought level and we entry short when we have a crossunder with oversold level.
If you have any questions, please let me knw !
CRYPTO RVI FUTURE 1HThis is a crypto strategy adapted for the futures pairs, especially the perpusdt ones from binance for 1h time frame.
The main component here is the RVI, which is a modified form of the RSI indicator. The RVI, measures more the general direction of the volatility, and can get the trends far smoother than the RSI.
The logic inside is the same like we would normally do with RSI, we check for overbought and oversold levels, and based of that we have an entry or exit depending if we go long or short.
I have tested this product with all the pairs from PERPUSDT from binance and seems to works with the majority of them, of course on some better than the others.
If there are any questions, please let me know !
PerPro V8 Futures Version 1.1Perpro futures ES, CL ,NQ etc scalper.
Best performance time frame 5 Minutes.
SMA Futures Scalper - Long / Short / Trailing StopSMA Futures Scalper - Long / Short / Trailing Stop
It generates long/short signals and apply trailing stop of 3pts and offset of 1pt. Also with 3 contracts per open/closing trades.
How does it look? Let me know in the comments
PerPro V5 Publish updatedSend me a private message to be enabled
Algorithmic system with 80% assertiveness. DO NOT REPAINT
Please read
Use the system using other trend indicators. I attach some.
ideal for use in channels, resistances supports and Fibonacci levels.
Setting recommendation
- "For 1min TF = 15min"
- "For 5min TF = 60"
- "For 1H Forex TF = 4H Or D, for stock 1H TF = D"
- "For Day use TF = W"
- "For Week TF = M"
COINBASE:BTCUSD
Attached some indicators that may be useful