for a 2-Min Chart using ES.D (counts back bars assuming full trading day)... this works but would like a better way to do this if anyone knows.
variables: firstbar(0), length(0);
if date>date[1] then begin firstbar=currentbar;end;
length=currentbar-firstbar;
value1=highd(0)-lowd(0);
value2=highest(h,length)-lowest(l,length);
value3=(value2[203]+value2[406]+value2[609])/3;Plot1(value1, "today");Plot2(value3, "3-Day Avg");
No comments:
Post a Comment