Indicator Mode Values Checker

Download script
Author: Copyright � 2006 , David W or Renee A Honeywell , 9/17/2006
Indicator Mode Values Checker

This tool is designed as a diagnostic monitor for MetaTrader users who want to see the underlying raw data from two specific custom technical indicators: Solar_Wind and Triggerlines.

Instead of just looking at the visual lines on a trading chart, this script extracts the numerical values produced by those indicators in real-time and displays them as a text summary directly on your screen.

How the Logic Works

1. Data Retrieval The script acts as a "bridge." It reaches out to the two external indicators and pulls their most recent calculations. It specifically looks for different "modes" or data buffers within those indicators:

  • For Solar_Wind, it identifies three distinct data streams.
  • For Triggerlines, it identifies four distinct data streams.

2. Value Scaling To ensure the numbers are presented in a format that is easier to read or more compatible with certain trading calculations, the script multiplies every piece of data it retrieves by a factor of 1,000. This shifts the decimal point, making the output more uniform for analysis.

3. Real-Time Monitoring The logic runs continuously. As the market moves and prices change, the indicators update their values, and this script simultaneously captures those new numbers.

4. Visual Reporting Finally, the script gathers all these processed numbers and organizes them into a clean, readable text block on your trading platform's comment area. It displays the results side-by-side:

  • It lists the three primary values for Solar_Wind.
  • It lists the four primary values for Triggerlines.

Summary for the User

Think of this as a dashboard. While the original indicators provide you with visual trends on your charts, this script provides you with a "live feed" of the raw numbers driving those trends. It is an excellent way to verify that your indicators are calculating correctly or to monitor multiple data points at a single glance without cluttering your main chart area.

7 Views
0 Downloads
0 Favorites
Indicator Mode Values Checker
/*-----------------------------+
|			       |
| Shared by www.Aptrafx.com    |
|			       |
+------------------------------*/

//+------------------------------------------------------------------+
//|                                Indicator Mode Values Checker.mq4 |
//|      Copyright © 2006 , David W or Renee A Honeywell , 9/17/2006 |
//|                                        transport.david@gmail.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006 , David W or Renee A Honeywell , 9/17/2006"
#property link      "transport.david@gmail.com"

// indicator extern int 's

// Solar_Wind
extern int period=10;

// Triggerlines
extern int Rperiod = 15;
extern int LSMA_Period = 5;

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   Comment("");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
   
   // Solar_Wind uses 3 buffers
   double ind1_mode0 = iCustom( Symbol(), 0, "Solar_Wind", period, 0, 0)*1000; // make sure the icustom string name is exact "Solar_Wind"
   double ind1_mode1 = iCustom( Symbol(), 0, "Solar_Wind", period, 1, 0)*1000;
   double ind1_mode2 = iCustom( Symbol(), 0, "Solar_Wind", period, 2, 0)*1000;
   double ind1_mode3 = 0;
   double ind1_mode4 = 0;
   double ind1_mode5 = 0;
   double ind1_mode6 = 0;
   double ind1_mode7 = 0;
   
   // Triggerlines uses 4 buffers
   double ind2_mode0 = iCustom( Symbol(), 0, "Triggerlines", Rperiod, LSMA_Period, 0, 0)*1000; // make sure the icustom string name is exact "Triggerlines"
   double ind2_mode1 = iCustom( Symbol(), 0, "Triggerlines", Rperiod, LSMA_Period, 1, 0)*1000;
   double ind2_mode2 = iCustom( Symbol(), 0, "Triggerlines", Rperiod, LSMA_Period, 2, 0)*1000;
   double ind2_mode3 = iCustom( Symbol(), 0, "Triggerlines", Rperiod, LSMA_Period, 3, 0)*1000;
   double ind2_mode4 = 0;
   double ind2_mode5 = 0;
   double ind2_mode6 = 0;
   double ind2_mode7 = 0;
   
   
   
   Comment("\n",
           "\n","  Solar_Wind * 1000 =  ind1_mode0:  ",ind1_mode0,"  ,  ind1_mode1:  ",ind1_mode1,"  ,  ind1_mode2:  ",ind1_mode2,
           "\n",
           "\n","  Triggerlines * 1000 =  ind2_mode0:  ",ind2_mode0,"  ,  ind2_mode1:  ",ind2_mode1,"  ,  ind2_mode2:  ",ind2_mode2,"  ,  ind2_mode3:  ",ind2_mode3);
   
   
   
   
//----
   return(0);
  }
//+------------------------------------------------------------------+

Comments