All,
I know that HighD(1) returns the high of yesterday (ie, the high of yesterday's daily bar), and I have successfully charted it as an INDICATOR using intraday data:
plot1(HighD(1), "");
However, I have NOT been successful in using it in a SIGNAL on intraday data. Why doesn't the following code generate an entry signal at HighD(1) when used in a SIGNAL on intraday data? (I get entries, but at the wrong price levels.)
Buy next bar HighD(1) stop;
I have MultiCharts version 2.1.999.999.
Thanks.
Use of HighD(1) for INTRADAY SIGNALS -- Problem
- Marina Pashkova
- Posts: 2758
- Joined: Jul 27 2007
Hello,
Try the script below. It should work:
value1 = HighD(1);
if value1 <> -1 then
buy next bar value1 stop;
Regards.
Try the script below. It should work:
value1 = HighD(1);
if value1 <> -1 then
buy next bar value1 stop;
Regards.