Lode Loyens / Profile
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
Lode Loyens
Added topic Closing all open orders at Friday noon time.
Hi; I have conundrum: I travel a lot and am constantly in different time zones : US, Australia, Europe, Africa, etc. How can I get my EA to auto close all open orders at Friday noon (12pm) regardless of where I am in the world? Do I need to
Lode Loyens
Added topic Show Open Order on active chart only
Hello; Got a conundrum: how can I show open order in MT4 on the active chart only and not on all charts? I use 15M chart for my actual trading. I also have a 1H & 4H chart open to confirm overall market direction as well as most
Lode Loyens
Added topic Multiple Market Watch windows in MT4
I have several watch lists I created in MT4 using the SET option. I wish to display these watch lists all at the same time. How can I do that? I tried opening more Market Watch windows and add a watchlist to each window but that doesn't
Lode Loyens
Added topic Automated execution
Hello; I understand that MT4 platform allows for automatic execution of a script at startup using the command "start terminal.exe <script subdirectory\script name>" (without the double quotes. In my case the actual command is: start
: