Spread Tracker

  • Post category:MT4
  • Post comments:0 Comments
Spread Tracker

Tracking Variable Spreads with an Offline Chart

GENERAL DESCRIPTION:

MANY BROKERS USE VARIABLE SPREADS BUT SOMETIMES IT IS NOT ALWAYS APPARENT WHAT THE AVERAGE VALUES ARE AND HOW THEY MAY CHANGE OVER A PERIOD OF TIME.

THE ATTACHED INDICATOR CODE (VERSION 1.0 AND 2.0), WILL TRACK THE ASK TO BID PRICE SPREAD AND DUMP IT IN OHLC FORMAT TO A STANDARD HISTORY FILE, WHICH CAN BE OPENED AND MONITORED IN REAL-TIME AS AN OFFLINE CHART. THE INDICATOR CODE IS NOT A TRUE INDICATOR IN THE ORIGINAL SENSE BUT RATHER A MEANS OF GENERATING AN OFFLINE CHART OF THE OHLC DATA FOR THE VARIABLE SPREAD OVER TIME.

JUST ATTACH THE INDICATOR TO A M1 CHART AND TO GENERATE AN OFFLINE CHART CONTAINING MINUTE DATA OF THE SPREAD. ALTERNATIVELY, INSTEAD OF A M1 CHART, YOU CAN USE FOR EXAMPLE A H1 CHART AND OBTAIN HOURLY DATA FOR THE SPREAD.

WITH THE OFFLINE CHART OPEN, ONE COULD FOR EXAMPLE APPLY A SIMPLY MOVING AVERAGE INDICATOR IN ORDER TO MONITOR THE AVERAGE SPREAD OVER TIME.

THE CODE USES DLL CALLS SO REMEMBER TO ENABLE THE “ALLOW DLL IMPORTS” OPTION.

NB! PLEASE NOTE, THAT YOU WILL HAVE TO WAIT FOR A FULL BAR TO COMPLETE BEFORE ANY DATA WILL BE AVAILABLE IN THE OFFLINE CHART. IF YOU ARE USING AN H1 BASE CHART FOR EXAMPLE, THEN YOU WILL HAVE TO WAIT A FULL HOUR BEFORE AT LEAST ONE BAR IS AVAILABLE IN THE OFFLINE CHART.

UPDATE: VERSION 2.0 NOW HAS NO NEED FOR A NON-STANDARD TIME FRAME AS WAS THE CASE IN THE FIRST VERSION. IT NOW USES A SYMBOL SUFFIX INSTEAD WHILE MAINTAINING THE SAME TIME FRAME OF THE ORIGINAL. VERSION 1.0 IS STILL AVAILABLE FOR THOSE THAT PREFER IT.

VERSION 2.0 INSTRUCTIONS:

JUST ATTACH THE INDICATOR TO A CHART AND SELECT A SYMBOL SUFFIX FOR THE OFFLINE CHART CONTAINING SPREAD DATA. THIS WAY, THE OFFLINE CHART WILL HAVE THE SAME TIME FRAME AS THE ORIGINAL BUT THESYMBOL NAME WILL HAVE THE SYMBOL SUFFIX APPENDED TO BOTH THE CHART NAME AS WELL AS THE HISTORY FILE NAME.

VERSION 1.0 INSTRUCTIONS:

JUST ATTACH THE INDICATOR TO A CHART AND SELECT A NON-STANDARD TIME FRAME FOR THE OFFLINE CHART CONTAINING SPREAD DATA.


Download Now

Leave a Reply