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.12.04 10:59

Last Price - expert for MetaTrader 5

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

votes: 16
lastprice.mq5 (10.75 KB)view
rts.set (0.16 KB)

A scalper that trades depending on the last deal on the open interest side. It is known that on a centralized market a chart is plotted depending on the last deal made on the market side. Therefore, this robot watches that deal and opens positions depending on where its price goes.

The robot's feature is that it opens positions without slippage. Parameters are configured to RTS futures.


The expert advisor launch date and its position are marked on the figure.


  • In order to aviod drawdown, the last deal must be greater or less than Ask and Bid prices. Otherwise you may lose out on the spread.
  • It is possible to specify the maximum allowed spread for opening a position, just to be safe.
  • Deal volumes also affect the potential profit. It was noted that the volume equal to 1 generates income more often (that is when dealing with the "extreme mode" of the expert advisor - when the minimum deviation of the deal price is only slightly greater than spread).

Translated from Russian by MetaQuotes Software Corp.
Original code:

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.