Page 1 of 1
Express code: DayTimeFlat
Posted: 06 Oct 2016 16:13
by WHS BE-NL
daytimeflat.png
This Express code closes a position at a certain time at a specific day .
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
Re: Express code: DayTimeFlat
Posted: 01 Nov 2016 16:22
by gunnar.s
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
?
Re: Express code: DayTimeFlat
Posted: 02 Nov 2016 19:18
by WHS Support
Hi Gunnar,
yes, you can.
Thanks for the tip.
Kind regards,
WHS LUX