i want calgo documentation

Created at 15 Sep 2013, 12:50
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!
RO

RootFX

Joined 09.09.2013

i want calgo documentation
15 Sep 2013, 12:50


hi ,,

i want calgo documentation like this site 

http://docs.mql4.com/

how open order and close order or sl,tp 

and mql4 method 

AccountEquity()

MarketInfo()

Symbol()

NormalizeDouble()

OrderSend()

GetLastError()

Point

OrdersTotal()

OrderSelect()

OrderMagicNumber()

OrderProfit()

OrderOpenPrice()

 OrderClose()

OrderTicket()

OrderLots()

OrderSymbol()

OrderType()

....... how i can use like this method in calgo 

thank you 

 

 

 

 

 

 

 

 


@RootFX
Replies

cAlgo_Fanatic
16 Sep 2013, 12:35 ( Updated at: 15 Jan 2024, 14:51 )

Hello,

Thank you for the suggestion. We are currently working on improving the documentation on cAlgo.

For the time being you can find examples for the above requests here:

how open order and close order or sl,tp 

Market Order Request
Create Market Order
Close

Full List of Trade Requests - Create Market Order Requests, Pending Orders

Trade Interface  - Create & Send to Server Market Order Requests, Pending Orders


AccountEquity()

Equity
Full List of Account Interface


MarketInfo()

Symbol Interface


Symbol()

Current Symbol


NormalizeDouble()

Math.Round(double value, int digits) 


OrderSend() 

Trade.Send()

Note: The above is only used in combination with Requests. It is not necessary if Trade Interface methods are used.

GetLastError()

OnError() & [ErrorCode]


Point

PointSize

See also PipSize 


OrdersTotal()

Account.Positions.Count & Account.PendingOrder.Count

See also: Lists


OrderSelect()

Not Applicable.
See these examples: 
OnPositionOpened

/api/position example with foreach loop.

In general see all methods under Robot


For all below see  Position Interface & Pending Order Interface

OrderMagicNumber()

Position Label & Pending Order Label

 

OrderProfit()

GrossProfit & NetProfit


OrderOpenPrice()

EntryPrice 


 OrderClose()

Trade.Close 


OrderTicket() 

Position.Id PendingOrder.Id

 

OrderLots()

Position Volume & Pending Order Volume


OrderSymbol()

Position.Symbol & Pending Order Symbol


OrderType()

Position TradeType
Pending Order TradeType

TradeType

 


@cAlgo_Fanatic

Spotware
13 Dec 2013, 14:24

Please see the New Trading API Guide.


@Spotware

jeex
13 Dec 2013, 14:36

Wonderful

Nice work. Thanks.


@jeex

ctid205024
04 Nov 2015, 14:15

Literally all links pointed out by spotware return 404. How basic is to implement an URL redirect when you move content? 


@ctid205024

aimerdoux
04 Nov 2015, 15:54

RE:

This post was removed by moderator because it duplicates another post. /forum/cbot-support/7059


@aimerdoux