ප්‍රමාණාත්මක උපාය මාර්ග සංවර්ධනය — අනුමානයේ සිට නිෂ්පාදනය දක්වා

ලාභදායී වෙළඳ උපාය මාර්ගයක් ගොඩනැගීමට අභිප්‍රේත හැඟීමට වඩා අවශ්‍ය වේ. පරීක්ෂණය කළ හැකි අනුමාන, දැඩි පසුපස පරීක්ෂණ සහ වක්‍ර ගැලපීම වළක්වා ගැනීම සඳහා ප්‍රවේශම් ප්‍රශස්තකරණය අවශ්‍ය වේ. මෙම මාර්ගෝපදේශය ඔබව ප්‍රමාණාත්මක උපාය මාර්ගයක් මුල් මූලධර්මවලින් ගොඩනැගීමට ගෙන යයි — Smart Money API යටතේ ඇල්ගොරිතම බලගන්වන එම ක්‍රමවේදයම.

මූලික මූලධර්මය: 95% වෙළෙන්දන් අසමත් වන්නේ ඔවුන් නියැදි දත්ත මත ප්‍රශස්තකරණය කරන බැවිනි. ඓතිහාසික දත්ත මත 200% ප්‍රතිලාභ ලබා දෙන උපාය මාර්ගයක් සජීවීව මුදල් අහිමි කරනු ඇත. මෙම උගුල වළක්වා ගැනීම ඉගෙන ගන්න.

අනුමාන අදියර

අසත්‍ය යැයි පෙන්විය හැකි තර්කයකින් ආරම්භ කරන්න

සෑම උපායාවලියක්ම ආරම්භ වන්නේ නිශ්චිත, පරීක්ෂා කළ හැකි කල්පිතයකින්. "බිට්කොයින් සමහර විට ඉහළ යයි" නොව "අරමුදල් අනුපාත ධනාත්මක වන විට සහ වහලා දිගු එකඟතාව 65% ඉක්මවන විට, ඊළඟ පැය 4 ක මොල්ලක් 56% සම්භාවිතාවයකින් ඉහළින් වසා දමයි."

හොඳ කල්පිත:

නරක කල්පිත:

ඔබේ වාසිය අර්ථ දක්වන්න

මොනවාද ඔබ දන්නවා පොලීල තැබුවේ නැති දේ මොනවාද? Smart Money API සඳහා, එය: "වාල් සම්මතය වෙනස් වන්නේ රිටේල් ප්‍රතිචාර දක්වන්නට පෙර පැය 2-4 කට පෙර. අපි ඉහළම 250 පසුම්බි තත්‍වයෙන් අධීක්ෂණය කළහොත්, අපට චලනයට පෙර යාමට හැකිය."

උපාය මාර්ග රාමුව

1. ඇතුල්වීමේ කොන්දේසි

ඔබ ඇතුල් වන්නේ කවදාද? පැහැදිලිව සඳහන් කරන්න:

Python — ඇතුල්වීමේ තර්කය
# උපායමාර්ගය: තල්මසුන් එකඟතාව + ව්යුත්පන්න අභිසාරීතාව
def should_enter_long(symbol, bar):
# කොන්දේසිය 1: තල්මසුන් එකඟතාව > 65% දිගු
whale_long_pct = get_whale_consensus(symbol)
cond_whale = whale_long_pct > 0.65
# කොන්දේසිය 2: අරමුදල් අනුපාතය ධනාත්මක සහ වැඩිවෙමින් පවතී
fr_current = get_funding_rate(symbol)
fr_previous = get_funding_rate(symbol, offset=1)
cond_fr = (fr_current > 0) and (fr_current > fr_previous)
# කොන්දේසිය 3: LSR > 1.25 (කෙටිවලට වඩා දිගු තිබීම)
lsr = get_long_short_ratio(symbol)
cond_lsr = lsr > 1.25
# කොන්දේසිය 4: මිල 50-දින MA ඉහලින් (ඉහල යන ප්‍රවණතාව)
ma_50 = get_sma(symbol, 50)
cond_trend = bar.close > ma_50
return cond_whale and cond_fr and cond_lsr and cond_trend

2. නික්මීමේ කොන්දේසි

ඔබ වසා දමන්නේ කවදාද? ලාභ ඉලක්ක සහ නතර කිරීම් අර්ථ දක්වන්න:

Python — Exit logic
def should_exit_long(entry_price, current_price, time_in_trade):
pnl_pct = (current_price - entry_price) / entry_price
# Take profit at +2%
if pnl_pct > 0.02:
return True, "profit_target"
# Stop loss at -1%
if pnl_pct < -0.01:
return True, "stop_loss"
# Time-based exit: close after 4 hours
if time_in_trade > timedelta(hours=4):
return True, "time_exit"
return False, None

3. Position Sizing

How much do you risk per trade? Use the Kelly Criterion or fixed fractional betting:

Python — Position sizing
def calculate_position_size(account_balance, win_rate, avg_win, avg_loss):
# Kelly Criterion: f* = (p*b - q) / b
# p = win rate, b = win/loss ratio, q = loss rate
p = win_rate
q = 1 - win_rate
b = avg_win / avg_loss
kelly_fraction = (p * b - q) / b
# Use 25% of Kelly to be conservative (avoid bankruptcy)
position_fraction = kelly_fraction * 0.25
risk_amount = account_balance * position_fraction
return risk_amount

Building a Backtester

Event-Driven Backtest Engine

Python — Backtest framework
class BacktestEngine:
def __init__(self, initial_capital=10000):
self.capital = initial_capital
self.trades = []
self.equity_curve = []
def run(self, data, strategy):
for i, bar in enumerate(data):
# Check exit conditions for open trades
for trade in self.trades:
should_close, reason = trade.check_exit(bar.close)
if should_close:
pnl = (bar.close - trade.entry_price) * trade.size
self.capital += pnl
self.trades.remove(trade)
# Check entry conditions
if strategy.should_enter(bar):
size = calculate_position_size(...)
trade = Trade(entry_price=bar.close, size=size)
self.trades.append(trade)
self.equity_curve.append(self.capital)
return self.calculate_metrics()

Key Backtesting Metrics

Avoiding Over-Optimization

The Overfitting Trap

If you tweak parameters on historical data until returns are 200%, you'll be disappointed live. Use strict out-of-sample testing:

Walk-forward validation: Optimize on 1 year of data, test on next 3 months. Then optimize on years 2-3, test on year 3Q1. Repeat across entire dataset. Report only out-of-sample results.

Parameter Sensitivity

Test multiple parameter combinations with a grid search, but penalize complexity:

Python — Grid search with walk-forward
def walk_forward_optimization(data, param_ranges):
results = []
train_window = 252 # 1 year of daily data
test_window = 63 # 3 months
for i in range(0, len(data) - train_window - test_window, test_window):
train_data = data[i:i+train_window]
test_data = data[i+train_window:i+train_window+test_window]
# Optimize on training data
best_params = None
best_return = -float('inf')
for params in param_combinations(param_ranges):
backtest_result = backtest(train_data, params)
if backtest_result.return_pct > best_return:
best_return = backtest_result.return_pct
best_params = params
# Test on unseen data
oos_result = backtest(test_data, best_params)
results.append({"is": best_return, "oos": oos_result.return_pct})
return results

Moving to Production

Paper Trading First

Before risking real capital, trade on paper (simulated) for 2-4 weeks. Your live strategy will underperform backtest by 5-15% due to slippage, latency, and execution. If paper trading matches backtest closely, you're ready.

Risk Management in Live Trading

Live trading is different. Set hard limits:

Integration with Smart Money API

Use our confirmation scores as a pre-filter or multiplier on your signals:

Python — API integration
import requests
def execute_with_confirmation(symbol, direction, signal_strength):
# Get Smart Money confirmation
response = requests.get(
f"https://api.smartmoneyapi.com/v1/confirm?symbol={symbol}&direction={direction}",
headers={"X-API-Key": API_KEY}
)
data = response.json()
# Apply size multiplier based on Smart Money confidence
if data["confidence"] == "ඉහළ":
position_size = base_size * 1.5
elif data["confidence"] == "මධ්යම":
position_size = base_size * 1.0
elif data["confidence"] == "අඩු":
position_size = base_size * 0.5
elif data["confidence"] == "වීටෝ":
return "SKIP" # වෙළඳාම නොකරන්න
# අවසාන ප්‍රමාණය සමඟ වෙළඳාම ක්‍රියාත්මක කරන්න
execute_order(symbol, direction, position_size)

Smart Money සංඥා සමඟ වඩා හොඳ උපායමාර්ග ගොඩනඟන්න

තල්මසුන් ගමන් ගමන, ව්යුත්පන්න බුද්ධිය සහ චේන් තුළ මිණුම් ඔබේ ප්‍රමාණාත්මක ආකෘතිවලට ඒකාබද්ධ කරන්න. Smart Money තහවුරු කිරීම එකතු කළ විට පසුපස පරීක්ෂණය කළ උපායමාර්ග 5-8% වැඩිදියුණු වේ.

නොමිලේ පසුපස පරීක්ෂණය ආරම්භ කරන්න →