Author: Copyright � 2009, robmrj
famacheck

This script serves as a real-time monitoring tool designed to display specific data points from a custom technical analysis indicator called "fama" directly on your trading platform's chart. Instead of executing trades automatically, its primary purpose is to provide you with a clear, organized visual readout of current market trends based on the underlying logic of that specific indicator.

How it Works

The script acts as a bridge between the complex calculations of the "fama" indicator and your visual workspace. It performs the following actions:

  • Data Retrieval: Every time the chart refreshes, the script reaches out to the "fama" indicator and gathers a series of specific numerical values.
  • Historical Tracking: It captures a sequence of eight consecutive data points (labeled b1 through b8). These represent the indicator's current state as well as its immediate past movements, allowing you to see how the trend is evolving over time.
  • Real-Time Visualization: The script compiles all eight of these values into a clean, easy-to-read text list. This information is then displayed as an on-screen comment on your trading chart.

Key Features for the User

  • Trend Observation: By displaying multiple consecutive values, the script allows you to observe the "momentum" of the indicator at a glance. You can see if the values are rising, falling, or stabilizing.
  • Simplified Monitoring: Rather than having to manually interpret complex lines or shapes on a chart, this tool consolidates the most important numerical outputs into a simple text summary in one location.
  • Customizable Parameters: The script utilizes several adjustable settings (such as Range, Fast/Slow Moving Averages, and Filters). While these are governed by the "fama" indicator itself, they ensure that the data you see on your screen is tailored to your specific trading style and timeframe preferences.

In essence, this tool transforms complex technical data into a simplified monitoring dashboard, helping you keep track of the indicator's behavior in real-time without cluttering your workspace.

4 Views
0 Downloads
0 Favorites
famacheck
//+------------------------------------------------------------------+
//|                                                    famacheck.mq4 |
//|                                      |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, robmrj"
#property link      "http:"

//---- input parameters
extern int Range1 = 10;
extern int FastMA1 = 3;
extern int SlowMA1 = 30;
extern int filter1 = 20;
extern int n1 = 2;
extern int h1 = 10;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
double b1, b2, b3, b4, b5, b6, b7, b8;
b1 = iCustom(Symbol(), 0, "fama", Range1, FastMA1, SlowMA1, filter1, n1, h1, 0, 0);
b2 = iCustom(Symbol(), 0, "fama", Range1, FastMA1, SlowMA1, filter1, n1, h1, 1, 0);
b3 = iCustom(Symbol(), 0, "fama", Range1, FastMA1, SlowMA1, filter1, n1, h1, 2, 0);
b4 = iCustom(Symbol(), 0, "fama", Range1, FastMA1, SlowMA1, filter1, n1, h1, 3, 0);
b5 = iCustom(Symbol(), 0, "fama", Range1, FastMA1, SlowMA1, filter1, n1, h1, 4, 0);
b6 = iCustom(Symbol(), 0, "fama", Range1, FastMA1, SlowMA1, filter1, n1, h1, 5, 0);
b7 = iCustom(Symbol(), 0, "fama", Range1, FastMA1, SlowMA1, filter1, n1, h1, 6, 0);
b8 = iCustom(Symbol(), 0, "fama", Range1, FastMA1, SlowMA1, filter1, n1, h1, 7, 0);

string scomment= "-----------------------------";
scomment = scomment + "\n" + "b1: " + b1;
scomment = scomment + "\n" + "b2: " + b2;
scomment = scomment + "\n" + "b3: " + b3;
scomment = scomment + "\n" + "b4: " + b4;
scomment = scomment + "\n" + "b5: " + b5;
scomment = scomment + "\n" + "b6: " + b6;
scomment = scomment + "\n" + "b7: " + b7;
scomment = scomment + "\n" + "b8: " + b8;

Comment (scomment);


//----
   return(0);
  }
//+------------------------------------------------------------------+

Comments