Lode Loyens / Publications
Forum
User input during EA execution?
Hi; I know you can build a "setup menu" that lets users set parameters for the EA. No problem there. What I want to know is if it is possible to let users enter a value during execution of the EA? I am presently using the MessageBox command with Yes/No buttons and track the values of the buttons
What is proper order of execution?
Hi; wrote this code that will send order entry confirmation to monitor screen and cell phone. if (TimeStamp != Time[ 0 ]) { SendNotification ( "SELL Order Possible! / " +Currency); MessageBox ( "SELL Order Possible! (" +Currency+ " /
How to color background?
Hi; I have the following code that will draw a level in the installed CCI. if (PositiveLevel > 0 ) { // Check if the object already exists (to avoid duplicating it) if ( ObjectCreate ( "BuyZone" , OBJ_HLINE , subWindow, 0 , 0 ) == 0 ) //subwindow defined earlier { // If
What is the Max length of a string?
Hi; I have the following code below to automatically increase the string instead of having to manually enter each character. // Display Divider ObjectCreate ( "Divider" , OBJ_LABEL , 0 , 0 , 0 ); ObjectSet ( "Divider" , OBJPROP_CORNER , WhichCorner); // defined earlier ObjectSet
Ascii Symbol (up arrow) not displaying on chart
Hi, can anyone tell me what I am doing wrong here? I get no errors. Thank you. // Create a unique label name string labelName = "AsciiCharacter30" ; // Delete the label if it already exists ObjectDelete (labelName); // Create a text label on the chart if ( ObjectCreate ( 0
Remove background color in CCI
Hi; I wrote an EA that draws buy/sell zones in the CCI window that are preset in menu options. It works as intended. Except I would like to get rid of the zone background color and display the zone in the actual color as preset in menu options. So 35 level in blue without the blue background and -35
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