Forum

Which method is preferred to calculate current price

Hi; There are apparently 3 choices to calculate current price. Which one is preferred and why? SymbolInfoDouble(Symbol(), SYMBOL_BID ); or MarketInfo(Symbol(), MODE_BID); or SymbolInfoTick(Symbol(), MODE_BID); Appreciate an explanation. Thanks

How to show hours on daily chart?

Even with maximum zoom in, MT4 still displays days in the bottom axle on a daily chart. (see image). How can I get this to show hours instead? Thanks

MT4 Template installs only single chart

Hi; Got a question I can't seem to find an answer to, even after searching online. I have an MT4 layout that uses two charts: Chart one: 4hr EURUSD configured with its own indicators Chart two: D EURUSD configured with its own indicators I save this in template directory as a .tpl file When I load

Auto Save File

Hello; I wish to autosave a preset file (yourea.set) in the Presets directory of MT4 I know there is a command to do that for template files (ChartSaveTemplate()) but I can't seem to find a similar command for presets. Does anyone know? Thanks

Software installer for MT4 add ons

Hi; Does anyone know of a software installer that will allow me to install an EA, Preset file and template automatically in MT4? The files are all mine. So nothing shady going on here. I like to know of such a tool because I am planning on selling them. I tried creating a .bat file to do this, but

Removing background color

Hello; I created a custom CCI. It works as intended. Except; the level numbers are displayed in the background color of the accompanying line. How can I get rid off the background color. I tried setting the BGCOLOR to white but that doesn't do a thing. Included are the image and a portion of the

Proper IF statement

Hi; got a question. Is the following a proper IF statement? Example: if (CCIsig > CCI_Max && (CCIdirect== "U" || CCIdirect== "N" )) cciFlag= "buy" ; or should it be: if ((CCIsig > CCI_Max && CCIdirect== "U" ) || (CCIsig > CCI_Max && CCIdirect== "N" )) cciFlag= "buy" ; I much

OrderSymbol() vs Symbol() vs Currency

Hi; I am curious to know: presuming I have a global variable assigned the value of Symbol(). Which expression (see below) would be better to use and what are the differences? Thank you. string Currency= Symbol (); // global variable MarketInfo(OrderSymbol(), MODE_POINT); MarketInfo( Symbol

CCI level zero not drawing unless ...

Hi; I wrote this code (see below) that will draw in predefined levels in the window where the CCI indicator is loaded (subwindow 1). Everything works except that the zero level (which must always be draw in) won't draw in unless I have at least one other level defined. Any suggestions why this is

Why aren't arrows displaying on chart?

Hi I generated simple EA code in MQl4 to display arrows (up and down) at MA Crossover. Parameters for MAs (Fast and Slow) are set in menu as are arrow specifications (width, color, etc.). For reasons that baffle me, my code compiles without error but doesn't seem to work: Arrows are not drawn on