Use of HighD(1) for INTRADAY SIGNALS -- Problem

Questions about MultiCharts and user contributed studies.
oakshadows
Posts: 33
Joined: 01 May 2007

Use of HighD(1) for INTRADAY SIGNALS -- Problem

Postby oakshadows » 22 Sep 2007

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.

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 25 Sep 2007

Hello,

Try the script below. It should work:

value1 = HighD(1);
if value1 <> -1 then
buy next bar value1 stop;


Regards.

oakshadows
Posts: 33
Joined: 01 May 2007

Postby oakshadows » 25 Sep 2007

Marina, it works. Thank you for your help.

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 26 Sep 2007

You're welcome!


Return to “MultiCharts”