Navigation´╝ÜHome > Content >

0.8Minuette.mq4

Time: 2012-01-07 | Download file:0.8Minuette.mq4

  
#property copyright "luke~fx"
#property link      "elliot wave "
 
#include 
 
 
//+------ CHANGE HERE CHARACTER PARAMETERS -----------------------+
 
string Text1 = "r.";  // Enter Text to place on screen - leave only quotes to not print (i.e "A" > "" ) 
string Text2 = "rr.";  // Enter Text to place on screen
string Text3 = "rrr.";  // Enter Text to place on screen
string Text4 = "r s.";  // Enter Text to place on screen
string Text5 = "s.";  // Enter Text to place on screen
string Texta  = "f .";  // Enter Text to place on screen 
string Textb  = "g .";  // Enter Text to place on screen 
string Textc = "h .";  // Enter Text to place on screen 
string Textd  = "j . ";  // Enter Text to place on screen 
string Texte  ="k .";  // Enter Text to place on screen 
string Textw  = "l  .";  // Enter Text to place on screen 
string Textx  = "m.";  // Enter Text to place on screen 
string Texty = "n .";  // Enter Text to place on screen 
string Textxx  = "m.";  // Enter Text to place on screen 
string Textz  ="o .";  // Enter Text to place on screen 


string Text_font = "EWA DASH FONT"; // font of text
int Text_fontsize = 13; // size of text
color Text_color = Red; // color of text
 
int TextBarsAhead2 = 10; // # bars to space 2nd letter from first
int TextBarsAhead3 = 20; // # bars to space 3rd letter from first
int TextBarsAhead4 = 30; // # bars to space 4th letter from first
int TextBarsAhead5 = 40; // # bars to space 5th letter from first  
int TextBarsAheada = 50; // # bars to space 5th letter from first   
int TextBarsAheadb = 60; // # bars to space 5th letter from first   
int TextBarsAheadc = 70; // # bars to space 5th letter from first   
int TextBarsAheadd = 80; // # bars to space 5th letter from first   
int TextBarsAheade = 90; // # bars to space 5th letter from first   
int TextBarsAheadw = 100; // # bars to space 5th letter from first   
int TextBarsAheadx = 110; // # bars to space 5th letter from first   
int TextBarsAheady = 120; // # bars to space 5th letter from first   
int TextBarsAheadxx = 130; // # bars to space 5th letter from first   
int TextBarsAheadz= 140; // # bars to space 5th letter from first
//+------------------------------------------------------------------+   
//+-----------------------------SCRIPT CODE--------------------------+
int start()
  { 
   double price = WindowPriceOnDropped(); // find the price point where dropped
   datetime Time1 = WindowTimeOnDropped(); // find the time point where dropped
   int TimeNow = TimeCurrent(); // get the current time ( makes name unique)
  
   datetime Time2 = Time1+TextBarsAhead2*Period()*60;
   datetime Time3 = Time1+TextBarsAhead3*Period()*60;
   datetime Time4 = Time1+TextBarsAhead4*Period()*60;
   datetime Time5 = Time1+TextBarsAhead5*Period()*60;
   datetime Timea = Time1+TextBarsAheada*Period()*60; 
   datetime Timeb = Time1+TextBarsAheadb*Period()*60; 
   datetime Timec = Time1+TextBarsAheadc*Period()*60; 
   datetime Timed = Time1+TextBarsAheadd*Period()*60; 
   datetime Timee = Time1+TextBarsAheade*Period()*60;
   datetime Timew = Time1+TextBarsAheadw*Period()*60; 
   datetime Timex = Time1+TextBarsAheadx*Period()*60; 
   datetime Timey = Time1+TextBarsAheady*Period()*60; 
   datetime Timexx = Time1+TextBarsAheadxx*Period()*60; 
   datetime Timez = Time1+TextBarsAheadz*Period()*60;
  
   string gap = ""; // spacing between text characters
   string text = Text1+gap+Text2+gap+Text3+gap+Text4+gap+Text5+gap+Texta+gap+Textb+gap+Textc+Textd+gap+Texte+Textw+gap+Textx+gap+Texty+Textxx+gap+Textz; // put the text in a line
  
   TextToPrint ("Wave labels1" + TimeNow, Text1, Text_fontsize, Text_font, Text_color, Time1, price); //print 1st letter
   TextToPrint ("Wave labels2" + TimeNow, Text2, Text_fontsize, Text_font, Text_color, Time2, price); //print 1st letter
   TextToPrint ("Wave labels3" + TimeNow, Text3, Text_fontsize, Text_font, Text_color, Time3, price); //print 1st letter
   TextToPrint ("Wave labels4" + TimeNow, Text4, Text_fontsize, Text_font, Text_color, Time4, price); //print 1st letter
   TextToPrint ("Wave labels5" + TimeNow, Text5, Text_fontsize, Text_font, Text_color, Time5, price); //print 1st letter
   TextToPrint ("Wave labelsa" + TimeNow, Texta, Text_fontsize, Text_font, Text_color, Timea, price); //print 1st letter
   TextToPrint ("Wave labelsb" + TimeNow, Textb, Text_fontsize, Text_font, Text_color, Timeb, price); //print 1st letter
   TextToPrint ("Wave labelsc" + TimeNow, Textc, Text_fontsize, Text_font, Text_color, Timec, price); //print 1st letter
   TextToPrint ("Wave labelsd" + TimeNow, Textd, Text_fontsize, Text_font, Text_color, Timed, price); //print 1st letter
   TextToPrint ("Wave labelse" + TimeNow, Texte, Text_fontsize, Text_font, Text_color, Timee, price); //print 1st letter
   TextToPrint ("Wave labelsw" + TimeNow, Textw, Text_fontsize, Text_font, Text_color, Timew, price); //print 1st letter
   TextToPrint ("Wave labelsx" + TimeNow, Textx, Text_fontsize, Text_font, Text_color, Timex, price); //print 1st letter
   TextToPrint ("Wave labelsy" + TimeNow, Texty, Text_fontsize, Text_font, Text_color, Timey, price); //print 1st letter
   TextToPrint ("Wave labelsxx" + TimeNow,Textxx, Text_fontsize, Text_font, Text_color, Timexx, price); //print 1st letter
   TextToPrint ("Wave labelsz" + TimeNow, Textz, Text_fontsize, Text_font, Text_color, Timez, price); //print 1st letter
         
   return(0);
  }
//+------------------------------------------------------------------+
 
void TextToPrint(string TextName, string LabelText, int FontSize, string FontName, color TextColor, datetime Time0, double Price0)
  {
    if(StringLen(LabelText)<1) return;
    ObjectCreate(TextName, OBJ_TEXT, 0, Time0, Price0);
    ObjectSetText(TextName, LabelText, FontSize, FontName, TextColor);
    
  }
         

Recommend