PureBytes Links
Trading Reference Links
|
if date > date[1] then begin {check once a day}
if month(date) <> month(date[1]) then ok2trade = true {trading day}
else ok2trade = false; {not a trading day}
end;
if ok2trade then begin
{trading rules here}
end;
--
Dennis
gh wrote:
I need help with a signal please.
on intraday trading, a specific day to trade is picked out by a function
which is intended to work on daily data.
then the entry signal only works on the second bar.
is there some code to make the signal work on the rest of the bars of
the day?
for instance, for the first day of the month, using IF Month(date) <>
Month(date[1]) then ---
will only enter on one bar if the condition happens to occur, but not
when the condition occurs during the rest of the day.
the if statement is only true for that second bar.
Thanks.
Greg Hunt
|