Skip to content

CB ChartAll

TradingToolCrypto edited this page Jan 13, 2024 · 22 revisions

CB ChartALL Video

CB ChartAll robot for Metatrader5 has the ability to update all exchange markets real-time all within one robot. Select the exchange and you are ready to go.

Supported Exchanges

  • Binance Spot (.com and .us)
  • Binance Futures USDT and COIN
  • Bybit (spot, linear, inverse)
  • Kucoin (spot)
  • Mexc (spot)

Add Exchange Url to WebRequests

Need help with adding the urls? Read More.. Exchange names in Bold have trading functionality with the Pro package.

CB_ChartAll Parameters (Main Robot)

  • Exchange_Number (Select an exchange name from the dropdown menu)
  • Other parameters removed (depreciated).

CB ChartAll Parameters

Push AlgoTrading Button (green is on)

If algotrading is disabled, you will get an error 5200 (no web-request will be sent). This robot requires the correct url to the exchange and algotrading must be on.

Market Watch

Right click on a market name -> Chart Window and a new chart will open. The chart will be empty at first. Go to the M1 timeframe and the chart will show one bar after one minute. Bars are created real time every minute.

Attach Scripts for Historical Data

Historical_1Day script or other scripts can be attached to any of the charts. The chart will begin displaying the downloaded historical data with every api call. Depending on the amount of data, the time to complete the download will vary. 1 year of data can take an hour while a weeks worth of data will take about one minute.

Market Watch Remove Markets

In order to remove the markets from the MarketWatch window, we need to close any charts that belong to that market. Once the chart is closed, we can right click on the MarketWatch window and select Hide ALL. This will hide the markets from our view.

Market Watch Add Markets

If you want to add the markets again, you can change the chart timeframe that the CB_ChartALL robot is attached to. By changing the timeframe, the robot will run the initialization logic again and import the markets back into the MarketWatch window.

CB ChartALL Updater

This is the latest robot added to the CB ChartAll family. There are two tasks that this robot tries to solve.

  • Downloads historical data for ALL markets created by the CB ChartALL robot
  • updates the candlestick database automatically from the tick data collected from the CB ChartALL robot

How do these robots work.

CB ChartALL fetches real time updates from the exchange and saves the data into the MT5 tick database. MT5 tick database only creates the candlesticks realtime if the chart for that market is open. Therefore, if the chart is closed, the bars are not created while collecting the ticks (Flaw in MT5).

Since MT5 does not create the candlestick data automatically from the tick database, the CB ChartALLUpdater completes that task automatically. The robot will update the candlestick database for all markets even if the chart is not open.

Robots run synchronously, which means only one task is completed at a time. While the first task is being completed (downloading the historical data) the second task is being ignored (creating the candlestick database). How do we complete two tasks at the same time. We run two CB ChartALLUpdater robots.

CB ChartALL Updater Parameters

You will deploy two robots at first. Robot one will keep running to update the candlestick database real-time. Robot two will be removed from the chart automatically when its task is completed (downloading the historical data).
Robot One Settings

  • ImportData : False
  • CreateNewBarEveryMinute : True

Robot Two Settings

  • ImportData : True
  • CreateNewBarEveryMinute : False

Symbols listed under Crypto Exchange

CB ChartAll builds a database for all markets once you attach the robot to the chart. The amount of historical data is limited to the amount of time you have had the robot attached to the chart. Run the robot on VPS or a 24/7 desktop and build up the database with real time exchange data.