[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EL Help please - make a signal work on all bars of a given day.


  • Date: Fri, 06 Nov 2009 10:19:42 -0500
  • From: gh <gregh163@xxxxxxxxxxxx>
  • Subject: Re: EL Help please - make a signal work on all bars of a given day.

PureBytes Links

Trading Reference Links

  Thanks Samuel.
The list is so much easier but would love to be able search your site again.

I have such great difficulty with Yahoo. Not sure why.
They kick me off if inactive  ? 2 mos?
Can't find my newer id.
Again wasted a lot of time trying to get there today.

Anyway I prefer to stay away from Data 2.
For the trigger method is that for TS8?
I have Ts2000i - will that code be ok with TS2000i??
Thanks so much for your help.
Dr Greg Hunt.

Samuel K. Tennis wrote:
I just wanted to make sure that you are aware of my Yahoo! Group, in case you want future help with EasyLanguage. Though there are lots of other tips on using TradeStation there, it is very EasyLanguage focused.

http://finance.groups.yahoo.com/group/MrEasyLanguage/


Samuel K. Tennis wrote:

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 *****