Experts: Forex Calculators

nail sertoglu  
Thx for the codes; they will help to FX People :) and coders
amrali  
nail sertoglu:
Thx for the codes; they will help to FX People :) and coders

Thanks

Marcin Rutkowski  

ENUM_CustometOpinion CodeBase::analiseArticle(int articleID);


if(CodeBase.analiseArticle(333365) == enum_Simple&Awesome)

        {

           mql5User.AddNewComment("Awesome Article :)");

        }


ps.

Simple and Awesome. This will help many new coders.

amrali  
Thanks[100];
MOHAMMAD AFNAN KHAN  
My metatrading updation and investing is not working mode please it is verify modification.
Keith Watford  
MOHAMMAD AFNAN KHAN:
My metatrading updation and investing is not working mode please it is verify modification.

Your post is nonsense.

Stephan Grobler  

Thank you for these very useful calculators. It is awesome tools!

Is it possible to set it so that it does not minimize automatically. It must stay open until I close it.

kzh125  
Hello, I get wrong result for "HongKong50": Hong Kong 50 Spot Index CFD


here is the information of the symbol:


Digits: 2 Point: 0.01 TickValue: 0.01 TickValueProfit: 0.01 TickValueLoss: 0.01 TickSize: 0.01 ContractSize: 1.0 LotsMin: 0.01 LotsMax: 100.0 LotsStep: 0.01 LotsLimit: 0.0 CurrencyBase: HKD CurrencyProfit: HKD CurrencyMargin: HKD Description: Hong Kong 50 Spot Index CFD Path: Spot\Spot Indices\Spot Indx Minor\#HongKong50


    string symbol = "#HongKong50";
    double TickSize = SymbolInfoDouble(symbol, SYMBOL_TRADE_TICK_SIZE);
    double TickValue = SymbolInfoDouble(symbol, SYMBOL_TRADE_TICK_VALUE);
    double PointSize = SymbolInfoDouble(symbol, SYMBOL_POINT);
    double PointValue = TickValue * PointSize / TickSize;
    double volume = 1.0;
    double PointValueLots = PointValue * volume;
    // 0.01
    Print(PointValueLots);

The point value is 0.01 for 1 lot. But it's 0.01 HKD.

My account currency is USD, the CurrencyProfit of #HongKong50 is HKD, so 0.01 / 7.75 (USD to HKD) is the real PointValueLots.

This is because the currency of TickValue for #HongKong50 is HKD, not USD.

But the currency of TickValue for USDJPY is USD, not CurrencyProfit(JPY).

So is this a mt5 bug?

(fxpro broker)

kzh125  

by the way, the layout is broken in my computer...

but the calculation code is helpful.

Files:
layout.png  247 kb
Dinesh Punchihewage  

Hi Bro
Thanks you for sharing this valuable piece of code.
Kind regards,

Dinna 

Reason: