logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Knowland  
#1 Posted : Thursday, October 25, 2012 2:53:47 PM(UTC)
Knowland

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/15/2008(UTC)
Posts: 8

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Can someone please assist me with the partial OHLC Daily code from Jose @metastocktools.com so the Y-axis of the chart is not in a way confined by the parameters plotted on the price chart. For instance, if the ES high of the day is at 1300 and currently is 50 points below the high - at the low of the day. The price chart will display a plot at 1300 for the high and one at 1250 for the low, but this will make the bars/candlesticks relatively small, since they will be in proportion with the displayed (plotted) parameters. How can I rework the code so the Y-axis remain in auto and the plots will be visible as the price comes near them. I understand that I can manually change the Y-axis properties to make the price chart bigger, but I would like to leave the Y-axis properties in auto.

pds:=1;

{ Day's Start }

SOD:=DayOfMonth()<>

Ref(DayOfMonth(),-1)

OR Cum(1)=2;

{ Day's High }

Hi:=HighestSince(1,SOD,H);

dHi:=If(pds=1,Hi,ValueWhen(1,SOD,Ref(Hi,-1)));

dHi:=ValueWhen(1,dHi<>0,dHi);

{ Day's Low }

Lo:=LowestSince(1,SOD,L);

dLo:=If(pds=1,Lo,ValueWhen(1,SOD,Ref(Lo,-1)));

dLo:=ValueWhen(1,dLo<>0,dLo);

{ Plot on price chart }

dHi; { <- High: Blue }

dLo { <- Low: Red }


/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.