🔬
Share (stock) CFDs Trading Bot
  • What is the XTsunami Share (stock) CFD trading bot?
  • Guides
    • ⚠️IMPORTANT - First understand the risks!
    • 🔑Getting Started
    • 👨‍💻Configuring the XTsunami software
    • 🌏Buying an XTTP Domain Name
    • 🪙XTsunami subscription payment and XTTP domain name setting
    • Share (stock) CFD Trading Bot Configuration
      • Fundamental Elements
      • Additional Functionality
      • Sample Settings
      • DCA Calculation
      • Manual Open Position
  • Fundamentals
    • Important links
    • Network Time Synchronisation
Powered by GitBook
On this page
  1. Guides
  2. Share (stock) CFD Trading Bot Configuration

DCA Calculation

DCA formulas

% Unrealized PnL = UPNL in % Position Size = PS 1st input value = A in % 2nd input value = B in %

  • DCA: New position size: PS+ (B * PS) new UPNL = UPNL * PS/ (PS+ (B * PS)) * 100

  • Reverse DCA: New position size: PS- (B * PS) % UPNL is same

  • A-DCA: New position size: PS* (100 - B) + PS* B * (100 + UPNL) new UPNL = PS* (100 - B) * B / (PS* (100 - B) + PS* B * (100 + UPNL))

The above calculations exclude the exchange fees and the price discrepancy of market transactions at the trade execution time. Trigger conditions: if UPNL < 0 the condition needs to match (UPNL <= A) if UPNL > 0 the condition needs to match (A <= UPNL)

PreviousSample SettingsNextManual Open Position

Last updated 2 years ago