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
(224)
Proyectos
398
34%
Arbitraje
53
36% / 40%
Caducado
144
36%
Trabajando
2
Desarrollador 2
Evaluación
(65)
Proyectos
71
30%
Arbitraje
8
0% / 88%
Caducado
5
7%
Libre
Solicitudes similares
Hi there Here is a video of the logic: its based on market structure and swings using validated highs and lows based on candle closure. Just in case you would like to take a look at the code/indicator here is the link: https://youtu.be/igj0OaQoM7o?si=7nigL8OU2Nt1Zxkx Let me know if you can help
Create MT5 deriv EA 30 - 35 USD
Hello . Am in need of a developer that can Create deriv EA .I need to create a Deriv Bot with Martingale 1 min candles 30 martingale plus I can change the amount of martigale with the option of 1 min up or down . Kindly bid and let discuss about the project
"Hello, I'm looking for a developer who can connect tradingview signal to cTrader. If you have experience with API integration and are familiar with both cTrader and TradingView, please reach out. This project involves connecting the two platforms to enable detect signals and trigger cTrader . Looking forward to collaborating with someone who can help me with the project Thanks
MT4 TRADE COPIER EA 30 - 35 USD
Hello , how are you doing? Am in need of MT4 developer that can help me to develop trade copier EA for MT4 account Kindly bid for the project if it is what you can do for me thanks
Nt8 30+ USD
I trade in NT8 and would like to code an Elliott wave measurment tool, which is very easy because I have the major Script for that.We need only to add some aspects into it. If you are interested,if you can do this do well to bid on it
I need you to convert this tradingview indicator (PineScript) to MT5. The indicator need to work in any time frame and as the proposed script. It need to plot the ATR bands (as you can see in the attached image) and work as the proposed routine of ATR bands, when price close above or below the bands, the bars will change color (as you can see in the script and the image attached). Instead of sending alerts of buying
"Seeking an adept developer to help realize my custom NT8 strategy. Your expertise is integral to achieving success in this project. Are you interested in teaming up for a productive collaboration? Let's discuss the details together. Thank you!"
"Looking for a proficient developer to bring my custom NT8 strategy to life. Your expertise is pivotal for the project's success. Interested in joining forces for a fruitful collaboration? Let's delve into the specifics together. Appreciate it!"
"Seeking a skilled developer to code my custom NT8 strategy. Your expertise is crucial for this project's success. If interested, let's discuss further details and ensure a mutually beneficial collaboration. Thank you!"
ICT, SMC, PAMETNI NOVAC KONCEPTI, PAMETNI NOVAC, koncept pametnog novca, podrška i otpor, analiza trenda, radnja cijena, tržišna struktura, blokovi naloga, BOS/CHoCH, blokovi razbijača , pomak momentuma, zona ponude i potražnje/blokovi naloga , jaka neravnoteža, HH/LL/HL/LH, jaz fer vrijednosti, FVG, Zone premije i popusta , Fibonacci retracement, OTE, Likvidnost na strani kupnje, Likvidnost na strani prodaje

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)