Writing an #include function for the forum members that calculates the profit and loss in cash$

GeraldMann

Trader
Nov 5, 2024
1
0
7
36
Hello guys. There are thousands of people here like me that would appreciate you that if you are an experienced programmer, if you could write an #include function in mql5 language for us that would calculate the profit and loss in cash for us. It's an essential function for all the profitable EAs to trade based on risk, but the symbol points asap.

You can write the include function to work for the community members here, like this:

CurrentSymbol.ProfitPerPoint (meaning cents per every change in one price unit)

(And loss =) CurrentSymbol.LossPerPoint

And also regarding opened positions with definitive SL Level and TP Level:

Position(i).TpProfit (meaning gaining cash)

(And loss =) Position(i).SlLoss


Can you make it over weekend holidays?