Topics
Reverse Position

completed Closed cTrader Automate

Suggestions
13 Nov 2014, 08:53
 18
 1079
 1
Modify volume of a position

completed Closed cTrader Automate

Suggestions
28 Sep 2014, 13:15
 163
 1557
 6
28 Aug 2014, 00:33
 2713
 1
27 Aug 2014, 17:14
 49
 1507
 3
Replies

AlexanderRC
27 Mar 2014, 20:35

RE:

cicondo said:

Hi folks,

as a serious and discretionary trader it is essential to observe my account equity. I'm trying to implement this as
an indicator.

So for that I need the result of each trade I had made (manually-non robots) and which is closed.
I cannot find some functions within the API wich would help me to do that.

Do you have some ideas on how to solve that problem?
The simplest way I guess, would be to listen to any order, executed in the account so I would store it by myself.

 

cheers Cicondo
 

I have coded a simple indicator, Show Equity, that shows current equity for an account on a main chart. Is that what you want?


@AlexanderRC

AlexanderRC
27 Mar 2014, 19:45

RE:

MRSV said:

Hi

Is there a way to get the trading session without using the server time and looking at open and close time of the session. Since cAlgo already displays the session in the lower left corner.

Thanks

See this thread for ideas to vote for.


@AlexanderRC

AlexanderRC
27 Mar 2014, 19:44

RE:

Spotware said:

All 4 points are not supported by the API at the moment. We will implement these points one by one when we receive enough requests.

Please vote for your favorite features: http://vote.spotware.com/forums/229166-ideas-and-suggestions-for-ctrader-and-calgo/category/76800-calgo

Here are the ideas:

API for swaps

API for trading sessions and trading hours


@AlexanderRC

AlexanderRC
25 Mar 2014, 20:01

Is it a bug?
 


@AlexanderRC

AlexanderRC
19 Mar 2014, 12:51

There are no guaranties of internal cAlgo/cTrader code to be reentrant. With the approach of the timer, I would have moved all of the custom code into a separate method. That method should be called from OnTimedEvent(), OnTick() and OnBar(). That method should include some sort of synchronization primitive to guard against simultaneous invocation from OnTick()/OnBar() and from OnTimedEvent().

But even that does not guarantee that you do not go through some non-reentrant internal code paths when executing that method from OnTimedEvent().


@AlexanderRC

AlexanderRC
17 Mar 2014, 18:35

RE:

Spotware said:

At the moment you can use only Positions.Opened and Positions.Closed events. You can post your idea to vote.spotware.com.

I have posted a new idea at vote.spotware.com. Please vote for Async callbacks for all trading events (requests and responses to the cServer), including from GUI

Currently I am trying to hack around in main AppDomain for these events.


@AlexanderRC

AlexanderRC
17 Mar 2014, 17:27

RE:

Spotware said:

We use "Bytes Received" and "Bytes Sent" performance counters. By some reason they are missing on your machine.

Are these counters per process and/or per interface specific?

I had two interfaces connected. One is physical LAN, and the other is LAN-like VPN interface.

I tried to disable all of the interfaces except the physical one. That did not help.

I tried to uninstall all of the adapters from Network Connections folder. That also did no help.

So there seems to be some other reason why these counters are not available to the cTrader.

I tried to install Spotware cTrader demo into a fresh virtual machine. There are no traffic counters there either.

 


@AlexanderRC

AlexanderRC
17 Mar 2014, 16:12

RE:

Spotware said:

Traffic in and traffic out are hidden in case if our application can not find some PerformanceCounters in your operation system.

Can you name any specifics?

I am running on Windows 7 Ultimate x64 SP1 with all the latest patches from Windows Update.


@AlexanderRC

AlexanderRC
17 Mar 2014, 13:24 ( Updated at: 21 Dec 2023, 09:20 )

In cTrader/cAlgo there are no longer traffic in and out.

Why has is been removed?


@AlexanderRC

AlexanderRC
17 Mar 2014, 13:13

RE: RE:

amiscell said:

cAlgo_Fanatic said:

Currently no. Market range can be implemented for Stop Order Requests in the future. Limit Orders don't have any slippage.

Is slippage on stop orders this still in the plans?

Repeating the question. Any plans for this?


@AlexanderRC

AlexanderRC
14 Mar 2014, 23:57

RE:

admin said:

Thank you for your response. The limitation will be removed in one of the next releases.

Has it been removed? 


@AlexanderRC

AlexanderRC
04 Feb 2014, 20:05

Resercher, would you be so kind to share you code for the charts?

Maybe on GitHib?


@AlexanderRC

AlexanderRC
17 Dec 2013, 15:13

Implemented?


@AlexanderRC