Time

Created at 17 Dec 2012, 22:07
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!
BA

Balena

Joined 17.12.2012

Time
17 Dec 2012, 22:07


How can I see the time of my last executed trade?

and then

How can I make cAlgo wait  X timeframe between allowable trades... regardless of direction?


@Balena
Replies

Balena
18 Dec 2012, 17:29

RE:
Balena said:

How can I see the time of my last executed trade?

and then

How can I make cAlgo wait  X timeframe between allowable trades... regardless of direction?


Anybody?


@Balena

admin
04 Jan 2013, 15:58

Hello,

You may create a field of type DateTime which you will set Server.Time to in the event OnPositionOpened.  

e.g.

private DateTime last = DateTime.MinValue;
//...
     protected override void OnPositionOpened(Position pos)
     {
           last  = Server.Time;            
} //...

 


@admin