Friends 1
Lode Loyens
Added topic 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
Lode Loyens
Added topic 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
Lode Loyens
Added topic 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
Lode Loyens
Added topic 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
Lode Loyens
Added topic 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
Lode Loyens
Added topic 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
Lode Loyens
Added topic 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
Lode Loyens
Added topic 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
Lode Loyens
Added topic 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
Lode Loyens
Added topic 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
Lode Loyens
Added topic financing fee
Hi  Does anyone know how to calculate in EA the financing fees charged by the broker? I wrote this code to calculate daily profit (see below).  It works fine.  Except it does not include the broker's daily financing fee. 
Lode Loyens
Added topic Displaying percentage
Hi; I am using this formula to calculate percentage: Profits= NormalizeDouble ((OrderProfit()/orderProf)* 100 , 2 );  (orderProf is preset to $200). It works fine, except it doesn't display properly: Any suggestions? Thanks a bunch
Lode Loyens
Added topic Button aesthetics
Hi; Wrote this code to display two buttons that represent an OFF/ON switch.  They work as intended. With both buttons set to OFF mode they are the same exact size.  However when I press one of the buttons to change its mode, the button
Lode Loyens
Added topic Stop constant alert to my phone
Hello; I wrote a routine that will activate a trailing stoploss.  It works as it should. I have the MT4 platform forward activities to my phone under notifications (Tools -> Options -> Notifications) Problem  I am having is that every
Lode Loyens
Added topic Hide Object Label
Hi I created a trading stats window.  When I hover the mouse pointer over a description it will popup a tiny window (almost like a button) that shows the name I gave to the object.  ObjectCreate ( "Title" , OBJ_LABEL , 0 , 0 , 0 ); In my
Lode Loyens
Added topic meaning of symbol in code line numbers
Hi; I get 0 errors, 0 warnings after compiling my EA. Yet in the coding line numbers it shows this symbol The code to the right of this symbol is: // set variables needed to calculate lotsize double MaxRisk2 = MaxRisk, LotSize2 = 0 , newBalance =
Lode Loyens
Added topic From doubles to integers
Hi; I want to perform a number of calculations that use double variables (Open[], Close[], Ma Value, iHighest, iLowest, etc.) My problem is that no matter which conversion function I use (NormalizeDouble, MathAbs, MathRound, (int), etc.) I can not
Lode Loyens
Added topic Determine Candle Close
Hello; Is there a way I can determine an actual candle close as it happens? Both iClose [] and Close[] don't do that.   Any suggestions are welcome. Thank you
Lode Loyens
Added topic How to display text in front of the chart?
Hi  I wish to display certain chart stats on my chart.  In general chart properties I have "chart in foreground" unchecked. I use the following code to display the stats but the chart (bars) still move over the text, instead of behind it
Lode Loyens
Added topic Coloring a portion of a candle
Hi  Can anyone tell me how I can color (or highlight) a portion of the current candle on a chart? I have code I wrote that checks for a possible run-away candle that is based on a certain number of pips The code works except I don't know how to
12