Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2015.06.05 09:55

PrimeLevelsBlack - indicator for MetaTrader 4

| English Español Português Русский Deutsch 日本語

Published by:
Aleh Sasonka
votes: 15

Real author:

Doblece, Domas4 & Traderathome


This indicator will place up to 6 lines, at prime levels of your choosing, in a successive pattern on the chart. You can have the pattern repeated as many times as you like. For example, you might select lines to be placed at the whole number, plus 20 pips, plus 33 pips, plus 50 pips, plus 66 pips, plus 80 pips and then the next whole number again. This range of lines can then be repeated both above and below this initial range. You can have as many levels of ranges above and below the initial range as you like. Or, you can select zero additional ranges and the initial range will automatically fill below or above the next whole number as the price moves there.

The lines can individually be of any color and style, and of any thickness when using solid lines. You can turn on/off each line individually. When lines are full screen wide, you can turn on/off the right margin price labels. You can select to have the lines stop at the current candle. Lines can be subordinated. To specify a level for a line just enter the last two digits of the price level.

The labels for the lines can be of any color, font size and font style. You can give the labels a name of your choice (example: Psych Level) and include the price. Labels can be positioned from right of the current candle (0), to far left (100), and they can be subordinated. Zooming in and out on the chart will displace the labels, but with the next data tick, their selected position is restored.

The indicator has an ON/OFF switch so you can turn the indicator off when the display of the prime levels is not desired, yet preserve your settings for the chart. You can also enter a time frame, above which the indicator will automatically not display. This enables switching to larger time frames for analysis, and having a chart clear of this indicator's display.



EURUSD.f, H1: PrimeLevelsBlack


EURUSD.f, M15: PrimeLevelsBlack


EURUSD.f, M5: PrimeLevelsBlack


Inputs page 1


Inputs page 2 


  • Doblece: For the code enabling the indicator to work with platforms with unconventional Point digits number (0.00001 and 0.001). Also for adding two more customizable line levels which default to 66 and 33, as these are places where price usually stops and bounces.
  • Domas4: For the code enabling the indicator to be set to automatically not display above any time frame, as set by the user.
  • Shimodax: For the idea and some core code to get started with (ref: SweetSpots.mq4).
Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.

Closed_LOSS Closed_LOSS

Closure of all positions with a loss. (You can indicate a specific instrument if you want to).