Information

Username: njardim
Member since: 06 Dec 2015
Last login: 06 Dec 2015
Status: Active

Activity

Where Created Comments
Algorithms 3 1
Forum Topics 1 1
Jobs 0 0

Last Algorithm Comments

NJ
njardim · 7 years ago

Great stuff.

Try this after line #183 maybe it gives you some new ideas along the lines.

It's raw stuff so just use it at the end.

            // NJ

            var High = prc[index - 1] + sq;
            var Middle = prc[index - 1];
            var Low = prc[index - 1] - sq;

            var HM11 = ((High - Middle) * 0.886) + Middle;
            var LM11 = ((Middle - Low) * 0.114) + Low;

            var HM23 = ((High - Middle) * 0.764) + Middle;
            var LM23 = ((Middle - Low) * 0.23) + Low;

            var HM38 = ((High - Middle) * 0.618) + Middle;
            var LM38 = ((Middle - Low) * 0.38) + Low;

            var HM50 = ((High - Middle) * 0.5) + Middle;
            var LM50 = ((Middle - Low) * 0.5) + Low;

            var HM61 = ((High - Middle) * 0.38) + Middle;
            var LM61 = ((Middle - Low) * 0.618) + Low;

            var HM76 = ((High - Middle) * 0.23) + Middle;
            var LM76 = ((Middle - Low) * 0.764) + Low;

            var HM88 = ((High - Middle) * 0.114) + Middle;
            var LM88 = ((Middle - Low) * 0.886) + Low;

            ChartObjects.DrawText("Highh", "\t" + "00.00%", index, High, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.DeepSkyBlue);
            ChartObjects.DrawLine("Highl", index, High, index - 10, High, Colors.DeepSkyBlue, 1, LineStyle.DotsVeryRare);
            ChartObjects.DrawLine("Highr", index, High, index + 7, High, Colors.DeepSkyBlue, 1, LineStyle.DotsVeryRare);

            ChartObjects.DrawText("Middleh", "\t" + "100.00%", index, Middle, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.White);
            ChartObjects.DrawLine("Middlel", index, Middle, index - 10, Middle, Colors.White, 1, LineStyle.DotsVeryRare);
            ChartObjects.DrawLine("Middler", index, Middle, index + 7, Middle, Colors.White, 1, LineStyle.DotsVeryRare);

            ChartObjects.DrawText("Lowh", "\t" + "00.00%", index, Low, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.Red);
            ChartObjects.DrawLine("Lowl", index, Low, index - 10, Low, Colors.Red, 1, LineStyle.DotsVeryRare);
            ChartObjects.DrawLine("Lowr", index, Low, index + 7, Low, Colors.Red, 1, LineStyle.DotsVeryRare);

            ChartObjects.DrawText("HM11h", "\t" + "11.40%", index, HM11, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.DeepSkyBlue);
            ChartObjects.DrawLine("HM11", index, HM11, index - 10, HM11, Colors.DeepSkyBlue, 1, LineStyle.DotsVeryRare);
            ChartObjects.DrawText("LM11h", "\t" + "11.40%", index, LM11, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.Red);
            ChartObjects.DrawLine("LM11", index, LM11, index - 10, LM11, Colors.Red, 1, LineStyle.DotsVeryRare);

            ChartObjects.DrawText("HM23h", "\t" + "23.00%", index, HM23, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.DeepSkyBlue);
            ChartObjects.DrawLine("HM23", index, HM23, index - 10, HM23, Colors.DeepSkyBlue, 1, LineStyle.DotsVeryRare);
            ChartObjects.DrawText("LM23h", "\t" + "23.00%", index, LM23, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.Red);
            ChartObjects.DrawLine("LM23", index, LM23, index - 10, LM23, Colors.Red, 1, LineStyle.DotsVeryRare);

            ChartObjects.DrawText("HM38h", "\t" + "38.00%", index, HM38, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.DeepSkyBlue);
            ChartObjects.DrawLine("HM38", index, HM38, index - 10, HM38, Colors.DeepSkyBlue, 1, LineStyle.DotsVeryRare);
            ChartObjects.DrawText("LM38h", "\t" + "38.00%", index, LM38, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.Red);
            ChartObjects.DrawLine("LM38", index, LM38, index - 10, LM38, Colors.Red, 1, LineStyle.DotsVeryRare);

            ChartObjects.DrawText("HM50h", "\t" + "50.00%", index, HM50, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.DeepSkyBlue);
            ChartObjects.DrawLine("HM50", index, HM50, index - 10, HM50, Colors.DeepSkyBlue, 1, LineStyle.DotsVeryRare);
            ChartObjects.DrawText("LM50h", "\t" + "50.00%", index, LM50, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.Red);
            ChartObjects.DrawLine("LM50", index, LM50, index - 10, LM50, Colors.Red, 1, LineStyle.DotsVeryRare);

            ChartObjects.DrawText("HM61h", "\t" + "61.80%", index, HM61, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.DeepSkyBlue);
            ChartObjects.DrawLine("HM61", index, HM61, index - 10, HM61, Colors.DeepSkyBlue, 1, LineStyle.DotsVeryRare);
            ChartObjects.DrawText("LM61h", "\t" + "61.80%", index, LM61, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.Red);
            ChartObjects.DrawLine("LM61", index, LM61, index - 10, LM61, Colors.Red, 1, LineStyle.DotsVeryRare);

            ChartObjects.DrawText("HM76h", "\t" + "76.40%", index, HM76, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.DeepSkyBlue);
            ChartObjects.DrawLine("HM76", index, HM76, index - 10, HM76, Colors.DeepSkyBlue, 1, LineStyle.DotsVeryRare);
            ChartObjects.DrawText("LM76h", "\t" + "76.40%", index, LM76, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.Red);
            ChartObjects.DrawLine("LM76", index, LM76, index - 10, LM76, Colors.Red, 1, LineStyle.DotsVeryRare);

            ChartObjects.DrawText("HM88h", "\t" + "88.60%", index, HM88, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.DeepSkyBlue);
            ChartObjects.DrawLine("HM88", index, HM88, index - 10, HM88, Colors.DeepSkyBlue, 1, LineStyle.DotsVeryRare);
            ChartObjects.DrawText("LM88h", "\t" + "88.60%", index, LM88, VerticalAlignment.Top, HorizontalAlignment.Right, Colors.Red);
            ChartObjects.DrawLine("LM88", index, LM88, index - 10, LM88, Colors.Red, 1, LineStyle.DotsVeryRare);