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