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

Termos de Referência

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

Respondido

1
Desenvolvedor 1
Classificação
(224)
Projetos
398
34%
Arbitragem
53
36% / 40%
Expirado
144
36%
Carregado
2
Desenvolvedor 2
Classificação
(65)
Projetos
71
30%
Arbitragem
8
0% / 88%
Expirado
5
7%
Livre
Pedidos semelhantes
I'm looking for someone to help me implement the MetaQuotes web API in Laravel: - Create clients - Create users - Change passwords accounts - Create deposits and withdrawals I'm using a library, but it's only giving me problems
The future of the traders be a good traders and patient and humble person faithful loyalty to your job and last be a professional traders and helping a dream of us how to trade and etc,,,,,,,,,,,,,,,,,🤑
Firstly Indicator (1) or the first part \\ Draw a red line at the top of the zero candle _ M1 \\ Draw a blue line at the bottom of the zero _ M1 candle \\ Draw a red line at the top of the zero _ M2 candle \\ Draw a blue line at the bottom of the zero _ M2 candle \\ Draw a red line at the top of the zero candle _ M3 \\ Draw a blue line at the bottom of the zero _ M3 candle \\ Draw a red line at the top of the zero
I have a script completely up and running on MT5 and I want to convert it to work in NINJATRADER 8 LEAVE JOB PRICE, JOB RUN TIME, YEARS OF EXPERIENCE- tengo un script completamente listo y funcionando en mt5 y deseo convertilo para que funcione en NINJATRADER 8 DEJAR PRECIO DEL TRABAJO, TIEMPO DE EJECUCION DEL TRABAJO, AÑOS DE EXPERIENCIA-
100% Automated Trading Forex Robot powered by AI (Artificial intelligence) PLUG AND PLAY NB 100% Automated Trading Forex Robot powered by AI (Artificial intelligence) PLUG AND PLAY THE ROBOT MUST ANALYSIS ITSELF AND GIVE ACCURATE SIGNALS AND EXECUTE TRADES WITH THE HELP OF AI ( ARTIFICIAL INTELLIGENCE) FOR ALL THE KING PRO ROBOT VPN SHOULD BE RENTED FROM THE MAIN ORIGINAL COPY AND THERE SHOULD BE AN OPTION FOR THEM
I am looking for a developer who can convert my Pine script code to MQ5 code. The code is for a trading strategy that I would like to use on the MetaTrader 5 platform. The code needs to be converted accurately and efficiently, with all of the original functionality preserved. The developer should have experience with both Pine script and MQ5, and should be able to provide a high-quality conversion in a timely manner
Regards! Respected Madam I need an EA in Mql5 which can Buy at certain Increment of points like 100 then 50 then 50 then 25 then 25 then 25 then 25. Possibilty of Grid increase. Buys at certain fixed level if the the Price drops like 100 points down then again 100 points down then again 100 points down like this in a grid system, Grid size I will declare. Grid order systems with stop loss and Multiple Reorders if the
Blues of Joy 30+ USD
1.Lines to determine entries,use high and low strategy. 2.Arrows and symbols (NRTR)or Trailing stop to mark entry and exit points . 3.Pivot points to identify where future support and resistance levels might be,calculate previous levels . 4.Check available assets. 5.Use price action and combine it with Smart money concept strategy
Hello ! I’m searching for a developer able to make a simple website displaying my MT5 balance account and current positions in realtime. My broker is Deriv and it proposes API, i don’t know if it is possible with MT5 API. I already have a domain, hosting and server. Don’t hesitate if you are interested, I’ll give more informations

Informações sobre o projeto

Orçamento
40+ USD
IVA (21%): 8.4 USD
Total: 48.4 USD
Desenvolvedor
36 USD
Prazo
de 1 para 5 dias