6.14 End of Chapter exercise

Doji

  1. Write the code to identify gravestone doji.
  2. Check your code with the graph in the example in the text.

Hammer

  1. Write the code to identify inverted harmer or shooting stars.

  2. Check your code with the graph in the example in the text.

Englufing

  1. Write the code to identify bearish engulfing.

  2. Check your code with the graph in the example in the text.

Harami

  1. Write the code to identify bearish harami

  2. Check your code with the graph in the example in the text.

Median reversal

  1. Write the code to identify dark cloud cover

  2. Check your code with the graph in the example in the text.

Two in a row

  1. Write the code to identify kick down.

  2. Check your code with the graph in the example in the text.

Three in a row

  1. Write the code to identify three white solders and three black crows.

  2. Check your code with the graph in the example in the text.

Star

  1. Write the code to identify morning star and evening star.

  2. Check your code with the graph in the example in the text.

Three methods

  1. Write the code to identify rising three and failing three.

  2. Check your code with the graph in the example in the text. For failing three, you may need to check stocks other than Microsoft.