Forum

How to read TEXT from the object label ?

I want to pick up some text from the Object. But Object name has some time stamp, so I just want to pick up if the label contains some letters. For example, Object name is "DE1200" sometimes it is "DE1233" So how can I read text from the object? It contains "DE", so my code is below. for ( int

About AccountCompany()

Is there a way to get all list for AccountCompany() in the all over the world broker

How to make a new line of Text label?

Hi, I want to know how to make a new line Text label. ObjectCreate ( "label821" +Time[ 0 ], OBJ_TEXT , 0 , TimeCurrent (), High[ 0 ]+ 300 * Point ); ObjectSetText( "label821" +Time[ 0 ], "ABCDE" +profit, 10 , "Helvetica" , Yellow); It shows ABCDE But I want to make is show A B C D E Is there any

How to know close price of Last Friday

I want to check the close price of Last Friday (time xxxxxxx) For example, now Thirthday and 14:00 I want to know the close price of 16:00 on Last Friday. Below is basic code but I am not sure how to know the time gap between current xxxx and Last Friday time xxxxx. datetime when = ...; int

Add new data into Array

I want to ask someone how to code below. New data 1 comes. I want to add into Array. [1] Then next a new data 3 comes. [2,1] Then next a new data 3 comes. [3,2,1] etc... Can you help

How to detect the order was closed in real time.

I want to detect the current order was closed and total order is decreased. static int intOrdersTotalCurrent = OrdersTotal (); int intOrdersTotalPrevious = intOrdersTotalCurrent; intOrdersTotalCurrent = OrdersTotal (); if ( intOrdersTotalCurrent < intOrdersTotalPrevious ) { //

How to detect pop up alert in MT4

Please tell me your idea. How can we catch pop up alert message from MT4? Below is interesting idea. If we can catch popup alert, we can place BUY or SELL odder in MT4 without icustom code. How can we do this? https://www.hnajmafm.com/index.php?main_page=product_info&amp ;products_id=116741

When MT4 log file is overwritten?

I wonder when MT4 log file is refreshed? I mean if I attach the indicator on the chart, and later, the signal alert comes, and I can see the history of signal alert in MT4 expert tab. But when I open MT4 log file, it is still not saved (refresh and overwritten) the alert message. My goal is to make

Is there any way to FileOpen in another folder?

I found that MT4 can read files with FileOpen only in Files folder in MT4 terminal. Is that true? Is there any way to read files in another folder ? int FileOpen ( string filename, int mode, int delimiter=’;’)

How to check if there is orders which closed within 2hours.

Hi, I need your idea. I want to check if there is orders which closed withing 2hours from current time . If there is closed order within 2hours = true. If there is no closed order within 2hours = false. My code bool OrderClosedwithin2hours() { datetime closetime = CurrentTime()- 2 *??? //How