Forum

help, drawing M5 trend in background on multiple timeframes

Hey, I wanna visualize the M5 trend (sma 20 and sma 500) by drawing rectangles on the full chart height . This should be draw for example for the current week. if M5 sma 20 is over sma 500, draw a green rectangle if M5 sma 20 is under sma500, draw a rectangle in for example peach This should work in

Sorting 2 array with different types

string fxsymbols[ 3 ]; double pipschange[ 3 ]; fxsymbols[ 0 ]= "AUDUSD" ; fxsymbols[ 1 ]= "EURUSD" ; fxsymbols[ 2 ]= "USDJPY" ; pipschange[ 0 ]= 10 ; pipschange[ 1 ]=- 8 ; pipschange[ 2]= 3 ; Hey everyone, I have to arrays that are related to another. That means AUDUSD changed 10 pips, EURUSD

Delete Alerts

Hey community, how can alerts be deleted without shutting the terminal down and restart it again? I like to delete the alert window lets say every hour or every day. Is there a function or so? Thanks a lot

getting the width of an label object

Hi, I have a label object with an OBJPROP_CORNER=CORNER_RIGHT_UPPER. The label shows a dynamic value, so the the width of the label is also dynamic. Because of the upper right corner the label widens to the left side. Question : How can I get the left x-coordinate (means the end to the left) of that

getting width and height of a tiled window

Hi, with the function ChartGetInteger function and the property GET_WIDTH_IN_PIXELS I find out the width e.g. respectivly the height of the chart. Unfortunatly that doesnt work when I tile the window. Let's say I have 2 chart windows tiled in different size and want to know width and height in pixel

CButton, Click to open indicator properties

Hello, I coded an custom indicator which is already on the chart and working. I also coded a button (contains to that indicator) which should open the indicators properties when I click on that button. The button itself works fine (I tested him with Print()). I only need to know the function, method

Shortcut or key to open indicator's properties

Hey everyone, for an EA I can program that for example F7 key is called and the properties of the EA open. For a custom indicator I know I can open via the indicator's list or via double klick on a line or bollinger band or so. Is there a way to call a special key like F7 or programm a user defined

Call OnInit() when a new candle is on the chart

Hey everybody, my indicator draws lines on the chart and on every new day I want the re-initialize the indicator again. In the OnCalculate() function I will put the following: OnCalculate ( const int rates_total, // size of input time series const int prev_calculated, // bars

How To open the expert properties?

Hey everyone, maybe simple question for you. I have a message box in an EA and in case by clicking the OK button I want to open the expert propierties. I still know how to code the message box, but I don't know what to call after the click? Example: if(mycheckbox==IDOK) doing what?? Thanks a lot

previous days high/low

//+------------------------------------------------------------------+ //| PrevDaysHighLow_TEST.mq4 | //+------------------------------------------------------------------+ #property copyright "15.01.2018, Daniel" #property link "http://www.mql4.com"