Traders Laboratory - View Single Post - Easy Language - Help with Simple System
View Single Post
  #7 (permalink)  
Old 12-17-2007, 05:24 PM
Dogpile Dogpile is offline
Dogpile has no status.

 
Join Date: May 2007
Posts: 577
Thanks: 0
Thanked 7 Times in 5 Posts
Re: Easy Language - Help with Simple System

another route is to declare a name for a variable like this (on 60-min chart):

vars: aa(0), bb(0);

if time=1030 then aa=high;
if time=1030 then bb=low;
----
then you can reference aa or bb in further code.


or for 30-min chart:

vars: aa(0), bb(0);

if time=1030 then aa=highest(h,2);
if time=1030 then bb=lowest(l,2);

etc...
-----
depending on further code, sometimes may have to write as:

if time=1030 then aa=high else aa=0;

Reply With Quote