Forum

EA MessageBox displays on monitor not displaying MT4

Hi; Got hardware setup to trade MT4 as follows: Laptop with second monitor attached which is used for MT4 only. Works just fine. Except; messages displayed by the EA on screen using MT4 MessageBox command are always shown on the laptop monitor not the monitor I use for MT4 trading. Why is that and

EA function not displaying indicator

Hi wrote this code (MQL4) that checks currency pairs to contain USD and install the DXY indicator if so. It works as intended except when going between non USD pairs and USD pairs, the DXY is not visible despite MT4 -> Terminal -> Experts tab tells me the Custom Indicator was loaded and installed

Website data fetching error.

Hi; I wrote this indicator that initializes and loads successfully (see image below). I get no execution error either except I get a fetching error (but no error code) The code I use compiles without errors as well: //+------------------------------------------------------------------+ //|

Pulling user input from one file into another

Hi I have an indicator where the user defines their profit ratio. The int value is stored in the var "YourRatio". I am not using the SetIndexBuffer() function In a separate EA that is not related to that indicator, I would like to retrieve the value of YourRatio. I can use the iCustom command but

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