On this page
Zero-crossing arrows on the price chart
CCI Arrows draws a blue up arrow when its CCI changes strictly from negative to positive, and a red down arrow for the reverse. It plots arrows on price, without adding a separate CCI oscillator window. An arrow records a calculated event; it does not establish a lasting trend or place an order.
ForexBestRobots edition 1.03 is a marked Apache 2.0 derivative of EarnForex 1.02. It bounds history, makes buffer order explicit, checks MT5 handles and copies, clears invalid readings and standardizes popup details. The five original controls and crossing rule remain. It does not trade or manage stops.
Close CCI 14, strict zero crossings and arrow distance
The default is CCI_Period=14 with PRICE_CLOSE fixed in the code. This differs from the familiar CCI based on Typical Price=(High+Low+Close)/3. Here mean=SMA(Close,N), MD=mean(abs(each Close in the same N-candle window−that window mean)), and CCI=(Close−mean)/(0.015×MD). MD is a mean absolute deviation, not a standard deviation. The independent illustration uses CCI=0 for a flat window.
An up event requires CCI(previous)<0 and CCI(evaluated)>0; a down event requires CCI(previous)>0 and CCI(evaluated)<0. Equality with zero at either reading excludes the event. Touching zero, staying positive or merely crossing +100/−100 does not trigger this program.
For each event, range20 is the highest High minus the lowest Low over 20 candles ending at the evaluated candle. Up-arrow price=Low−0.04×range20; down-arrow price=High+0.04×range20. This is graphical spacing, not ATR or a stop-loss rule. Buffer 0 stores up-arrow prices and buffer 1 down-arrow prices; 0.0 means empty, not a neutral-price trade. The values are prices, not 1/−1 event codes.
Five inputs and their actual defaults
Both platforms have the same five controls. Use a positive period. This edition requires complete adjacent CCI windows and a complete 20-candle price range before plotting an event. Price, arrow size and colours are fixed in source, not extra menu inputs.
| Input | Default | Practical meaning |
|---|---|---|
CCI_Period | 14 | CCI period, default 14; uses Close. A longer period changes the events but does not guarantee fewer losing trades. |
EnableNativeAlerts | false | Popup notifications, disabled by default; independent of the other channels. |
EnableEmailAlerts | false | Email notifications, disabled; configure the terminal Email settings first. |
EnablePushAlerts | false | Push notifications, disabled; configure the terminal Notifications settings first. |
TriggerCandle | Previous | Notification candle only: Previous is the latest completed candle, Current is forming. It does not suppress the current candle’s arrow. |
Real EUR/USD: zero crosses and period sensitivity
These original charts reconstruct archived Yahoo Finance EURUSD=X H1 OHLC in UTC. The price markers follow the strict Close CCI 14 rule and its range-based arrow prices. Letters identify selected events. The CCI panels are added explanations; the downloaded program itself draws only price arrows. These are completed-OHLC illustrations, not MetaTrader screenshots, tick replay or trades.



Provider OHLC are not identified broker-specific Bid/Ask execution prices. Native history and intrabar paths can differ. Spreads, fills and returns were not measured. Chart colours are illustrative; scroll horizontally on narrow screens.
Download the illustrated readings (CSV) · 1Download the illustrated readings (CSV) · 2
Previous controls alerts, not current-arrow visibility
EnableNativeAlerts, EnableEmailAlerts and EnablePushAlerts all start false. Enable any desired channel; there is no master notification switch. Email/push also require terminal setup. Messages include program, symbol, timeframe and arrow direction, without account-name or account-number fields. Downloading activates nothing.
TriggerCandle=Previous checks the latest completed candle for notifications, but both modes calculate and draw the forming candle’s arrow. That arrow can appear or disappear before close. Previous also requires the current chart-bar time to be later than the last attempted alert; Current can attempt opposite directions within one forming bar.
Only the first successful calculation skips notifications: a second tick can notify an eligible latest arrow that already existed on attachment. There is no bulk replay of all historical arrows. A bar without an arrow does not reset the stored alert direction; only an opposite attempted notification changes it. Failed email/push delivery still consumes direction/time. Reattaching resets this state. No cooldown or sound-file input is provided.
Compile the source for your desktop platform
Choose MQ4 for MT4 or MQ5 for MT5. The modified ZIPs contain source, without ready EX4/EX5. No DLL, icon or include dependency is required.
- Download and extract the matching platform ZIP.
- In MetaTrader choose File → Open Data Folder → MQL4 or MQL5.
- Copy the Indicators folder into that directory; upstream is unchanged reference material.
- Open CCI_Arrows_ForexBestRobots.mq4 or .mq5 in the matching MetaEditor, press Compile(F7) and inspect errors.
- Refresh Navigator → Indicators, attach to a demo chart, and inspect history, arrows, settings and Experts/Journal before enabling alerts.
ForexBestRobots has not compiled or executed these sources in MetaTrader. Mathematical and source/index checks do not replace native testing of iCCI, drawing, EA reads, ticks or delivery. Test the compiled program on demo first.
Download CCI Arrows ForexBestRobots edition free
Each ZIP includes modified platform source, untouched original reference source, the full Apache 2.0 license, change log, patch, instructions and SHA-256 checksums. No registration or broker account is required to download.
ForexBestRobots 1.03 identifies our derivative of EarnForex 1.02. Original copyright notices remain and modifications are marked. The original MQ4/MQ5 matches the corresponding official source archive byte for byte. Compile the modified file in the matching MetaEditor.
Free source ZIP · ForexBestRobots 1.03 · Compile in MetaEditor
Lag, current-candle changes and verification limits
CCI measures a deviation from past prices, rather than predicting the next move. A zero crossing can arrive late or reverse repeatedly. A longer period is not automatically more reliable, and a drawn arrow does not define position size, an exit or an order already protected by a stop.
Even with Previous selected, a forming-candle arrow is provisional because that setting affects notifications only. Closed-candle readings can also change after feed corrections. Arrow prices depend on the rolling 20-candle range and must not be treated as a tested stop level.
Independent checks compare Close CCI values, strict events, range/arrow prices and history/notification models. They do not execute MQL or certify native iCCI initialization, intrabar paths, EA reads, alert delivery or strategy returns. This is educational analysis, not a profitability claim.
Frequently asked questions
Are the defaults CCI 20 and Typical Price?
No. This program defaults to period 14 and fixes the applied price to Close. Our related general CCI guide describes a different 20-period Typical Price example.
Why can I see a current arrow with Previous selected?
TriggerCandle selects the notification candle only. Both modes still draw a provisional current-candle arrow; it can disappear before close.
Why are there arrows but no alerts?
All three channels start false. Enable the required channel and terminal settings. First-run skipping, direction state and the Previous time gate also affect attempts.
Is the arrow price a stop-loss or a 1/−1 buffer signal?
Neither. Buffers 0/1 contain up/down arrow prices, with 0.0 empty. Their range-based offset is graphical placement; the program places no stops or trades.
Does the ZIP contain a compiled program?
No. Compile the MQ4/MQ5 source in matching MetaEditor. ForexBestRobots 1.03 has not been compiled or executed natively by ForexBestRobots.
Sources and review scope
The original code and Apache license are pinned to an EarnForex revision. The formula explanation is adapted to the code’s Close price; common Typical Price examples use a different input. Source-level and independent OHLC checks support this review without certifying native execution.