Cromo
Cromo
Cromo
Added topic How to use FOR with iCustom code
I want to scan indicator buffer (from current bar to old bar )with using iCustom code. for ( int J = 0 ; J < 1000 ; J++) { double up = iCustom (Fx_Symbol,TIME_FRAME, "indicator file" , 0 ,J)!= EMPTY_VALUE ; double dn = iCustom
Cromo
Added topic Update the highest price
Hi, I have a question. I want to record the current profit and if the profit is more than current profit, then I want to update the price. Current $10 5min later, it changed to $20, So I want to monitor this value. static double MaxProfit; if
Cromo
Added topic How to use ObjectGetValueByShift("Horizontal Line", 0);
HI, I need your help. I draw the horizontal Line on the chart by manual. And I want the EA to read the value (price) But when I draw it by manual, object name has some numbers. --> 38987 What is this number? TO read the price of the line, I want
Cromo
Added topic How to read TrendLIne(object) value
Hello, I want to read the price from the trend line object. I just want to get the price (upper and lower line ) on the current bar.      for ( int k= 0 ;k< ObjectsTotal ( 0 , 0 , OBJ_TREND );k++)
Cromo
Added topic How to pick up the newest object property?
Hi, I want to pick up the most recent object color. I have the indicator of rectangle. and I can read the color of the object and time of object draw.    string name; for ( int i= ObjectsTotal ()- 1 ;i>= 0 ;i--){
Cromo
Added topic mq4_How to use two-dimentional array for order tickt
HI, please give me some advice. Below is the code sample to select the 2nd oldest opened order. I want to do similar things. I want to put ticket number and order profit in 2-dimentinal array. For example, [Ticket# , Profit] #12, $12, #14, -$1, 
Cromo
Added topic Why not open order in different broker.
I am wondering why sometime EA is not opened order in some broker. Broker A is OK. But Broker B, no orders. What is the check point of the code
Cromo
Added topic MQ4-How to know buffer signal on the chart which the indicator is attached?
I have a question. If I attach the indicator on the chart. This indicator has arrow with buffer signal. I want to read this arrow or buffer signal from EA. But I don't want to use iCustom . How can I read signal from the attached indicator? Any good
Cromo
Added topic How to lock the indicaotr with password
I have just protect the indicator with password key. extern string Password = "The password"; void OnTick () {      if ( Password != "The password" )     {         
Cromo
Added topic How to check daily_profit with mq4
Hi, I use below code to check daily profit. I will stop EA when daily profit reached to the target. But when I first time attach the EA on the chart and check the daily profit value, it shows account equity . I wonder why... It should be zero when I
Cromo
Added topic I want to entry with popup alert
Is it possible to open order with pop up alert. For example, some indicator has no buffer and has popup alert. If ALERT =TRUE, then I can see "CALL" alert message as popup. Then I want to place order with Ordersend code. Is it possible
Cromo
Added topic How to code order shift delay?
I want to make candle stick delay when place orders. For example, buy condition matched and place order. if (buy_condition== 1 ){ Buy_order } How can I code (add) to delay order? For example, if buy_condition is matched and after 5 candle stick
Cromo
Added topic Please tell me about ordermodify
I have a question. I have already ordered and after that I want to change only takeprofit by using order modify but I don't want to change stoploss. I want to modify only takeprofit. double TP=0;
Cromo
Added topic How to place order with object arrow.
HI, I just want to place order when arrow signal (object ) appear on a current bar since I can not use icustom . I think I can check object to find arrow and if arrow signal time=Time[0], then place order. Is this correct? void get_signal(){
Cromo
Added topic How to remember if the order was closed by ****
Is it possible to know if the order was closed by 1. normal tp/sl 2. Manual close 3. closed by **pip 4. closed by profit dollers. etc..... Is it possible to put mark (comments?) when CloseOrder? If it is possible to leave a foot print, I think I can
Cromo
Added topic {MQL4) How to know OrdersTotal() is decreased.
Hi,I want to know how to code the OrdersTotal() is changed(decreased). For example, I have 5 orders now. OrdersTotal()=5. If one order is closed (either TP or SL)  and OrdersTotal() is now 4 orders, The number of order was  decreased. How
Cromo
Added topic EA work on Renko chart ?
I am just wondering if there are any special code for Renko chart? I mean the same icustom is used for Renko chart? double Buff1= iCustom ( NULL ,TimeScale, "Renko indi" , 1 , 1 ); //buy In renko chart, how about TImeScale? If EA attached on renko
Cromo
Added topic How to separete input="a,b,c"
input string = "a,b,c,d" ; I want to know how to separate by comma, strings and print them. For example, I want to make output using Print like,,,, My name is a. I like b. Do you know c? I hate c
Cromo
Added topic I want to put Close[0] into buffer.
I want to put Close[0] price value into buffer. I coded. #property strict    #property indicator_buffers 1 double Buffer[]; int OnInit ()   {      SetIndexBuffer ( 0 ,Buffer); } void OnTimer ()
Cromo
Added topic How to know the last closed order info.
I want to know the profit for the last order. The last (newest) closed order number  is OrdersHistoryTotal () - 1 Is this correct? So, I coded like; I think I don't need to use FOR function because I just want to know the last (newest order
123