//+------------------------------------------------------------------+ //| 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 color FontColor2 = Black; extern string note3 = "Font Size"; extern int FontSize=20; extern string note4 = "Font Type"; extern string FontType="Times new roman"; 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; double Old_Price2; double SpreadPrice; double DailyOpen; int pf; int init() { if(Digits==2 || Digits==4) pf=1; else pf=10; return(0); } int deinit() { ObjectDelete("Market_Price_Label"); ObjectDelete("Market_Price_Label2"); ObjectDelete("Market_Price_Label3"); ObjectDelete("Daily_Open_Label"); return(0); } int start() { if (Bid_Ask_Colors == True) { if (Bid > Old_Price) FontColor = LawnGreen; if (Bid < Old_Price) FontColor = Red; if (Ask > Old_Price2) FontColor2 = LawnGreen; if (Ask < Old_Price2) FontColor2 = Red; Old_Price = Bid; Old_Price2 = Ask; SpreadPrice = (Ask-Bid)/Point/pf; } DailyOpen = iOpen(NULL,PERIOD_D1,0); string Market_Price2 = DoubleToStr(Ask,Digits); string Market_Price = DoubleToStr(Bid,Digits); string Market_Spread = DoubleToStr(SpreadPrice,0); string DOpen = DoubleToStr(DailyOpen,Digits); ObjectCreate("Market_Price_Label2", OBJ_LABEL, 0, 0, 0); ObjectSetText("Market_Price_Label2", "A " + Market_Price2, FontSize, FontType, FontColor2); ObjectSet("Market_Price_Label2", OBJPROP_CORNER, WhatCorner); ObjectSet("Market_Price_Label2", OBJPROP_XDISTANCE, 2); ObjectSet("Market_Price_Label2", OBJPROP_YDISTANCE, 10); ObjectCreate("Market_Price_Label", OBJ_LABEL, 0, 0, 0); ObjectSetText("Market_Price_Label", "B " + Market_Price, FontSize, FontType, FontColor2); ObjectSet("Market_Price_Label", OBJPROP_CORNER, WhatCorner); ObjectSet("Market_Price_Label", OBJPROP_XDISTANCE, 2); ObjectSet("Market_Price_Label", OBJPROP_YDISTANCE, (FontSize+20)); ObjectCreate("Market_Price_Label3", OBJ_LABEL, 0, 0, 0); ObjectSetText("Market_Price_Label3","S " + Market_Spread, FontSize, FontType, Green); ObjectSet("Market_Price_Label3", OBJPROP_CORNER, WhatCorner); ObjectSet("Market_Price_Label3", OBJPROP_XDISTANCE, 2); ObjectSet("Market_Price_Label3", OBJPROP_YDISTANCE, (FontSize+50)); ObjectCreate("Daily_Open_Label", OBJ_LABEL, 0, 0, 0); ObjectSetText("Daily_Open_Label","D " + DOpen, FontSize, FontType, Green); ObjectSet("Daily_Open_Label", OBJPROP_CORNER, WhatCorner); ObjectSet("Daily_Open_Label", OBJPROP_XDISTANCE, 2); ObjectSet("Daily_Open_Label", OBJPROP_YDISTANCE, (FontSize+80)); }
Sample
Analysis
Market Information Used:
Series array that contains open prices of each bar
Indicator Curves created:
Indicators Used:
Custom Indicators Used:
Order Management characteristics:
Other Features: