META TRADER 4 THREAD NOW ON KRESLIK.COM

Moderator: moderators

marc
rank: <50 posts
rank: <50 posts
Posts: 11
Joined: Sat Jan 12, 2008 8:55 pm
Reputation: 0
Gender: Male

Postby marc » Tue Jan 15, 2008 6:24 pm

Hi, Skyline!

I downloaded your new indicator and I do not see on my chart on the upper right corner your suggested TP and so on.

THX

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

global
rank: <50 posts
rank: <50 posts
Posts: 3
Joined: Mon Jan 14, 2008 12:21 pm
Reputation: 0
Gender: Male

Postby global » Tue Jan 15, 2008 6:39 pm

marc wrote:Hi, Skyline!

I downloaded your new indicator and I do not see on my chart on the upper right corner your suggested TP and so on.

THX
Marc, on my 17inch screen I found setting price x offset to 160 and price y offset to -125 fixed the problem.
You might have to experiment a bit .. hope this helps.

cheers
global

global
rank: <50 posts
rank: <50 posts
Posts: 3
Joined: Mon Jan 14, 2008 12:21 pm
Reputation: 0
Gender: Male

Postby global » Tue Jan 15, 2008 6:51 pm

Thanks Skyline,

That's very handy ;-)

Skyline
rank: <50 posts
rank: <50 posts
Posts: 39
Joined: Tue Jan 16, 2007 1:27 pm
Reputation: 0
Gender: Male
Contact:

Postby Skyline » Tue Jan 15, 2008 7:10 pm

Thx Guys , I'm glad that you like this nice indicators ;)

@Marc yes you have to play a little bit with the x.offset and y.offset parameters and adjust them to be able to see the indicator on charts ;)

marc
rank: <50 posts
rank: <50 posts
Posts: 11
Joined: Sat Jan 12, 2008 8:55 pm
Reputation: 0
Gender: Male

Postby marc » Tue Jan 15, 2008 7:14 pm

global wrote:
marc wrote:Hi, Skyline!

I downloaded your new indicator and I do not see on my chart on the upper right corner your suggested TP and so on.

THX
Marc, on my 17inch screen I found setting price x offset to 160 and price y offset to -125 fixed the problem.
You might have to experiment a bit .. hope this helps.

cheers
global


Hi, Global!

Look at chart attached. "Suggested TP and Pips Available" are missing.

That's what I wanted to say. I do not know how to solve it.

THX
Attachments
missing.jpg
missing.jpg (94.12 KiB) Viewed 4663 times

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

Skyline
rank: <50 posts
rank: <50 posts
Posts: 39
Joined: Tue Jan 16, 2007 1:27 pm
Reputation: 0
Gender: Male
Contact:

Postby Skyline » Tue Jan 15, 2008 7:27 pm

marc wrote:
Hi, Global!

Look at chart attached. "Suggested TP and Pips Available" are missing.

That's what I wanted to say. I do not know how to solve it.

THX


Oh ok yes you have to put on your chart the latest _TRO_RANGE_EZ_P indicator that I posted few posts ago ...and don't forget to change the offsets ;)

marc
rank: <50 posts
rank: <50 posts
Posts: 11
Joined: Sat Jan 12, 2008 8:55 pm
Reputation: 0
Gender: Male

Postby marc » Tue Jan 15, 2008 9:51 pm

Skyline wrote:
marc wrote:
Hi, Global!

Look at chart attached. "Suggested TP and Pips Available" are missing.

That's what I wanted to say. I do not know how to solve it.

THX


Oh ok yes you have to put on your chart the latest _TRO_RANGE_EZ_P indicator that I posted few posts ago ...and don't forget to change the offsets ;)


Done it and working.

THX

soul
rank: <50 posts
rank: <50 posts
Posts: 1
Joined: Sun Jan 06, 2008 4:58 am
Reputation: 0
Gender: None specified

Postby soul » Thu Jan 17, 2008 4:21 pm

Skyline wrote:ahhhhhh I cannot stop ehehhe :D

Added some other cosmetics to the BZ_Skyline indicator (price showed on lines) :)

Image

Code: Select all

//+------------------------------------------------------------------+
//|                                                  _BZ_Skyline.mq4 |
//|                                                    Skyline, 2008 |
//|                                      http://www.forexpertutti.it |
//+------------------------------------------------------------------+
#property copyright "Skyline,2008"
#property link      "www.forexpertutti.it"

#property indicator_chart_window
#property  indicator_buffers 7
#property  indicator_color1  White
#property  indicator_color2  Aqua
#property  indicator_color3  Red
#property  indicator_color4  LimeGreen
#property  indicator_color5  LimeGreen

extern double myEntryTrigger   = 4 ;
extern double myProfitTarget   = 10 ;
extern double myStopLoss       = 7 ;

extern color  myHourColor   = DarkGray ;
extern int    myStyle       = STYLE_SOLID;

double OpenLine[];
double BuyLine1[];
double BuyLine2[];
double SellLine1[];
double SellLine2[];
double TargetLine1[];
double TargetLine2[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE,STYLE_DOT);
   SetIndexBuffer(0,OpenLine);   
   SetIndexStyle(1,DRAW_LINE,STYLE_DASH);
   SetIndexBuffer(1,BuyLine1); 
   SetIndexStyle(2,DRAW_LINE,STYLE_DASH);
   SetIndexBuffer(2,SellLine1); 
   SetIndexStyle(3,DRAW_LINE,STYLE_DOT);
   SetIndexBuffer(3,TargetLine1); 
   SetIndexStyle(4,DRAW_LINE,STYLE_DOT);
   SetIndexBuffer(4,TargetLine2);     
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
   int limit;
//----

   if( TimeHour(Time[0] ) != TimeHour(Time[1]) )
     {
               
     double level= (High[1] + Low[1] + Close[1]) / 3;
     SetTimeLine("HourStart", "Hour", 0, White, level+10*Point); // draw the vertical bars that marks the time span
     }


   //---- last counted bar will be recounted
   if(counted_bars>0) counted_bars--;
   
   limit=Bars-counted_bars;
   
   for (int i=0; i<limit; i++)
   {
    int BarShift   = iBarShift(NULL,PERIOD_H1,Time[i],true);
    double OpenH1  = iOpen(NULL,PERIOD_H1,BarShift);
    OpenLine[i]    = OpenH1;
    BuyLine1[i]    = OpenH1+myEntryTrigger*Point;
    SellLine1[i]   = OpenH1-myEntryTrigger*Point;
    TargetLine1[i] = OpenH1+myProfitTarget*Point;
    TargetLine2[i] = OpenH1-myProfitTarget*Point;   
   }
//----
   DisplayText();
   
   return(0);
  }
 
void DisplayText()
{

 double OpenH1 = iOpen(NULL,PERIOD_H1,0);
 // Text for Open Price
 ObjectDelete("OpenText");
 ObjectDelete("SellEntry");
 ObjectDelete("BuyEntry");
 ObjectDelete("ProfitTarget1");
 ObjectDelete("ProfitTarget2");
 ObjectCreate("OpenText",OBJ_TEXT,0,Time[0],OpenH1);
 ObjectSetText("OpenText","Open price - "+DoubleToStr(OpenH1,Digits),8,"Verdana",White);
 // Text for Sell Entry
 ObjectCreate("SellEntry",OBJ_TEXT,0,Time[0],OpenH1-myEntryTrigger*Point);
 ObjectSetText("SellEntry","Sell entry - "+DoubleToStr(OpenH1-myEntryTrigger*Point,Digits),8,"Verdana",Red);
 // Text for Buy Entry
 ObjectCreate("BuyEntry",OBJ_TEXT,0,Time[0],OpenH1+myEntryTrigger*Point);
 ObjectSetText("BuyEntry","Buy entry - "+DoubleToStr(OpenH1+myEntryTrigger*Point,Digits),8,"Verdana",Aqua);
 // Text for ProfitTarget1
 ObjectCreate("ProfitTarget1",OBJ_TEXT,0,Time[0],OpenH1+myProfitTarget*Point);
 ObjectSetText("ProfitTarget1","Buy exit - "+DoubleToStr(OpenH1+myProfitTarget*Point,Digits),8,"Verdana",LimeGreen); 
 // Text for ProfitTarget2
 ObjectCreate("ProfitTarget2",OBJ_TEXT,0,Time[0],OpenH1-myProfitTarget*Point);
 ObjectSetText("ProfitTarget2","Sell exit - "+DoubleToStr(OpenH1-myProfitTarget*Point,Digits),8,"Verdana",LimeGreen);

}

//+------------------------------------------------------------------+
void SetTimeLine(string objname, string text, int idx, color col1, double vleveltext)
{
   string name= "[PIVOT] " + objname;
   int x= Time[idx];

   if (ObjectFind(name) != 0)
      ObjectCreate(name, OBJ_TREND, 0, x, 0, x, 100);
   else {
      ObjectMove(name, 0, x, 0);
      ObjectMove(name, 1, x, 100);
   }
   
   ObjectSet(name, OBJPROP_STYLE, myStyle);
   ObjectSet(name, OBJPROP_COLOR, myHourColor);
   
   if (ObjectFind(name + " Label") != 0)
      ObjectCreate(name + " Label", OBJ_TEXT, 0, x, vleveltext);
   else
      ObjectMove(name + " Label", 0, x, vleveltext);
           
   ObjectSetText(name + " Label", text, 8, "Arial", col1);
}


Thx Skyline and TRO for your great work ! :D

User avatar
TheRumpledOne
rank: 10000+ posts
rank: 10000+ posts
Posts: 15544
Joined: Sun May 14, 2006 9:31 pm
Reputation: 3035
Location: Oregon
Real name: Avery T. Horton, Jr.
Gender: None specified
Contact:

Postby TheRumpledOne » Wed Jan 23, 2008 6:29 pm

You're welcome.
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!

Please do NOT PM me with trading or coding questions, post them in a thread.

User avatar
TheRumpledOne
rank: 10000+ posts
rank: 10000+ posts
Posts: 15544
Joined: Sun May 14, 2006 9:31 pm
Reputation: 3035
Location: Oregon
Real name: Avery T. Horton, Jr.
Gender: None specified
Contact:

Postby TheRumpledOne » Thu Jan 24, 2008 5:06 pm

Image

_TRO_PLOT_IND_MP plots an indicator's values from 8 different time frames in real time.

_TRO_PLOT_IND_MP was sent out to people who have made donations as another THANK YOU for their support.
IT'S NOT WHAT YOU TRADE, IT'S HOW YOU TRADE IT!



Please do NOT PM me with trading or coding questions, post them in a thread.

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.


Return to “MetaTrader”