Time

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