Forex



Go Back   Forex Trading > Discussion Areas > General Discussion
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-25-2008, 07:38 AM
Senior Member
 
Join Date: Sep 2007
Location: Poland
Posts: 272
Pucio is on a distinguished road
Spread & Stop Loss indicator.

Hello,

Can you help me, please to change in this indicator the code in order to move labels from left upper corner to right upper corner ?

This indi shows me present spread and stop loss of my Broker.

Pucio
Attached Images
File Type: gif labels_525.gif (24.0 KB, 917 views)
Attached Files
File Type: mq4 Spread&StopLoss.mq4 (1.6 KB, 170 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 09-25-2008, 03:18 PM
Senior Member
 
Join Date: Feb 2007
Posts: 986
FerruFx is on a distinguished road
Quote:
Originally Posted by Pucio View Post
Hello,

Can you help me, please to change in this indicator the code in order to move labels from left upper corner to right upper corner ?

This indi shows me present spread and stop loss of my Broker.

Pucio
These aren't "labels" but "comments". Comments can't be moved as the only place where they are displayed is top left corner. The coding must be modified to display Labels instead of comments.

FerruFx
__________________
FerruFx / www.ervent.net - Professional Coding Services (EAs/Indicators/Alerts)

BBVPS.com - Reliable Windows VPS For MT4 Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 09-25-2008, 10:51 PM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 676
cja is on a distinguished road
Quote:
Originally Posted by Pucio View Post
Hello,

Can you help me, please to change in this indicator the code in order to move labels from left upper corner to right upper corner ?

This indi shows me present spread and stop loss of my Broker.

Pucio
This is a quick fix just alter the distance between the " " gap=" < alter this distance > "; to shift the comments

Spread&StopLoss.mq4
__________________
My Disadvantage is that I am not a Trained Programmer - My Advantage is that I am not a Trained Programmer.
http://cjatradingtools.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 09-25-2008, 11:03 PM
Senior Member
 
Join Date: Oct 2005
Location: Porto/Portugal
Posts: 333
hellkas is on a distinguished road
Quote:
Originally Posted by cja View Post
This is a quick fix just alter the distance between the " " gap=" < alter this distance > "; to shift the comments

Attachment 69480
I don't need the indicator ..
But I must say that you are a very nice person .. Always willing to help ..

applause.gif
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 09-25-2008, 11:26 PM
Senior Member
 
Join Date: Sep 2007
Location: Poland
Posts: 272
Pucio is on a distinguished road
Cja,

Thank you

I added Alert to this indi, just small contribution,

Pucio
Attached Files
File Type: mq4 Spread&StopLoss.mq4 (2.3 KB, 209 views)

Last edited by Pucio; 09-25-2008 at 11:55 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 09-26-2008, 03:13 AM
Senior Member
 
Join Date: Feb 2007
Posts: 986
FerruFx is on a distinguished road
Quote:
Originally Posted by cja View Post
This is a quick fix just alter the distance between the " " gap=" < alter this distance > "; to shift the comments

Attachment 69480
Yes it's a possibility but when you resize your window, the comments might disappear outside the chart.

FerruFx
__________________
FerruFx / www.ervent.net - Professional Coding Services (EAs/Indicators/Alerts)

BBVPS.com - Reliable Windows VPS For MT4 Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 09-26-2008, 07:41 AM
Senior Member
 
Join Date: Sep 2007
Location: Poland
Posts: 272
Pucio is on a distinguished road
Yes, Mladen wrote me that, comment can not be placed anywhere else but the left upper corner, that I need to create an object in order to make it be placeable anywhere. Something like this but I am not such a good coder :



void setObject(string name,string text,int x,int y,color theColor, string font = "Arial",int size=10,int angle=0)
{
string labelName = StringConcatenate(labelNames,name);

//
//
//
//
//

if (ObjectFind(labelName) == -1)
{
ObjectCreate(labelName,OBJ_LABEL,0,0,0);
ObjectSet(labelName,OBJPROP_CORNER,Corner);
if (angle != 0)
ObjectSet(labelName,OBJPROP_ANGLE,angle);
}
ObjectSet(labelName,OBJPROP_XDISTANCE,x);
ObjectSet(labelName,OBJPROP_YDISTANCE,y);
ObjectSetText(labelName,text,size,font,theColor);
}

Last edited by Pucio; 09-26-2008 at 07:43 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 09-27-2008, 06:34 AM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 676
cja is on a distinguished road
Labels

Quote:
Originally Posted by Pucio View Post
Yes, Mladen wrote me that, comment can not be placed anywhere else but the left upper corner, that I need to create an object in order to make it be placeable anywhere. Something like this but I am not such a good coder :



void setObject(string name,string text,int x,int y,color theColor, string font = "Arial",int size=10,int angle=0)
{
string labelName = StringConcatenate(labelNames,name);

//
//
//
//
//

if (ObjectFind(labelName) == -1)
{
ObjectCreate(labelName,OBJ_LABEL,0,0,0);
ObjectSet(labelName,OBJPROP_CORNER,Corner);
if (angle != 0)
ObjectSet(labelName,OBJPROP_ANGLE,angle);
}
ObjectSet(labelName,OBJPROP_XDISTANCE,x);
ObjectSet(labelName,OBJPROP_YDISTANCE,y);
ObjectSetText(labelName,text,size,font,theColor);
}
This should do all you require, here are the new inputs

Normal_StopLoss = 5;
Normal_Spread = 2;
BarsShift_Side = 0;
BarsShift_UP_DN = 0;
Text_Size = 10;
Text_color = Gold;
Text_Font = "Arial";
CornerToUse = 1;
WindowToUse = 0;
Show_Alert = false;
Play_Sound = false;

Spread&StopLoss v1.ex4
__________________
My Disadvantage is that I am not a Trained Programmer - My Advantage is that I am not a Trained Programmer.
http://cjatradingtools.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 09-27-2008, 08:42 AM
Senior Member
 
Join Date: Sep 2007
Location: Poland
Posts: 272
Pucio is on a distinguished road
Cja,

Thank you a lot for this version made by you. Great job. This indi really helps to monitor present spread and stop loss of the Broker in MT4. Credit to you, Cja.

If this is not a problem may you post this indi version also in in mql4 format, please ?

Regards

Pucio
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 09-29-2008, 02:33 PM
Senior Member
 
Join Date: Sep 2007
Location: Poland
Posts: 272
Pucio is on a distinguished road
Show_Alert = false;
Play_Sound = false;

Does not work as it should be. When Paly_Sound is false (Show_Alert = true at that time);Play Sound still rings.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
forex spread indicator, spread, spread indicator, spread indicator forex, spread indicator metatrader, stop loss, stop loss indicator


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
stop loss in pips baron193 Metatrader 4 7 10-06-2008 03:17 PM
EA with trailing stop loss junglelion Expert Advisors - Metatrader 4 2 12-26-2006 07:12 AM
Auto Stop Loss EA Linuxser Setup Questions 8 08-10-2006 07:28 PM
trailing stop loss software? Ruf Tools and utilities 4 06-17-2006 09:34 AM
Stop/Loss script dennisros Metatrader 4 4 12-12-2005 05:15 PM


All times are GMT. The time now is 05:43 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.