AFL project to find out qty to compensate for the loss of previous trades

Tarea técnica

Objective : to level the quantity required to compensate for the loss of previous trades evenly

initialqty=iqty=10;
profittarget=pt=.1;
stoploss==sl.1;
brokerage=.01;
profitmargin=pt-brokerage;
lossmargin=sl+brokerage;
lotsize=1000;

if trade hits stoploss
loss count should be incremented
loss should be calcualted and added to previous total loss to get the new total loss
find out the total qty required to compensate for loss.
then devide this by loss count.

totalloss=last value(loss)+(last value(qty)*lot size * loss margin)

newqty = iqty+(total loss/(profit margin*10000*loss count))

qty=newqty; this qty should be same until the loss count value becomes zero

if trade is open till 14:45
consider selling or covering the trade with the close value of last candle or open value the running candle
loss should be calcualted and added to previous total loss to get the new total loss
find out the total qty required to compensate for loss.
then devide this by loss count.
(here we are not changing the loss or profit count)

if trade hits profit while loss count >0
loss count should be decremented by 1 until loss count is equal to zero
profit count should be incremented by 1
total loss = lastvalue(total loss) - profit of the last trade

if loss count increases before reaching zero, recalculate the total loss and the new qty to compnesate.
total loss = lastvalue(total loss) - loss of the last trade

new qty = iqty+(total loss/(profit margin*10000*loss count))

when loss count reaches zero
reset below variables
total loss = 0
profit count =0
qty = iqty

profit count should be zero even if a trade hits profit unless loss count > 0

Han respondido

1
Desarrollador 1
Evaluación
(295)
Proyectos
525
35%
Arbitraje
63
33% / 35%
Caducado
189
36%
Trabajando
2
Desarrollador 2
Evaluación
(65)
Proyectos
71
30%
Arbitraje
8
0% / 88%
Caducado
5
7%
Libre
Solicitudes similares
Here's a detailed description of an Expert Advisor (EA) based on Heikin Ashi candlesticks: EA Overview The EA will implement a trading strategy based on Heikin Ashi candlesticks, identifying trends and generating trading signals accordingly. Indicator Requirements 1. *Heikin Ashi Indicator*: The EA will use a Heikin Ashi indicator to calculate Heikin Ashi candlesticks. 2. *Customizable Parameters*: The Heikin Ashi
PLEASE READ: IF YOU ARE NOT GOING TO ACCEPT THE BELOW THEN PLEASE MOVE ON TO THE NEXT CLIENT. I NEED SOMEONE WHO WILL DO THE WORK FIRST AND THEN CREATE A BUILT-IN DEMO INDI AS PER SPECIFICATIONS BELOW WHICH HAS AN EXPIRY (A DAY OR 2) SO THAT I TEST THE INDI BEFORE WE CREATE THE ORDER. I HAVE HAD PEOPLE WHO PRESSURE ME TO CREATE THE ORDER AND THEN THEY END UP DEVELOPING A FAULTY INDICATOR. AND I HAVE GIVEN THEM THE
HELLO EVERYONE I NEED AN INDICATOTRE ON STOCH WHICH CAN GIVE ME ALERT WHEN DIVERGENCE AND CONVERGENCE HAPPNING.AND MAKE SURE I CAN CHANGE THE STOCH PERAMETERS IN SETTINGS. PLEASE CONTACT WHO KNOWS ABOUT DIVERGENCE AND CONVERGENCE. THANKS
PLEASE READ: IF YOU ARE NOT GOING TO ACCEPT THE BELOW THEN PLEASE MOVE ON TO THE NEXT CLIENT. I NEED SOMEONE WHO WILL DO THE WORK FIRST AND THEN CREATE A BUILT-IN DEMO INDI AS PER SPECIFICATIONS BELOW WHICH HAS AN EXPIRY (A DAY OR 2) SO THAT I TEST THE INDI BEFORE WE CREATE THE ORDER. I HAVE HAD PEOPLE WHO PRESSURE ME TO CREATE THE ORDER AND THEN THEY END UP DEVELOPING A FAULTY INDICATOR. AND I HAVE GIVEN THEM THE
Requirements for SMC Trading EA Platform : MetaTrader 5 (MT5) Strategy : Smart Money Concepts (SMC) Analysis Timeframe : H1 (higher timeframe analysis) Execution Timeframe : M1 (entry and execution) Core Features : Detect Order Blocks Identify Liquidity Zones Detect Fair Value Gaps (FVGs) Break of Structure (BOS) & Change of Character (CHoCH) detection Mark Equal Highs and Lows Trading Functions : Dynamic lot sizing
Ethereum Trading EA 30 - 35 USD
I am looking for an Expert Advisor (EA) that performs well on Ethereum. Ideally, it should be an HFT-style EA; a swing trading EA is also acceptable. I require the full MQL5 source code — the EA must be written entirely in MQL5 (no external languages such as Python). Performance target: Minimum 70% win rate with a 1:1 risk:reward. Input variables required: Stop Levels: Stop Loss (SL) and Take Profit (TP) Trailing
Developing multi platform based copytrading solution Need a develper who can enahance funtionality of our existing MVP EAs for master and slave traders EAs are connected with REST API and Socket Server Master EA can broadcast trading signals from MT5 terminal as he performs actual trades on the platform. those trade could be using any bot or alogorithem or manula that is not in scope but realtime broadcast to server
Here's a detailed description of an Expert Advisor (EA) based on a candlestick-dependent strategy: Strategy Overview The EA will implement a trading strategy based on candlestick patterns, opening trades when a bullish candle is detected and avoiding trades when a bearish candle is detected. Key Features 1. *Candlestick Pattern Identification*: The EA will identify bullish and bearish candles based on their open and
there is spesific indicator in trading view , i wanna to have this indivator in my mql5 so all we need to do is to converting this code to mql5 indicator thats it code script is available and indicator name is liquidity ditection from Tflb //@version=5 indicator("Liquidity Finder Alerts (Wrapper)", overlay=true) // ایمپورت کتابخونه اصلی TFlab import TFlab/LiquidityFinderLibrary/1 as Liq // ورودی‌ها (مثل اندیکاتور
How can we create an EA including a LLM like deepseek or chatgpt API? My main idea is the LLM makes the market analysis, a threshold on its confidence defines the risk per % it will use and also a dynamic valuation of the prediction/analysis should close trades earlier or later than the TP. Did you already build EAs based on LLMs

Información sobre el proyecto

Presupuesto
40+ USD
IVA (21%): 8.4 USD
Total: 48.4 USD
Para el ejecutor
36 USD
Plazo límite de ejecución
de 1 a 5 día(s)