Cromo
Cromo
Cromo
Added topic 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
Cromo
Added topic About AccountCompany()
Is there a way to get all list for AccountCompany() in the all over the world broker
Cromo
Added topic 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
Cromo
Added topic 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 
Cromo
Added topic 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
Cromo
Added topic 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;   
Cromo
Added topic 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
Cromo
Added topic 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
Cromo
Added topic 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=’;’)
Cromo
Added topic 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()
Cromo
Added topic How to make bool name ?
I want to make below code (difine) bool LIST_EURUSD; bool LIST_GBPUSD; ...... many pairs string list =[EURUSD,GBPUSD, .....]; for ( int W= 0 ; W<list.length; W++) { bool "LIST_"+list[w]; }  Something wrong with it. Can you point it out
Cromo
Added topic EA parameter change is not applied sometimes.
I want to know if you face the same problem. I mean when I changed parameter in EA ( forex robot ) , I sometimes face the problem that the parameter change is not applied. I don't know why. Have you had a same issues before? To fix the problem I
Cromo
Added topic Is there any differecent between 2 code?
I wonder there is a difference between below code. because I want to make backtest speed faster. if (a> 0 ) Print ( "OK" ); if (a!= 0 ) Print ( "OK" ); If you know some other ideas to make backtest faster even in everytick mode with icustom
Cromo
Added topic How to know the flag changed from false to true?
I just want to know if the flag changed false to true. Below is my just idea... bool FLAG= false ; if (A becomes B ) FLAG= true . if (FLAG changed from false to true ) ....... How can I know the timing when the flag change? I mean how to compare
Cromo
Added topic How to avoid order modify error1?
Hi, I have already some orders with tp and sl. But I want to scan all orders and modify ONLY tp=0. Here is my code. void TP_zero(){      for ( int aa= OrdersTotal () - 1 ; aa>= 0 ; aa--) {
Cromo
Added topic How to use iMACD
Hi, it is very strange. I want to read MACD signal of TF M1 on TFM5. I mean I used below code to read MACD of TFM1 and when I attach EA on TFM5, I can not read MACD signal of M1 from M5 chart. On real chart, it shows the value, but when I do backtest
Cromo
Added topic How to read object value
Hi, I want to read Trend line value (price) Below Trend line Name has some time value(time stamp). But I want to ignore the time stamp and just want to read the 2nd value. How can I read the Object price2?    double price2 = ObjectGet(
Cromo
Added topic mq4 how to know the next day comes
I want to know when the time changed to next day. I think I can use Hour()=0, but If (Hour()== 0 ) Alert ( "Next day comes!" ); But I guess when doing backtest , it is skipped this code when I don't use every-tick mode. Any good idea
Cromo
Added topic How to code to know the order was closed.
Can you give me some idea? I have some orders now. I want to know the order (one of them) was closed , then I want to know immediately. Do you have any idea how to know about it by mq4 code
Cromo
Added topic How to know if the number is 4,8,12,16----
Hi, I want to know if the value is 4 ,8,12,16 .... 4 times XXXXX For example, I have 13. double N= 13 ; if (N/ 4 )<point{ Alert ( "It is 4 times value" ); } Can you help
123