Express code: DayTimeFlat
Express code: DayTimeFlat
Usefull for the trader who wants his position to be closed on Thursday at 14:00 before the US Unemployment data or the trader who wants no open positions before the weekend.
Credit: Timo
You do not have the required permissions to view the files attached to this post.
Re: Express code: DayTimeFlat
Can you not cut it to:
[...]
begin
if ($WeekDay = DayOfWeek(date)) then
if (timeOpen >= NumericToTime($FlatTimeStart)) and (timeOpen <= NumericToTime($FlatTimeEnd)) then
Sentiment = Senti_Flat;
end
?
[...]
begin
if ($WeekDay = DayOfWeek(date)) then
if (timeOpen >= NumericToTime($FlatTimeStart)) and (timeOpen <= NumericToTime($FlatTimeEnd)) then
Sentiment = Senti_Flat;
end
?
- WHS Support
- Posts: 2443
- Joined: 14 Feb 2013 10:27
Re: Express code: DayTimeFlat
Hi Gunnar,
yes, you can.
Thanks for the tip.
Kind regards,
WHS LUX
yes, you can.
Thanks for the tip.
Kind regards,
WHS LUX