Plot Lowest Price on Market Scanner

Questions about MultiCharts and user contributed studies.
ctu1121
Posts: 135
Joined: 05 Jul 2012
Has thanked: 10 times
Been thanked: 4 times

Plot Lowest Price on Market Scanner

Postby ctu1121 » 23 Mar 2014

Hi, I would like to find out highest and lowest price within specific period.
I insert study on Market Scanner. I can see highest price, however, I can only see 0
for lowest.

My code is very simple as below:

Code: Select all

value1=close;
value10=highest(value1,200);
value11=Lowest(value1,200);
plot1(value10);
plot2(value11);
May I have your advice why I can not see lowest price? Thanks.

Charles
Attachments
h l.png
(238.76 KiB) Downloaded 398 times

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Plot Lowest Price on Market Scanner

Postby TJ » 23 Mar 2014

Hi, I would like to find out highest and lowest price within specific period.
I insert study on Market Scanner. I can see highest price, however, I can only see 0
for lowest.
My code is very simple as below:

Code: Select all

value1=close;
value10=highest(value1,200);
value11=Lowest(value1,200);
plot1(value10);
plot2(value11);
May I have your advice why I can not see lowest price? Thanks.
Charles
You have empty periods in your data.

ctu1121
Posts: 135
Joined: 05 Jul 2012
Has thanked: 10 times
Been thanked: 4 times

Re: Plot Lowest Price on Market Scanner

Postby ctu1121 » 23 Mar 2014

May I have your suggestion how to solve empty issue? Thanks.

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Plot Lowest Price on Market Scanner

Postby TJ » 23 Mar 2014

May I have your suggestion how to solve empty issue? Thanks.
First ...
check your session template... make sure it does not cover any non-trading time. e.g 24 hr template will give you a lot of zero value periods.

Second ... put the data on a chart and visually check to see if there are any bad ticks. (spike bars).

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Plot Lowest Price on Market Scanner

Postby TJ » 23 Mar 2014

Third step:

DO NOT USE generic variable names. (ie. value1, value2, condition1, etc.,)


Return to “MultiCharts”