Author: Copyright � 2008, Cobraforex
L THV

This script is designed as a visual dashboard for the MetaTrader trading platform. Its primary purpose is to provide traders with a clear, organized on-screen guide that outlines specific entry and exit rules for a particular trading strategy (referred to as the "THV MTF System").

Instead of performing complex calculations or mathematical analysis, this script functions as an informational overlay. It automatically places a series of text labels on the chart to ensure that the trading rules are always visible to the user during live market sessions.

Key features of the visual interface include:

  • System Branding: It clearly identifies the trading system being used and provides the associated website for reference.
  • Entry Guidelines: It lists specific technical conditions required to open a trade, such as identifying "Blue cross hull and cloud" formations or "PA cross blue" signals.
  • Exit Guidelines: It highlights the necessary cues to close a position, including "PA cross blue" indicators or specific changes in candle color.
  • User Interface Positioning: The script is programmed to anchor these labels in a specific corner of the trading chart. This ensures that as price action moves up and down, the instructions remain fixed and easy to read at all times.

In essence, this tool serves as a constant "cheat sheet" or dashboard, helping traders stay disciplined by keeping the core rules of the THV MTF System front and center on their workspace.

8 Views
0 Downloads
0 Favorites
L THV
//+------------------------------------------------------------------+
//|                                                        Label.mq4 |
//|                                     Copyright © 2008, Cobraforex |
//|                                        http://www.cobraforex.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2008, Cobraforex"
#property link      "http://www.cobraforex.com"

#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
//----
  ObjectCreate("THV", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("THV","THV MTF System",12, "Arial Black", Gold);
   ObjectSet("THV", OBJPROP_CORNER, 1);
   ObjectSet("THV", OBJPROP_XDISTANCE, 5);
   ObjectSet("THV", OBJPROP_YDISTANCE, 60);  
//----
//----
  ObjectCreate("THV1", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("THV1","www.cobraforex.com",9, "Arial", Gold);
   ObjectSet("THV1", OBJPROP_CORNER, 1);
   ObjectSet("THV1", OBJPROP_XDISTANCE, 20);
   ObjectSet("THV1", OBJPROP_YDISTANCE, 85);  
//----
//----
  ObjectCreate("THV2", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("THV2","Entry:",12, "Arial Black", Green);
   ObjectSet("THV2", OBJPROP_CORNER, 1);
   ObjectSet("THV2", OBJPROP_XDISTANCE, 50);
   ObjectSet("THV2", OBJPROP_YDISTANCE, 100);  
//----
//----
  ObjectCreate("THV3", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("THV3","Blue cross hull and cloud",10, "Arial", White);
   ObjectSet("THV3", OBJPROP_CORNER, 1);
   ObjectSet("THV3", OBJPROP_XDISTANCE, 2);
   ObjectSet("THV3", OBJPROP_YDISTANCE, 120);  
//----
//----
  ObjectCreate("THV4", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("THV4","PA cross blue",10, "Arial", White);
   ObjectSet("THV4", OBJPROP_CORNER, 1);
   ObjectSet("THV4", OBJPROP_XDISTANCE, 35);
   ObjectSet("THV4", OBJPROP_YDISTANCE, 135);  
//----
//----
  ObjectCreate("THV5", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("THV5","Exit:",12, "Arial Black", FireBrick);
   ObjectSet("THV5", OBJPROP_CORNER, 1);
   ObjectSet("THV5", OBJPROP_XDISTANCE, 53);
   ObjectSet("THV5", OBJPROP_YDISTANCE, 150);  
//----
//----
  ObjectCreate("THV6", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("THV6","PA cross blue or",10, "Arial", White);
   ObjectSet("THV6", OBJPROP_CORNER, 1);
   ObjectSet("THV6", OBJPROP_XDISTANCE, 20);
   ObjectSet("THV6", OBJPROP_YDISTANCE, 170);  
//----
//----
  ObjectCreate("THV7", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("THV7","Candle changes color",10, "Arial", White);
   ObjectSet("THV7", OBJPROP_CORNER, 1);
   ObjectSet("THV7", OBJPROP_XDISTANCE, 12);
   ObjectSet("THV7", OBJPROP_YDISTANCE, 185);  
//----
//----
  ObjectCreate("THV8", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("THV8","Happy Trading, Cobra",10, "Arial", White);
   ObjectSet("THV8", OBJPROP_CORNER, 1);
   ObjectSet("THV8", OBJPROP_XDISTANCE, 6);
   ObjectSet("THV8", OBJPROP_YDISTANCE, 210);  
//----
   return(0);
  }
//+------------------------------------------------------------------+

Comments