Experts: Forex Calculators - page 3

 

Update 31 Dec, 2022

Forex Calculators v.2.60

Fix to handle situations where the terminal (broker) has no direct or indirect exchange rate for the profit/account currency pair.  

Thanks Sabino Martiradonna for the code to calculate the cross rate as:

(profit/account) rate =  (profit/USD) rate * (USD/account) rate

 

Update 2 Jan, 2023

Forex Calculators v.2.61

Accelerated the GetSymbolByCurrencies() function by caching all the forex currency pairs available on the terminal during the first run, in order to speed up further (or repetitive) search operations.

 

Update 3 Jan, 2023

Forex Calculators v.2.66

Fixed automatic minimization of the calculator's dialog box on chart change.

Fixed display colors of result values. Now, green color means a good value and red means a bad one.

Added an option to calculate a position size using the account equity.
 

Update 7 Jan, 2023

Forex Calculators v.2.70

Added an optional boolean parameter isProfit to the mTickValue() function, to control the return value. By default, the function returns the SYMBOL_TRADE_TICK_VALUE_PROFIT value of the symbol. If isProfit is false, it returns the SYMBOL_TRADE_TICK_VALUE_LOSS.
// Calculate tick value for a profitable or losing position.
double  mTickValue(
   string pSymbol = NULL,   // symbol name
   bool isProfit = true     // indicates whether a position is profitable or losing 
   );
 

Update 21 Jan, 2023

Forex Calculators v.2.75

Adjust position volume to the account free margin, considering opposite open positions on the same symbol - the hedged margin.

Removed the "Tradable lots" checkbox due to incompatibility with the new position size calculation method.
 
Update 4 June, 2023

Forex Calculators v.2.81

Added "Switch money" checkbox to allow calculation of position size based on risk money instead of risk percent, %.

 

Update 23 Sept, 2023

Forex Calculators v.2.82

Fixed issue of wrong calculation of tick values on some indices.

 

Update 27 Sept, 2023

Forex Calculators v.2.83

Added automatic restore of the previous dialog's position on the chart upon program launch, timeframe switch or terminal restart.

 

Hello Amrali,

I would ask you for a small variation about "Profit calculator" dialog, I don't think it's complicated for you.

The way I think, the stop/profit points are the first elements to decide, and then conseguently calculate the "close price". Is it possible to make the "P/L Points" field editable, and consequently calculate the read-only "Close Price" field? 

It would be great if the "Open Price" field also changed depending on the current price change.

What do you say ? Thanks for the attention.
Sincerely, Sabino.

 
Thanks for this great libraries, so generous from your part, it resumes a one month of research