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

2014.06.05 09:38

spread_on_chart - indicator for MetaTrader 4

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

votes: 28


Since 2008 the most of the dealing centers began to work with the "floating" spreads. During the night the spreads are often wider. The wide spreads are appear during the news.

The spread increasing can be sufficient, so in such cases some trading systems cannot be profitable. The stop level can be increased several times, it may cause the incorrect work of the Expert Advisors with fixed Stop Loss and Take Profit values.

The Strategy Tester of MetaTrader 4 client terminal uses the last known values of spread, stop level and freeze level, the result is dependent on these values. The Strategy Tester of MetaTrader 5 client terminal uses the historical spread values, the structure of historical data prices has the corresponding field.


The spread_on_chart indicator shows the following values on the chart:

  • spread (the difference between current Ask and Bid);
  • stop level (the minimal distance from the current price to Stop Loss and Take Profit);
  • freeze level (the minimal distance for orders modifying).

It updates every tick.

Input parameters:

  • Corner - chart corner for output. By default - upper left corner is used;
  • XMargin, YMargin - horizontal and vertical margins;
  • Font, Color, Size - font name, font color and font size.


spread_on_chart in the uppwer left cornerspread_on_chart in the lower right corner

File list:

  • spread_on_chart.mq4 - (MetaTrader 4).
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.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

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