Simple grid bot improve manual trading with this need to work for c trader: cTrader Algo

Tarea técnica

Grid Trading Bot - Corrected Summary with Price Movement %

Basic Bot Logic

The bot creates a grid of limit orders within a specified price range with equal lot sizes and progressively increasing upward price movement requirements for profit.

Initial Setup
Parameters you set:

  • Stop Loss price (e.g., 1900) - where the loss will occur
  • Maximum loss (e.g., €1000) - how much money you're willing to lose
  • Price range for positions (e.g., 1950-1999) - where limit orders are placed
  • Number of positions (e.g., 50 positions)
  • Initial Price Movement % (e.g., 0.01%) - by what % the price must rise for the first TP

How the Bot Calculates and Places Orders

Step 1: Price Distribution

  • Bot divides the range 1950-1999 into 50 equal parts
  • First position at 1950, last at 1999
  • Each position is spaced approximately 1% price difference apart

Step 2: Lot Size Calculation (Equal for All)
Bot calculates:

  • Maximum loss per position: €1000 ÷ 50 positions = €20 per position
  • Worst case scenario: Position closest to SL (at 1950 = 50 points to SL 1900)
  • Lot size: Based on €20 loss over 50 points, determines lot size
  • Result: All positions have equal lot size

Step 3: Progressively Increasing Price Movement % for Take Profit
Bot calculates the increase:

  • IMPORTANT: Lower positions need HIGHER % movement for TP
  • Price Movement increase: For each lower position, required price movement increases by 0.01%

Take Profit distribution:

  • Position 1 (entry 1950): TP when price rises by +0.50% = 1959.75 (highest)
  • Position 25 (entry 1975): TP when price rises by +0.25% = 1979.938
  • Position 50 (entry 1999): TP when price rises by +0.01% = 1999.1999 (lowest)

Operation During Trading

When price moves down (1950-1999):

  • Price hits position at 1999 → limit order executed (needs only +0.01% movement for TP)
  • If price goes lower → hits position at 1975 (needs +0.25% movement for TP)
  • If goes even lower → hits position at 1950 (needs +0.50% movement for TP)

Scenario 1: Price reverses upward

  • Position at 1999 reaches TP with small movement (+0.01% = 1999.1999)
  • Position at 1975 needs larger movement (+0.25% = 1979.938)
  • Position at 1950 needs largest movement (+0.50% = 1959.75)
  • Result: Higher positions close faster with profit

Scenario 2: Price goes to Stop Loss (1900)

  • All open positions close with loss
  • Total loss = maximum €1000
  • Each position loses maximum €20

Practical Operation Example

Your settings:

  • 50 positions between 1950-1999 (Gold)
  • Stop loss at 1900
  • Maximum loss €1000
  • Initial price movement 0.01%

Bot places:

  • Position 1: Limit at 1950, lot 0.X, TP at 1959.75 (+0.50%), SL at 1900
  • Position 25: Limit at 1975, lot 0.X, TP at 1979.938 (+0.25%), SL at 1900
  • Position 50: Limit at 1999, lot 0.X, TP at 1999.1999 (+0.01%), SL at 1900

System Logic:

  • Lower positions (bought cheap) need higher % movement for profit
  • Higher positions (bought expensive) need smaller % movement for profit
  • This creates a system where positions bought closer to current price close faster

Important Addition: Order Management
The bot calculates all positions but doesn't open all limit orders simultaneously. Instead, it opens only 10 limit orders at a time and monitors price movement to avoid having too many orders in the market. As orders get filled or price moves, the bot dynamically places additional orders according to the predetermined grid strategy.

12:10 AM

Han respondido

1
Desarrollador 1
Evaluación
(9)
Proyectos
12
8%
Arbitraje
3
33% / 67%
Caducado
1
8%
Libre
2
Desarrollador 2
Evaluación
(4)
Proyectos
7
0%
Arbitraje
3
33% / 33%
Caducado
3
43%
Trabaja
3
Desarrollador 3
Evaluación
(4)
Proyectos
5
20%
Arbitraje
1
100% / 0%
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
5
Desarrollador 5
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(3)
Proyectos
1
0%
Arbitraje
5
0% / 100%
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(127)
Proyectos
135
38%
Arbitraje
3
33% / 33%
Caducado
1
1%
Trabajando
8
Desarrollador 8
Evaluación
(2)
Proyectos
2
50%
Arbitraje
0
Caducado
0
Trabaja
Ha publicado: 2 artículos
9
Desarrollador 9
Evaluación
(295)
Proyectos
472
40%
Arbitraje
102
40% / 24%
Caducado
78
17%
Ocupado
Ha publicado: 2 ejemplos
10
Desarrollador 10
Evaluación
(159)
Proyectos
284
35%
Arbitraje
18
22% / 61%
Caducado
42
15%
Trabajando
11
Desarrollador 11
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
13
Desarrollador 13
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
Trade settings: --------------------------------- fixed lot size ….. 0.0 Buy /Sell distance market order…. 0.0 - 700.0 points Buy / Sell distance pending order Entry---- 0.0 - 700.0 points Max Trade------ 10.0 Min spread...… 0.0 points Max spread..... 3000.0 points Daily profit percentage ….. 0.0 - 100 % Global Stoploss Percentage----- 0.0 - 100 % Max Daily loss Percentage ------0.0 - 100 % Stop level = 0.0 point
Hi , I have some indicators that I want set up on my TV chart and want to create one chart for some and another chart for some others. Plus I want to set up the brackets orders so I can trade from the chart. I have these set up somewhat but need it cleaned up and the way I want them. how much would something like this cost to do? I'm in California and would like you to show me so I can learn to do this when I want to
Apply with a keen sense of responsibility . Copy the code . Both of my expert has sufficient materials . Its a simple winning strategy , therefore please be ahead of time . Code BLUE . Changing The Strategy According to what i think is correct
I would love to see most of my trades going well being in profits! & keep consistent trading without having to blow any accounts be able to identify right trades and have good trading strategy
Yash Agrawal 30+ USD
// Simple EMA Bot input int FastEMA = 9; input int SlowEMA = 21; void OnTick() { double fast = iMA(NULL,0,FastEMA,0,MODE_EMA,PRICE_CLOSE,0); double slow = iMA(NULL,0,SlowEMA,0,MODE_EMA,PRICE_CLOSE,0); if(fast > slow) { if(PositionsTotal()==0) OrderSend(Symbol(),OP_BUY,0.01,Ask,10,0,0); } if(fast < slow) { if(PositionsTotal()==0) OrderSend(Symbol(),OP_SELL,0.01,Bid,10,0,0); } }
Gold robot Ga1 30 - 200 USD
mport pandas as pd import numpy as np def detecter_tendance(data): # Code pour détecter la tendance pass def identifier_niveaux(data): # Code pour identifier les niveaux de support et de résistance pass def calculer_stop_loss(tendance, support, resistance): # Code pour calculer les stop loss pass def calculer_profils(tendance, support, resistance): # Code pour calculer les profils mport pandas as pd
Martingale Strategy 50 - 70 USD
I need a gambling bot that implements the Martingale Strategy for betting on roulette. It will be used on platforms like Betcity and Unibet to manage bets effectively. Scope of work - Develop a bot that implements the Martingale Strategy for roulette. - Ensure compatibility with Betcity and Unibet platforms. - Include functionalities for adjusting bet size and managing losses. - Integrate platform-specific features
Dear Developers, I am seeking a professional developer to build an institutional-grade automated trading system that operates exclusively using pending orders, with advanced and fully customizable trade management logic. This is not a basic Expert Advisor. The goal is to create a structured, intelligent, and long-term trading system with clean architecture and professional execution standards. Project Requirements
Hello there Hpe you are doing good I am in search of a pine script expert developer who can build strategy in apudFlow in pinescript. Kinldy bid on this project if you can do this
I need a scalping-specific logic MT5 trading bot with a Donchian-channel–based dynamic stop-loss and take-profit system, applies RSI volatility filtering to avoid low-quality setups, and allows asset-specific adjustable parameters for fine-tuning performance Trading details: - Symbol: Any Forex EUR/USD - Platform: MT5 - Strategy type: Scalping (fast trades) - Timeframes: 5sec/ M1 / M5 - Fixed Stop Loss and Take

Información sobre el proyecto

Presupuesto
30+ USD