Author: dog
matunnel

This script is a foundational blueprint for a custom technical analysis tool designed to be displayed directly on a trading chart. Based on its underlying logic, here is a breakdown of how it functions for the end-user:

Core Purpose

The primary objective of this script is to create visual data markers on your price chart. It is designed to act as a "container" that allows the trading platform to plot three distinct lines simultaneously. These lines are intended to represent different sets of data, which can be used to identify trends, price levels, or mathematical calculations in real-time.

Visual Components

The script initializes three separate data streams, each assigned a unique color for easy identification on your screen:

  • Line 1 (Yellow): The first data sequence.
  • Line 2 (Aqua): The second data sequence.
  • Line 3 (Blue): The third data sequence.

Because these are set to "Line" styles, they will appear as continuous paths moving across your chart from left to right, allowing you to track changes over time.

How it Operates

  1. Setup Phase: When you first load the script, it prepares the workspace by defining how many "buffers" (data slots) it needs. It tells the platform to reserve space for three specific lines so that the computer knows exactly where and how to draw the information.
  2. Dynamic Updating: The script contains a framework to monitor the number of bars (the vertical price candles) currently visible on your screen. This ensures that as new price data comes in, the script is prepared to process it.
  3. Placeholder Logic: Currently, the script serves as a structural shell. It has established the "skeleton" for the three colored lines, providing the necessary infrastructure to hold and display information, while awaiting specific mathematical rules to determine exactly what data those lines will eventually represent.

In summary, this tool provides the visual framework to display three synchronized data streams on your chart, organized by color to help you distinguish between different market signals at a glance.

Miscellaneous
Implements a curve of type %1
15 Views
0 Downloads
0 Favorites
matunnel
//+------------------------------------------------------------------+
//|                                                     matunnel.mq4 |
//|                                                              dog |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "dog"
#property link      "http://www.metaquotes.net"

#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 Yellow
#property indicator_color2 Aqua
#property indicator_color3 Blue
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexStyle(2,DRAW_LINE);
   SetIndexBuffer(2,ExtMapBuffer3);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+

Comments