Topics
Replies
quasar888
28 Feb 2015, 12:48
RE:
DateTime time;
void timeclosingtrade()
{time=Server.Time;
int timespanchoice=0;
foreach (Position item in Positions)
{
if(item.EntryTime<time..AddHours(-timespanchoice))
{
ClosePosition(item);
}
}
}
protected override void OnStart()
{
Timer.Start(1);
}
protected override OnTimer()
{
timeclosingtrade();
}
@quasar888
quasar888
28 Feb 2015, 12:45
DateTime time;
void timeclosingtrad()
{time=Server.Time;
int timespanchoice=0;
foreach (Position item in Positions)
{
}
}
@quasar888
quasar888
28 Feb 2015, 12:45
DateTime time;
void timeclosingtrad()
{time=Server.Time;
int timespanchoice=0;
foreach (Position item in Positions)
{
}
}
@quasar888
quasar888
03 Jul 2015, 13:42
Hello perhaps i can help you , i use both language...
@quasar888