EW Elliott Wave Easy Counter Script – script MetaTrader 4

Overview

This simple script enables you to do basic Elliott Wave counts in MetaTrader 4 by simple drag and drop. The program automatically keeps track of what wave you are on, so there is no need to mess with annoying text objects.

Make sure to check out the Chart Object Removal Tool if you plan on using this script. It will make it much easier to remove old wave counts.

Features

  • Drag and drop the script on the chart location you wish to mark.
  • Simple motive wave (1-2-3-4-5) and corrective wave counting (A-B-C).
  • Keep track of virtually “unlimited” cycles.

Parameters and Usage

This script does NOT have external user parameters. The parameters must be adjusted from within the source file. The reason for this is to allow for unencumbered easy wave counts. It wouldn’t be desirable for most to have this ask you for inputs each time you add a label. If you do not like the default settings, please ensure you download the source files:

  • ElliottWaveEasyCounterScript.mq4 should be placed in the “Scripts” folder (same directory as the ex4 file).
  • ElliottWaveLabel.mqh should be placed in the “Include” folder.

Now, if you wish to edit the parameters, find ElliottWaveEasyCounterScript in the Navigator window under Scripts. Right click on it and select Modify. Scroll down past the copyright and change log info to the parameters (easiest thing to do is just CTRL+F -> “parameters”):

  • NUM_WAVES [DEFAULT: 8] โ€“ sets the number of waves per cycle. 8 waves are common with Elliott Waves (5 wave pattern in the dominant trend/3 wave pattern in the corrective trend). You can tweak this to your own style and/or use this parameter if separating dominant and corrective wave counts. Valid values are positive integers.
  • TEXT_COLOR [DEFAULT: Red] โ€“ wave label color. For information on valid values, please refer to the mql4 documentation on color type and web colors.
  • FONT_SIZE [DEFAULT: 14] โ€“ wave label font size. Valid values are positive integers.
  • FONT [DEFAULT: Arial] โ€“ wave label font family.
  • LABEL_TYPE [DEFAULT: LETTER] โ€“ this parameters tells the script whether to use numbers, letters, or roman numerals for wave labels. Please note that with numbers, the labels will always increase until there are NUM_WAVES labels and then it will reset to 1. However, with letters, the labels will go from A, B, C, โ€ฆ, X, Y, Z. If NUM_WAVES is larger than the number of letters in the alphabet, the labels will reset to AA, BB, CC, โ€ฆ, XX, YY, ZZ and then to AAA, and so on until NUM_WAVES labels are reached, where it will reset to A. Valid values are NUMERIC, LETTER, and ROMAN.
  • OBJ_PREFIX [DEFAULT: WaveCounter_] โ€“ the prefix that the script uses when naming objects. Generally, you donโ€™t need to change this parameter unless it conflicts with another program using the same prefix. It’s main purpose is for convenient use with the Chart Object Removal Tool.
Alternative:  An Expert Advisor, based on Bollinger Bands ยฎ - EA MetaTrader 5

Whenever you change any parameters, make sure to press the Compile button when you are done.

It may be desirable to have two scripts (e.g., one for dominant trend wave counts and one for corrective trend wave counts). This is easy to achieve. There are a couple ways to go about this, but the easiest way is probably to Save As when you have the source open. If you right click->Modify on the script in MetaTrader 4, the source file ElliottWaveEasyCounterScript.mq4 will open. Go to File -> Save As and save it as whatever you want (for example, “EWDominantTrendWaveCounter”). After saving, click the Compile button. You can do this as many times as you wish with different names and different parameters.

Alternative:  Exp_ColorMETRO - EA MetaTrader 5
๐Ÿ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks