Jump to content

Magnified market price modification with floating pips


gringoh

Recommended Posts

Hello,

 

I find the magnified market price indicator very useful to monitor trades when you are not always in front of your screen.

 

Is there somebody who knows how to add the floating pips value information? (Number of pips in profit or loss on this currency since you opened the trade). Green for + and red for -.

 

It could be useful in my manual trading.

 

Regards & thanks in advance for your help,

Gringoh

 

Please find the "magnified market price mq4 code bellow:

 

//+------------------------------------------------------------------+

//| Magnified Market Price.mq4 ver1.4 by Habeeb |

//+------------------------------------------------------------------+

 

#property indicator_chart_window

 

extern string note1 = "Change font colors automatically? True = Yes";

extern bool Bid_Ask_Colors = True;

extern string note2 = "Default Font Color";

extern color FontColor = Black;

extern string note3 = "Font Size";

extern int FontSize=32;

extern string note4 = "Font Type";

extern string FontType="Arial";

extern string note5 = "Display the price in what corner?";

extern string note6 = "Upper left=0; Upper right=1";

extern string note7 = "Lower left=2; Lower right=3";

extern int WhatCorner=1;

 

double Old_Price;

 

int init()

{

return(0);

}

 

int deinit()

{

ObjectDelete("Market_Price_Label");

 

return(0);

}

 

int start()

{

if (Bid_Ask_Colors == True)

{

if (Bid > Old_Price) FontColor = DarkGreen;

if (Bid < Old_Price) FontColor = Red;

Old_Price = Bid;

}

 

string Market_Price = DoubleToStr(Bid, Digits);

 

ObjectCreate("Market_Price_Label", OBJ_LABEL, 0, 0, 0);

ObjectSetText("Market_Price_Label", Market_Price, FontSize, FontType, FontColor);

ObjectSet("Market_Price_Label", OBJPROP_CORNER, WhatCorner);

ObjectSet("Market_Price_Label", OBJPROP_XDISTANCE, 1);

ObjectSet("Market_Price_Label", OBJPROP_YDISTANCE, 1);

}

Link to comment
Share on other sites

Re: [REQ] Magnified market price modification with floating pips

 

modified for 5digit and 6digit brokers.

As for the floating value information. It would be difficult to code.

 

 

 

http://www.4shared.com/file/151735109/386cd94a/Magnified_Market_Price_mod.html

One obvious truth.FOREX IS ANYTHING BUT EASY
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...