Hello.![]()
It says swap type in points but the value does not look like points. Why?
Files:
image.png
33 kb
Yashar Seyyedin:
Hello.
Hello.
It says swap type in points but the value does not look like points. Why?
These values are defined by your broker, you will need to ask them about the discrepancy. - Yes, it is a discrepancy.
What does this output ?
#property version "1.00" input string Prefix=""; input string Suffix=""; #include "symbolTradingCosts.mqh"; int OnInit() { EventSetMillisecondTimer(44); return(INIT_SUCCEEDED); } void OnTimer(){ if(SymbolIsSynchronized(_Symbol)){ EventKillTimer(); double swapLongCost=0.0,swapShortCost=0.0; if(get_swap_cost_for_one_lot(_Symbol,Prefix,Suffix,swapLongCost,swapShortCost)){ Print("Swap Long Cost for 1 Lot = "+DoubleToString(swapLongCost,2)+AccountInfoString(ACCOUNT_CURRENCY)); Print("Swap Short Cost for 1 Lot = "+DoubleToString(swapShortCost,2)+AccountInfoString(ACCOUNT_CURRENCY)); }else{ Print("Cant calc swap"); } Print("DONE"); ExpertRemove(); } } void OnDeinit(const int reason) { } void OnTick() { }
Files:
symbolTradingCosts.mqh
13 kb

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register