Greg,
One method would be to insert Daily data in Data2 - then
change the statement to read :
if Month (Date of Data2) <> Month (Date [01] of Data2) then ---
Another method would be to test for a new day and reset a
trigger variable, or flag, every day, only once per day...
Vars : New_Month (FALSE) ;
if (Date [00] <> Date [01]) then begin
New_Month = @Month (Date [00]) <> @Month (Date [01]) ;
end ;
if New_Month then begin
end ; // do something here...
Date: Wed, 28 Oct 2009 19:04:04 -0400
From: gh <>
To: omega-list@xxxxxxxxxx
Subject: EL Help please - make a signal work on all bars of a given day.
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
Samuel K. Tennis
Vista-Research voice: 1(850) 243-5105
129 Staff Drive, NE cell: 1(850) 582-7342
Ft. Walton Beach, FL 32548 fax: 1(510) 743-8274
<SKTennis@xxxxxxxxxxxxxxxxxx> < http://www.vista-research.com
<http://www.vista-research.com/>>
***** EasyLanguage Spoken Here *****