(Mq4) How to calculate Margin, Swap and TickValue using MarketInfo() function for CFD shares?

 

Please for the examples of MQL4 syntax for the following cases:

1/. Margin to open 1/100 Lot

2/. Swap for Long (1/100 Lot)

3/. Swap for Short (1/100 Lot)

4/. TickValue of 1/100 Lot


I mean about shares like GOOGLE, IBM, Home Depot, Bank of America etc...

For currency pairs there is no problem, we have for example:

1/.

MarketInfo("EURUSD",MODE_MARGINREQUIRED)/100

2/.

MarketInfo("EURUSD",MODE_SWAPLONG)/100

3/.

MarketInfo("EURUSD",MODE_SWAPSHORT)/100

4/.

MarketInfo("EURUSD",MODE_TICKVALUE)/100


... but what about CFD ? ... above functions does not work for the CFD?

how to use MODE_MARGINCALCMODE and/or MODE_PROFITCALCMODE?

Reason: