Hello,
I would like to create a martingal bot, I made a correct script but, the bot doesn't renitialize its lot when it hits the take profit.
Specfication:
The bot must trade from 7am to 10pm.
Open only one position at a time
take profit at 50 pips, stop loss at 25 pips, must be modifiable.
If the position is closed at stop loss, it opens a new position in the opposite direction and the lot is doubled;
if the position is closed with a take profit, the bot opens a new position in the opposite direction and the lot is reset to the initial lot.
Example: The first position is long (buy), the initial lot is 0.01, the trade hits the stop loss, the bot opens a new trade but in a short position (sell), and the lot is multiplied by 2 so the next lot is 0.02, then the bot hits the take profit, so it renitialises the lot to 0.01 in the new long position (buy).
I'd like to have as inputs: trading time/ initial lot/ take profit/ stop loss
Additional option: If it's possible, the bot can analyse the tandance on the chart and open its first trade in that tandance. adapt the initial lot as the account grows.
the attached document is the first script of this bot (TX8)
reverse position is correct
entry time is correct
tp and sl input is correct
double and lot initialisation have a problem
and there are bugs, which is probably the fault of the distribution
Commandes similaires
Un stratégie très puissant qui me fait gagner beaucoup d'argent . Veillez rejoindre pour en bénéficier avec moi On est toujours ensemble .Le trading est bien facile avec des stratégies et le paramétrage des indicateurs de temps.On est toujours dedans depuis très longtemps
Bonjour j’ai besoin d’un expert pas un coder IA pour me coder un script qui lis les signaux dans un canal privé Telegram et les répliques dans mon canal personnel
J'utilise un indicateur de tendance sur différentes unités de temps. Je souhaite être prévenu (SMS, mail, ou autre à définir) lors d'inversions de tendance pour réagir - ou pas - de manière discrétionnaire
Spécifiez vos exigences de spécification ici point par point. Essayez de décrire vos besoins de manière brève et claire, afin que votre développeur potentiel soit en mesure d'évaluer correctement sa complexité et son coût, ainsi que le temps d'exécution requis. Une mauvaise description ou une description trop générique aura pour conséquence un manque d’intérêt pour votre commande, ou que vous passerez beaucoup de
import ccxt import pandas as pd import numpy as np import talib import time # Configuration exchange = ccxt.binance({ 'apiKey': 'VOTRE_API_KEY', 'secret': 'VOTRE_SECRET_KEY', }) # Paramètres de trading symbole = 'BTC/USDT' timeframe = '1h' montant = 100 # en USDT stop_loss = 0.98 # 2% de perte maximale take_profit = 1.03 # 3% de gain def recuperer_donnees(): ohlcv = exchange.fetch_ohlcv(symbole, timeframe
//+------------------------------------------------------------------+ //| M65 PRO ROBOT | //| Trend + RSI + Risk Management | //+------------------------------------------------------------------+ #property strict input double LotSize = 0.01; input int StopLoss = 100; // points input int TakeProfit = 200; // points input int RSI_Period = 14; int rsiHandle; int ema50Handle; int ema200Handle;
Objectif : validation du comportement , zéro stress 🧮 Gestion du risque MaxRiskPerDay = 2.0 % MaxTradesPerDay = 4 RiskPerTrade = 0.50 % MaxDailyLossHardStop = 2.0 % 📈 Trading Timeframe = M15 Symbols = EURUSD,GBPUSD AllowBuy = true AllowSell = true OneTradePerSymbol = true 📊 Indicateurs MACD_Fast = 12 MACD_Slow = 26 MACD_Signal = 9 Stoch_K = 14 Stoch_D = 3 Stoch_Slowing = 3 🛡️ Stops ATR_Period = 14