gringoh Posted November 11, 2009 Report Share Posted November 11, 2009 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); } Quote Link to comment Share on other sites More sharing options...
osaze Posted November 14, 2009 Report Share Posted November 14, 2009 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 Quote One obvious truth.FOREX IS ANYTHING BUT EASY Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.