cBot: Simple Martingale Strategy

Created at 05 Feb 2025
cTrader Discord
TH

thithienen

Joined 05.02.2025

Status

Open


Budget

100.00 USD


Payment Method

via  Upwork

Job Description

Overview

I’m looking for an experienced cTrader/cAlgo developer to create a cBot implementing a simple Martingale strategy for trading XAUUSD (Gold).

Strategy Logic

Entry Order Placement

  • Take the current price and round it down to the nearest integer.
  • Example: If the current price is 2765.78, round it down to 2765.
  • Place a limit buy order at 2765 with 0.01 lot size.
  • Set Take Profit (TP) at entry price + 3 (i.e., 2768).

Martingale Sequence

  • If the first order is filled, place a new limit buy order at 3 points lower than the previous entry.
  • Example: If the first order was at 2765, the next order is placed at 2762.
  • The lot size for the new order follows a modified Martingale approach:
    • New lot size = (previous lot size × 2) + 0.01
  • Set Take Profit at entry price + 3.
  • Continue this process until price reverses and hits TP.

Order Cancellation & Restart

  • If price moves up and hits TP, cancel all pending orders and start the strategy from scratch.
  • Send notification through telegram or email.

Order Modification

  • If the initial limit buy order is not filled and price moves up, adjust the entry.
  • Example:
    • Initial order was at 2765, but price moves up to 2766.12.
    • The new rounded price is now 2766, which is higher than the old pending order at 2765.
    • Cancel or modify the pending order to match the new rounded price (2766).

Example Scenarios

Scenario 1: Price Drops and Hits TP

  • Price = 2765.78 → Rounded to 2765 → Place limit buy at 2765 (0.01 lot)
  • Price drops → Order gets filled → New limit buy placed at 2762 (0.03 lot)
  • Price moves up → Hits TP at 2768 → All pending orders canceled → Restart

Scenario 2: Price Moves Up Before Entry

  • Price = 2765.78 → Rounded to 2765 → Place limit buy at 2765
  • Price moves up to 2766.12 → Rounded price now 2766
  • Cancel/modify old order at 2765 → Adjust to 2766

Requirements

  • Strong experience in cTrader/cAlgo development
  • Ability to implement order modification logic
  • Clean and efficient coding practices

How to Apply

🚀 I work exclusively through Upwork. If you're interested, please drop your Upwork profile link, and I will send you an invite!

Looking forward to working with you!

Comments
Log in to add a comment.
MO
moseswaritimi1 · 2 months ago
I will be happy to assist you kindly contact me to see samples of my previous work and let's discuss further moseswaritimi1@gmail.com +2348147534869 telegram. Thanks
trUUng's avatar
trUUng · 4 months ago
I can meet what you need. Please take a look at my profile to see how my bot work for me!
7M
7MobileInc · 4 months ago
I created you robot. Contact me on whatsapp +5531988606191
JosephTradingbot's avatar
JosephTradingbot · 5 months ago
Hi, I can do this project for you. With several years of experience in programming, forex analysis and trading. Email: joseph.tradingbot@gmail.com Telegram: @iamjosepe
BU
BULLL · 5 months ago
Greetings! i'll help you with your project, i'll give you a good price and unlimited corrections, thank you! contact me on telegram @DOMMEFX
PanagiotisChar's avatar
PanagiotisChar · 5 months ago
Hi there, we can help you with your project. Feel free to reach out to us at development@clickalgo.com