Tradehook — Trading Automation Service
highAdvanced Scalping

APSAlgo

The APS Algorithm focuses on adaptive position sizing based on market volatility and account equity, combined with simple trend-following signals. The system adjusts position size dynamically to maintain consistent risk across varying market conditions.

TradingView Preview
See this algorithm in action on real charts
APSAlgo TradingView chart
Performance Metrics
Historical backtesting results
78.3%
Win Rate
3.36
Profit Factor
1.7%
Max Drawdown
$151
Avg Trade
Based on 695 trades

About This Algorithm

ADAPTIVE POSITION SIZING

Quick Facts:

  • Category: Position Management
  • Markets: All markets
  • Timeframes: All timeframes

Overview

The APS Algorithm focuses on adaptive position sizing based on market volatility and account equity, combined with simple trend-following signals. The system adjusts position size dynamically to maintain consistent risk across varying market conditions.

When volatility increases, position size decreases. When volatility decreases, position size can increase. This maintains target risk per trade.


How It Works

VOLATILITY MEASUREMENT Track current vs historical volatility:

  • Current ATR vs Average ATR
    • Volatility ratio for scaling

POSITION SIZING Calculate appropriate size:

  • Base position from account risk %
    • Adjust by volatility ratio
    • Higher volatility = smaller position

SIGNAL GENERATION Simple trend-following for entries:

  • EMA crossover for direction
    • Volatility filter for trade selection
    • Enter when conditions align

Key Parameters

RISK:

  • accountRiskPct (1.0): Risk per trade as account %
    • maxPositionPct (5.0): Maximum position size

VOLATILITY:

  • atrPeriod (14): ATR calculation period
    • avgATRPeriod (50): Average ATR for comparison
    • volAdjustment (true): Enable volatility scaling

SIGNALS:

  • fastEMA (10): Fast EMA for crossover
    • slowEMA (30): Slow EMA for crossover

Best Use Cases

✅ RISK-ADJUSTED position sizing ✅ VOLATILITY-ADAPTIVE trading ✅ CONSISTENT RISK across market conditions ✅ DRAWDOWN CONTROL through sizing

Customer Reviews

No reviews yet. Be the first to review this algorithm!
Advanced Scalping
Requires Advanced Scalping Plan

Subscribe to Advanced Scalping or higher to access

Subscription Access

Get access to this indicator/strategy on TradingView through our invite-only system. Your TradingView account will be granted access.

One-Time Purchase

Own the complete Pine Script source code forever. Modify, customize, and use it on your own TradingView account.

$2,250
Subscribe to any tier to unlock one-time purchases

What you get with source code:

  • Complete Pine Script v5 source code
  • Lifetime ownership - no recurring fees
  • Full customization rights
  • Use on your own TradingView account
PlatformTradingView
Subscription AccessTradingView Invite
One-Time PurchaseSource Code
LicensePersonal Use

We Value Your Privacy

We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Read our Privacy Policy for more information.