Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Tick Scalper Helper - tick chart and one-click trading panel for MetaTrader 5 - expert for MetaTrader 5

Views:
119
Rating:
(1)
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Tick Scalper Helper is a manual trading utility for traders who work on very short time frames and want to see every price change. It replaces the time-based chart view with a compact tick chart and adds a panel for fast order handling. One tick is one bar, buy/sell/close buttons are always at hand, bid and ask lines move with every tick, and pending orders can be placed at the exact price you click. It can also be tested in the Strategy Tester. The product uses no DLL, reads no files and makes no web requests.

Tick chart

  • Each tick is drawn as one bar, 2 pixels wide, so as many ticks as possible fit on the screen. Up ticks are green, down ticks red, unchanged ticks grey.
  • A strip at the bottom shows each tick as a coloured mark, taller for larger price moves.
  • The + and - buttons group ticks: 1, 2, 4, 8 ... ticks per bar.
  • Optional time scale: a fixed number of pixels per second instead of the compact layout.
  • Light and dark mode. Colours are inputs.
  • Live BID and ASK lines with price tags, updated on every tick.
  • Vertical zoom: drag the price axis to zoom, drag the chart to pan, double-click the axis (or press Y Auto) to return to automatic fitting to the visible ticks.
Tick scalper chart 1

    Trading panel

    • BUY and SELL buttons and a lot size field.
    • Optional Take Profit and Stop Loss in points. Both are off by default. A distance smaller than the broker's minimum (stops level plus spread) is raised to that minimum.
    • Close Buy, Close Sell, Close Profit (only profitable positions) and Close All, for the chart symbol.
    • Orders are sent with a pre-built request to keep processing time on the terminal side short. Actual execution time depends on your broker, connection and server.
    • Every order request is checked. If a request cannot be sent or the server rejects it, the reason is shown on the chart and written to the Experts log.
    • Open positions, pending orders, Stop Loss and Take Profit levels are drawn on the chart with side, volume and current distance in points.

    Pending orders at the clicked price

    Action Result
    Ctrl + left click on the chart Pending BUY at the price under the cursor (limit or stop, chosen automatically)
    Shift + left click on the chart Pending SELL at the price under the cursor (limit or stop, chosen automatically)
    Key held, mouse moving Crosshair previews the price and the order type
    Price inside the broker's stops level Order is not sent; a message is shown

    Strategy Tester and backtesting

    The product can be tested in the MetaTrader 5 Strategy Tester in the following ways:

    Tester mode Panel and tick chart Demonstration rule Typical use
    Visual mode Fully available. Buttons can be clicked while the test runs. On by default (input InpBtAuto); can be switched off to trade manually only. Practise order handling on historical ticks at the speed you choose.
    Non-visual mode Not drawn (faster test). On by default (input InpBtAuto). Unattended test of order handling.
    Optimisation Not drawn. On by default. Custom criterion from OnTester(): net profit relative to equity drawdown. Compare input sets of the demonstration rule.
    Live or demo chart Fully available. Never active. Manual trading only.

    The demonstration rule waits for a number of consecutive ticks in one direction, opens one position with a fixed Stop Loss and Take Profit, and closes it by SL, TP or after a maximum holding time. Before each order it checks symbol trade mode, volume and free margin. It exists for testing and demonstration only and is not a recommendation to trade this rule. A session line on the chart shows closed trades, the share of winning trades and the net result since the start. For the most realistic result use the "Every tick based on real ticks" model. Tester results depend on tick quality, spreads, commissions, execution delay and broker conditions, and say nothing certain about future trading.

    Input parameters

    Group Parameter Default Description
    Trading InpLots 0.01 Default lot size
    Trading InpDeviation 30 Maximum slippage in points
    Trading InpMagic 0 Magic number (the demonstration rule uses this value + 1)
    Trading InpTPOn false Take Profit enabled at start
    Trading InpTPPoints 50 Take Profit distance in points
    Trading InpSLOn false Stop Loss enabled at start
    Trading InpSLPoints 50 Stop Loss distance in points
    Trading InpPendingClick true Ctrl/Shift + click places pending orders
    Tick chart InpTicksPerBar 1 Ticks per bar at start
    Tick chart InpMaxTicksPerBar 4096 Maximum ticks per bar for the + button
    Tick chart InpBarWidth 2 Width of each tick/bar in pixels
    Tick chart InpLineWidth 2 Line thickness in pixels
    Tick chart InpTimeMode false Time-scaled horizontal axis at start
    Tick chart InpPxPerSecond 10.0 Time mode: pixels per second
    Tick chart InpPadPercent 5.0 Vertical padding of the automatic zoom, in percent
    Tick chart InpSkipUnchanged true Ignore ticks where the BID did not change
    Tick chart InpPreloadTicks 10000 Ticks loaded from history at start (live charts)
    Display InpDarkMode true Dark mode at start
    Display InpShowBidAsk true Show BID and ASK lines
    Display InpShowLevels true Show positions, pending orders, SL and TP
    Display InpColUp / InpColDown green / red Up and down colours
    Display InpColAsk teal ASK line colour
    Display InpColBuyLevel / InpColSellLevel blue / orange Buy and sell level colours
    Display InpRenderMs 15 Chart refresh interval in milliseconds
    Backtest InpBtAuto true Run the demonstration rule in the Strategy Tester (never on live charts)
    Backtest InpBtTicks 4 Entry: consecutive ticks in one direction
    Backtest InpBtTP 40 Take Profit in points
    Backtest InpBtSL 60 Stop Loss in points
    Backtest InpBtMaxSpread 0 Maximum spread to enter, in points (0 = off)
    Backtest InpBtMaxHoldSec 60 Close the position after N seconds (0 = off)
    Backtest InpBtCooldownSec 10 Pause after each entry in seconds

    How to start

    1. Attach the product to the chart of the symbol you trade.
    2. Allow Algo Trading in the terminal and on the product's Common tab.
    3. Set the lot size in the panel and use the buttons.
    4. Move the mouse over the word "Info" in the panel for a list of mouse actions.

    Requirements and notes

    • MetaTrader 5, hedging or netting accounts.
    • Works on the symbol of the chart it is attached to; position and order handling is for that symbol only.
    • The product uses the chart area for its own drawing. Your original chart settings (chart type, grid, scales, colours) are restored when the product is removed.

    Risk warning

    Trading leveraged products involves a high risk of loss. This product is a tool for order handling and chart display. It does not make trading decisions on live or demo accounts and does not promise or imply any profit. Test on a demo account first.

    Support

    Please use the comments section of this product page or MQL5 private messages. Include the product version (shown at the top of the chart), your terminal build and your broker's symbol name.

    Version history

    Version Changes
    1.7 Positions whose SL/TP are inside the broker's freeze level are not closed until price moves away; failed demo closes are retried at most once per second
    1.6 Strategy Tester support, demonstration rule for unattended tests, session statistics, stops-level and margin checks
    1.5 Hover help ("Info") replaces on-screen explanations
    1.4 Draggable vertical zoom, pending orders at the clicked price, full input list
    1.3 Vertical zoom fits visible ticks only
    1.2 Live bid and ask lines
    1.1 Order result checking, compact ticks, time scale, trade levels on chart
    1.0 First release

    Supertrend Scalper with Breakeven Win Rate Panel Supertrend Scalper with Breakeven Win Rate Panel

    A Supertrend scalping EA with 14 switchable filters and a self-measuring panel that shows the actual win rate next to the win rate needed to break even after real spread, so you can see whether a setting has an edge or only a high percentage.

    ADX Auto Range ADX Auto Range

    Range boxes that are drawn when market trend strength weakens

    Accelerator Oscillator (AC) Accelerator Oscillator (AC)

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

    MACD Signals MACD Signals

    Indicator edition for new platform.