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

MQL4 Experts C++ PHP Forex Product Design

Specification

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

Responded

1
Developer 1
Rating
(255)
Projects
457
35%
Arbitration
57
37% / 37%
Overdue
166
36%
Loaded
2
Developer 2
Rating
(65)
Projects
71
30%
Arbitration
8
0% / 88%
Overdue
5
7%
Free
Similar orders
Hello Here Everyone, I need an expert to help me create a tradingview indicator that works exactly according to my requirements, Even though i will attach a file there review it and let me know if you could do it and we can talk about the price as well
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Best regards ridynaty
I want to make AI based on Attached Picture Swing High low. If you have experience can share demo first. Stop loss, take profit, trailing , break even ,DD etc. also amiable
I need an expert to help me convert chopzone traingview pinescript to mt4, I need an expert to get it done for me on between 1 to 2 days i hope this will be done by then, i will attach the file and my budget is $30 as of minimum here
I'm planning on building/creating an mt4/5 trading indicator that use a break and retest strategy I will share a link for the idea strategy, Kindly message me to send you the link, I can't send it here
here we will create market website, where we will display all our assets in graphical form, we will pull data from Metatrader platform and update the website in real time. I need something like this https://NgnRates.com but on our site we will display our own rate based on calculations performed on MT5 source
Hello i'm look for someone to create an MT4 Expert Advisor Universal EA very simple 1 MQL4 that will have the following features:- Magic Number: to identify the chart Custom Indicator: ( here will be the name of the custom indicator we will use that will generate buy or Sell signal ) Buy Buffer: ( this is the buffer that the custom indicator use for Buy signals )
Nt8 30+ USD
i'm searching a way to define which IP address is using by NT8 cause i'm using a multiple IPs machine (for my daily job) and I'd need to have a further confirmation that I'm using the correct IP address with NT8 could anyone explain explain me how to do it for a fee
I need help with creating a website traders chatroom, it must show traders online,offline,inactive. the chatroom top section must show four clocks with different times and time scale like this.. the chatroom must have a history data of up to 10days, then longer history must be deleted automatically. if you have better chatroom please say your recommendations

Project information

Budget
40+ USD
VAT (21%): 8.4 USD
Total: 48.4 USD
For the developer
36 USD
Deadline
from 1 to 5 day(s)