Erman Ardianto
Erman Ardianto
Friends 1
Erman Ardianto
Added topic How to get the keyboard function??
Hello, I'm planning to refresh a repaint indicator from inside the indicator, it's similar with using a keyboard shortcut. How to do it? I found an information about it on http://www.metatrader.info/node/167, but it's not working. Anybody know why
Erman Ardianto
Added topic How to code multiple alerts?
Hello, I want to have multiple sound alerts on a certain condition. I try to, but it seems failed. Here is the code : if ( condition_is_meet() and once_a_candle() ) {      Repetition = 10 ;      Alert ( " Arrow
Erman Ardianto
Added topic Problem with EA on Digits+1 broker.
Hello, May be the subject will lead to some confuse, Sorry, but I can't find any other way to say it. Digits+1 broker is those who use 5 digits decimal for GBPUSD, EURUSD, etc (the common broker usually use 4 digits for GBPUSD). My code is : //----
Erman Ardianto
Added topic "shutdown by timeout" message??
Hello, I have an EA that will placing 2 orders (buystop and sellstop) if the current time meet the StartTime input parameter. It's working fine on my terminal but not in his. He sends me the log file and I found this message : 08:13:52 TimeEA
Erman Ardianto
Added topic Manage 5 pairs on 1 chart
Hello, I have a plan to manage 5 pairs on 1 chart. 1 order at a time. If some pairs give buy signal at the same time, it will choose pair with the lower spread to trade on. I can make it with a large number of "if" for every possibility
Erman Ardianto
Added topic Last trade profit/loss?
Hello, Is there any other way to see whether our last EA trade is profit or loss other than : string last ; for ( int i = OrdersHistoryTotal () - 1 , i >= 0 , i -- ) { OrderSelect ( OrdersHistoryTotal () - 1 , Select_by_pos , MODE_HISTORY ) ; if (
Erman Ardianto
Added topic Manages all open order (other pairs too)
Hello, I'm trying to write a code to manage all open orders regardless it's pairs. My idea is to attach it on one pair only but will manage orders from other pairs too. But it seems this code is failed, any idea why? for ( int i = OrdersTotal () - 1
Erman Ardianto
Added topic OrderComment() as an identifier?
Hello, Usually we use OrderMagicNumber () to identify whether the active order opened by given EA or not. Can we always use always OrderComment() for this purpose? Thanks
Erman Ardianto
Added topic Is there any difference if..
I put a variable right after extern variable comparing to in init() function ? Let say we have a bool variable "Trade" Is there any difference if we put it here : #property copyright " Metaquotes " //---- input parameters extern int Lots =
Erman Ardianto
Added topic Error on limit order expiration.
Hello.. I'm using this formula to calculate expiration time of my buy_limit order expire = Time [ 0 ] + ( Period () * 60 ) - 5 ; so the buy limit order will expired at approximately 5 seconds before the candle ended. It's working fine with 15 minutes
Erman Ardianto
Added topic How to catch MT4's activity using stand alone script.
Hello, I was asking the same question on other topic, but this time I try to be more specific. Is there any way to catch (record) MT4's activity (such as alert, or other notification) using an external application? or maybe can we use a stand alone
Erman Ardianto
Added topic Partially closed volume order using an EA
I've heard that we can't close our trade's volume partially using an EA, is it true? For example, we enters the market with 2 lots, after certain price we want to close it partially (1 lot), and left the rest 1 lot in the market. I know we can do it
Erman Ardianto
Added topic Can we making an EA based on indicator's alert only
Hello, Let say I have an indicator in EX4 file, it shows nothing but an alert only, which will tell me to buy, sell and exit the market. Can we make an EA base on this indicator only? Thank you
Erman Ardianto
Added topic What's wrong with these codes?
Hello, This code's purpose is to check if there's any active order opened by this EA. If none, it will open 2 orders, buy and sell. I haven't test it on real market because it's sunday now, but from backtester, there's no trade appear . What's wrong
Erman Ardianto
Added topic Invalid Ticket
Can someone help me to find out what is wrong? I'm writing an EA to put 2 pending order some pips (a lot more than broker's stop level) above and below the opening candle. I'm using the code below to delete the remaining pending order if one of them
Erman Ardianto
Added topic How important?
Hello, How important is to use RefreshRates () function before sending or modifying any order? And if you don't mind, please show me some examples here. Thank you
Erman Ardianto
Added topic Delete a pending order when other order with the same magic number touch SL/TP point
Hello, I'm trying to create an expert which open 2 pending order (buy and sell) on every new candle. When one of the 2 pending orders get triggered, let say the buystop, and touch it's SL/TP, the other pending order will be deleted. How to do that
Erman Ardianto
Added topic How to save last minutes value and it won't change until the candle is change?
Hi all, I want to make an EA using custom indicator, unfortunately it's paint the past. Let's say I want it to open an order when the indicator cross 0 level up from minus level, double indienow = iCustom ( ..., 0 ) ; double indiebefore = iCustom (
Erman Ardianto
Added topic How to code MA of RSI in an EA?
Hello, sorry to bother you again. I want to calculate a MA of RSI in my Expert Advisor , I try to make an array and then calculate it using iMAonArray , but it's not working. Please look at my code double rsi [] ; for ( int i = 0 ; i <= 60 ; i ++
Erman Ardianto
Added topic Window Index?
Hello, I want to create an object on a separate windows. Main Window's Index is 0, how about other separate windows? how can I determine it's index? Thanks
123