MQL4 - automated forex trading   /  

Forum

Swap

Back to topics list To post a new topic, please log in or register

avatar
83
brspMA 2008.01.02 06:39 
Hello,

I am using
MarketInfo(Symbol(),MODE_SWAPSHORT)
and
MarketInfo(Symbol(),MODE_SWAPLONG)
in order to get information about swap about one pair. But the number I get from those function are not much familiar to me. Can I change the result of those information unto interest values?

I've read about MODE_SWAPTYPE. However I have no clue how to set up its values in order to get the swap values as interest.

MODE_SWAPTYPE 26 Swap calculation method. 0 - in points; 1 - in the symbol base currency; 2 - by interest; 3 - in the margin currency.


Thank you so much,,,
article

Testing Features and Limits in MetaTrader 4

This article allows to find out more about features and limits of Strategy Tester in MetaTrader 4.


avatar
2462
phy 2008.01.02 06:45 

Tell me the value you get for

int type = MarketInfo(Symbol(),MODE_SWAPTYPE);

Print("SwapType = "+type);


avatar
83
brspMA 2008.01.02 07:33 
phy wrote:

Tell me the value you get for

int type = MarketInfo(Symbol(),MODE_SWAPTYPE);

Print("SwapType = "+type);

Hi phy,

I got Zero.

avatar
2462
phy 2008.01.02 07:52 

 

... deleted ...


avatar
83
brspMA 2008.01.02 08:47 
Thanks phy,

But could you kindly modify this for something more generic. In my case, there is none OrderLots or TickValue I could use. Nevertheless, the interest in percentage is a constant. Is that constant that I am looking for. Values like those:

JPY lend interest 0.8
AUD borrow interest 6.45

I am trying to reach those kind of values through MT4.

Thanks again,,,



avatar
2462
phy 2008.01.02 10:02 

Ask your broker.


avatar
83
brspMA 2008.01.02 18:51 
Thanks phy,

I am jut trying to change my broker. That's the why I am getting familiar with MT4. And I love it so far.

I just though that I could reach the nation's Interest for lending and borrowing through MT4 easily.

I still count with your kindly help.

Thanks a lot,,,


Back to topics list  

To add comments, please log in or register