present
Sign up and get $50 off your first purchase
50
Profit factor
0.1%
Max drawdown
1
Sales
177
Free installs

Description

Description :

HARMONIC OSCILLATOR — A Mathematical Approach to Algorithmic Gold Trading

The Harmonic Oscillator trading bot is an algorithmic trading system built around a mathematical model inspired by the differential equation of a harmonic oscillator. It applies oscillator-based principles to market price action in an attempt to identify directional movements, evaluate price dynamics, and anticipate potential trend changes before placing trades.

Unlike strategies that rely solely on conventional technical indicators, this approach models price movements as dynamic behavior influenced by directional momentum, oscillation, and deviations from an estimated equilibrium level. By analyzing these characteristics, the system aims to identify potential bullish and bearish trading opportunities in the gold market (XAUUSD).

Key Features :

  • Mathematical Market Modeling: Uses a harmonic oscillator-inspired equation to interpret price behavior and market dynamics.
  • Directional Trend Analysis: Evaluates price movement to identify potential bullish and bearish market conditions.
  • Price Action Recognition: Analyzes oscillatory behavior and changes in price momentum to identify possible trading setups.
  • Automated Trade Execution: Designed to generate trading decisions and execute orders automatically according to predefined mathematical conditions.
  • Dynamic Market Assessment: Aims to adapt its trading decisions to changing price behavior rather than relying exclusively on fixed indicator thresholds.
  • Gold Market Specialization: Developed for algorithmic trading on XAUUSD, where price movements can be rapid and market volatility can create both opportunities and risks.

Trading Concept :

The core concept behind the Harmonic Oscillator model is to represent selected aspects of price movement using a mathematical framework inspired by oscillatory systems. The model evaluates changes in price relative to an estimated equilibrium, together with the direction and strength of price movement, to identify potential continuation or reversal signals.

Based on these calculations, the bot seeks to determine whether market conditions favor a potential BUY or SELL opportunity before submitting an order. The objective is to develop a systematic and consistent trading process that reduces reliance on subjective decision-making.

Designed for Algorithmic Trading :

The Harmonic Oscillator is designed for traders interested in mathematical modeling, automated execution, and systematic analysis of the gold market. Its effectiveness depends on the specific equation implemented, parameter calibration, execution conditions, transaction costs, and market regime.

The strategy should be evaluated through historical backtesting and forward testing on a demo account before being used with real capital. No trading strategy can guarantee profits or accurately predict every market movement.

Period of backtesting : from 01-10-2026 to 06-11-2026


Main parameters :

  • Relevent Terminal Company : Spotware.
  • Currency pair : XAUUSD.
  • Timeframe : Minute (M1).
  • Angle Ema 50 : 45.
  • Angle Ema 200 : 20.
  • Scaled Ema 10-20 : 0.7.
  • Scaled Ema 50-20 : 1.3.
  • Dist. Ema 200-10 : 45.
  • Dist. Ema 50-20 : 0.1.
  • Dist. Ema 200-50 : 0.1.
  • Threshold : 0,000005.
  • Enable Martingale Mode : true/false.
  • Enable Target Acceleration : true/false.
  • Fixed Martingale Multiplier : 2 (default).
  • Factor U (Risk/capital weight) : 0.1 (default).
  • Max Martingale Positions : 3 (default).
  • Base Volume (Lots) : 0,01 or up.
  • Stop Loss : 0
  • Take Profit : 20.
  • Moving Average Type : Exponential
  • BETA : 0,001
  • OMEGA : 0,05
  • Buy Number Position : 1.
  • Sell Number Position : 1.
  • Speed (Pips) : 17.1.
  • Strict mode : true.
  • Activate Loss Limit : true.
  • Loss Limit : 25 USD (lot/0.01 + Margin of security)
  • Daily Net Profit Target : 250 USD.
  • TP Tolerance (Pips) : 2
  • Retry Interval (Second) : 1.


Summary

AI summary
The Gold vs US Dollar Trading Bot is an algorithmic trading system designed for the XAUUSD currency pair on the Spotware cTrader platform. It employs a harmonic oscillator differential equation model to anticipate price trend direction before placing orders, focusing on minute (M1) timeframe scalping. The bot supports brokers including IC Markets, Deriv, Pepperstone, and FP Markets.

Key features include fixed lot sizing starting at 0.01, exponential moving average for trend analysis, and configurable parameters such as slope threshold, beta (0.001), and omega (0.05). It manages risk with stop loss and take profit settings, where take profit can be set to zero for live or demo trading to accommodate large profit levels. The bot maintains low daily drawdown, under 1.5%, and is suitable for prop firm evaluations across all account sizes.

It can hold up to three buy and three sell positions simultaneously, with a maximum of 100 simultaneous positions overall. The strategy is trend-based with medium trade frequency and uses market orders. Backtesting was conducted from August 1 to September 9, 2026, with a leverage of 100, showing a profit factor of 2.38 and a recommended minimum balance of $200. Risk per trade is set at 20%, with a maximum balance drawdown of 2.68% and daily drawdown limit of 0.5%.
Trading profile
Trading style
Scalping
Strategy type
Trend
Analysis type
Algorithmic
Technical
Trade frequency
Medium
Min recommended balance
$100
Risk per trade
20%
Chart period
1 minute
Backtesting leverage
1:1000
Daily drawdown limit
0.02%
Prop firm rule fit
—
Risk management
Risk model
Fixed lot
Dynamic
Supported order types
Market
Max quantity (lots)
100
Supported risk controls
Stop loss
Take profit

Discussion

Customer reviews

4.2
Reviews: 5
5
20 %
4
80 %
3
0 %
2
0 %
1
0 %
Customer reviews
October 25, 2026
Adjustable slope, beta and omega give the gold M1 oscillator a defined configuration alongside its EMA reference, but fixed lot sizing is not an automatic account risk budget and the listed drawdown needs supporting evidence.
October 22, 2026
The XAUUSD M1 oscillator has concrete slope, beta and omega settings alongside its EMA reference. Fixed lot sizing and the need to substantiate the small listed drawdown keep the mathematical terminology from being mistaken for evidence of conservative account risk.
October 19, 2026
the oscillator parameters are adjustable while volume stays under fixed lot control. A useful distinction for configuring the XAUUSD M1 model and its EMA reference. It offers model flexibility, but not automatic allocation of an account risk budget.
October 11, 2026
A harmonic oscillator with an EMA reference makes this a distinct gold M1 configuration. The adjustable model inputs provide some room to explore its behaviour. Order volume is fixed lot rather than an automatic risk percentage, which limits what the sizing handles.
September 18, 2026
Gold vs US Dollar Trading Bot delivered +5.96% on XAUUSD M1 with PF 2.50 and only 0.56% max equity drawdown across 1,002 trades. Both directions were profitable, with no grid or martingale behavior observed. Execution was stable, but the tested setup uses no hard Stop Loss and relies on algorithmic exits, making extreme-event risk the main caveat.

FAQ

TP Manager
Stop Loss (SL) Manager
Low Drawdown
SL Manager
Take Profit (TP) Manager
Moving Average
Products available through cTrader Store, including trading bots, indicators and plugins, are provided by third-party developers and made available for informational and technical access purposes only. cTrader Store is not a broker and does not provide investment advice, personal recommendations or any guarantee of future performance.

Price

1
Sales
177
Free installs