Needed some functions information

Created at 26 Feb 2018, 12:33
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
AB

abhishek

Joined 15.12.2017

Needed some functions information
26 Feb 2018, 12:33


Hello everyone,

I need to know equivalent function for the following

function from mql4

1. MarketInfo(Symbol, MODE_SWAP)

2. MarketInfo(Symbol, MODE_STOPLEVEL)

3. How to calculate stoplevel of an account?

4. How to check account is live or demo?

5. How to calculate margin maintainence?

Please suggest me, that will be great help from you all.

If you face any issue in my question, please ask.

 

Thanks in advance,

Abhishek

 


@abhishek
Replies

PanagiotisCharalampous
26 Feb 2018, 14:21

Hi abhishek,

See below

  1. Not Available. 
  2. Not Available. Will be added in next release.
  3. Not possible currently. Will be covered with point 2.
  4. Use  Account.IsLive​
  5. If you mean the Account's margin then use Account.Margin

Let me know if the above answer your questions,

Best Regards,

Panagiotis 


@PanagiotisCharalampous

abhishek
27 Feb 2018, 06:04

Yes.

Thank you !!! Panagiotis.

May you please help me with one more query

"Do we get the value of the horizontal line created on the chart programatically in cAlgo?"

 

Thanks in advance,

Abhishek

 

 

 


@abhishek

PanagiotisCharalampous
27 Feb 2018, 09:17

Hi abhishek,

Do you mean bid/ask prices? You can get them using Symbol.Bid and Symbol.Ask properties.

Let me know if this is what you were looking for

Best Regards,

Panagiotis


@PanagiotisCharalampous