PureBytes Links
Trading Reference Links
|
<x-html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2014.210" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=300071209-26042000>Hi
Ton,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000>Attached is a chart with the Chandelier and the code
you suggested.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=300071209-26042000>As you
can see, the Chandelier plots as it did before but on the trade day, a line to 0
appears. The Chandelier plots before the trade day. I want the code
to plot the Chandelier but only from the trade day ie. not to the left of the
trade day but only to the right. I substituted each line you suggested
into the code but none did what I wanted.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=300071209-26042000>Just
to make sure, I copy the formula below.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=300071209-26042000>Day1
:= Input("Day of Trade",1,31,4);<BR>Month1 := Input("Month of
Trade",1,12,1);<BR>Year1 := Input("Year of
Trade",1900,2400,2000);</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000>ATRDays:=Input("ATR
Days",1,30,10);<BR>ATRHighMult:=Input("ATR Multiplier From
High",1,5,3.0);<BR>ATRCloseMult:=Input("ATR Multiplier From
Close",1,5,2.5);</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000>PdsTrade:=BarsSince(DayOfMonth()=Day1 AND Month()=
Month1 AND Year()= Year1);</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000>HHVValue:=HHV(H,LastValue(PdsTrade));</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=300071209-26042000>{The
stop from the HHV}<BR>HHVStop:= HHVValue -
ATRHighMult*ATR(ATRDays);</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=300071209-26042000>{The
stop from that bar's H}<BR>HighStop:= H - ATRHighMult*ATR(ATRDays);<BR>{The stop
from that bar's C}<BR>CloseStop:= C -
ATRCloseMult*ATR(ATRDays);</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000>{Calculates the Highest stop from the H stop or the C
stop - Puts the stop at the highest stop}<BR>TodaysCalc:= If(HighStop >
CloseStop, HighStop, CloseStop);</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=300071209-26042000>{After
the H or C stop is highest, it compares that to the HHV stop. The stop is
then calculated on the highest value}<BR>TodaysStop:= If(L <= PREV,
TodaysCalc, If(HHVStop < PREV, PREV, If(HHVStop
><BR>C,PREV,HHVStop)));</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000>If(PdsTrade>0,TodaysStop,PdsTrade>0);<BR> <BR>TodaysStop;</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000>Suggestions?</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000>Thanks,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=300071209-26042000>Andrew</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV class=OutlookMessageHeader><FONT face="Times New Roman"
size=2>-----Original Message-----<BR><B>From:</B> A.J. Maas
[mailto:anthmaas@xxxxxxxxx]<BR><B>Sent:</B> Wednesday, 26 April 2000
8:17<BR><B>To:</B> Kornberg Family<BR><B>Cc:</B>
Metastock-List<BR><B>Subject:</B> Re: Chandelier<BR><BR></DIV></FONT>
<DIV><FONT size=2>If(PdsTrade>0,TodaysStop,PdsTrade)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>If(PdsTrade>0,TodaysStop,PdsTrade=0)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>If(PdsTrade>0,TodaysStop,PdsTrade<0)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2><FONT
size=2>If(PdsTrade>0,TodaysStop,PdsTrade>0)</FONT></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Like the one below, all</FONT><FONT size=2> the above
versions too will work, and their display will now differ (in your
favor{ite way}):</FONT></DIV>
<DIV><FONT size=2>" start display at Trade-entry-day-and-later
".</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>MSK isn't capable to plot-into-the-future, eg further
right than the last bar, and for indicators.</FONT></DIV>
<DIV><FONT size=2>An EXTEND TO THE RIGHT </FONT><FONT size=2>user definable
check option on both the indicators, as well as on the set
of available</FONT></DIV>
<DIV><FONT size=2>Trendline Studies, would </FONT><FONT size=2>therefore be
much appreciated.</DIV></FONT>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Do r</FONT><FONT size=2>eturn some pictures of your
"researches(signals?)" to the List, eg the how to's, since you've
accomplished</FONT></DIV>
<DIV><FONT size=2>something interesting. </DIV></FONT>
<DIV><BR>Regards,<BR>Ton Maas<BR><A
href="mailto:ms-irb@xxxxxxxxxxxxxxxx">ms-irb@xxxxxxxxxxxxxxxx</A><BR>Dismiss
the ".nospam" bit (including the dot) when replying.<BR>Homepage <A
href="http://home.planet.nl/~anthmaas">http://home.planet.nl/~anthmaas</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=ltr
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
Kornberg Family </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> ms-irb@xxxxxxxxx </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> dinsdag 25 april 2000 8:15</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Chandelier</DIV>
<DIV><BR></DIV>
<DIV>
<DIV><FONT size=2><SPAN class=190551206-25042000>Hi Ton,</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=190551206-25042000></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=190551206-25042000>As you suggested, I put the
following line in - </SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>If(PdsTrade>0,TodaysStop,0)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2><SPAN class=190551206-25042000>It still plotted before the
day of entry except a single line appeared on the trade day. Is there
a way to plot the chandelier from day of entry to the right and not before
the day of entry?</SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN class=190551206-25042000></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN
class=190551206-25042000>Andrew</SPAN></FONT></DIV></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
</x-html>
Attachment Converted: "f:\eudora\attach\chandmaas.gif"
|