Codes

A new indicator to see the range bound period and an Expert Advisor similar need help for MetaTrader 4

I wrote a new indicator to find the range bound period, then we can place order when the price break the range bound

Forum

how to express

hi when i wrote: for(i=0;i<10;i++) { macd[i]=iCustom(Symbol(),0,"MACD",5,13,1,0,i) } if(macd[0]>macd[1]) Print("yes"); the result is 'if' - too complex expression what should i do of that? please help, thanks

get shape on EA

hi, how can I get EA code to descript the various shape of bars or MACD? such as double bottom , head and shoulder? some examples for reference? Thanks

why don't go on for trade

hi, i wrote an EA. when test, it just do few trade but don't go on. please anyone have a look at it and let me know the mistake? thanks

how Sleep() use?

hi, i do Sleep() in EA, why no useful? somebars=(Period()*60*1000); OrderSend(Symbol(),OP_SELL,LotsOptimized,Bid,3,0,0,"",MAGICMA,0,Blue); Sleep(somebars); Print(TimeCurrent()); but----------------------- 23:49:48 2005.02.04 10:24 ϵͳ1-3-7 EURAUD,H1: open #7 sell 0.10 EURAUD at 1.68435 ok 23:49:48

An new indicator to see the range bound period and an EA similar need help

hi, everyone, For searching the good time to place order, i'd like to find the range bound period. in my opinion, it should be a good market after the range bound. then i wrote the indicator named RangeBoundMA. it based on the different prices among the 3 SMA lines that the periods are 38,140,210

what is the difference among different currency?

hi guys, i did backtest in different currency by the same EA. but the results get me so suprised. AUDUSD AUDJPY. this EA just want to follow the slow MA lines trend. when slow MA up, we buy when fast MA lines cross up it. as new to forex, i have no experience in these currencys. would someone tell

new indicator crated but failed in the separate window

hi, this is a new indicator that i made to see how the MA lines changes. it is not the first indicator i created, but no lines in the seperate window. i checked the code again and again but still nothings wrong found. i copy the code to mql file named "test" and test it work well. anyone who please

color set in the backtest chart window

hi, i set the different MA lines to different color such as 7 MA to White, 38 MA to Red and 140 MA to Blue. however, when i do backtest and then open the chart window, all the MA lines become to Red, i have to change them manually everytime. Can be them done as the same as preset in the original

can draw on the chart window when something happen?

hi, i want to draw lines or arrow on the chart window when something happen. can anyone tell me how to do it or which function? it must be on the chart window not separate window. i know how to create the indication on the separate window. such as: int start() { //----when something happened, draw

looking for help of new ea

hi, I got a new EA as above but something wrong. I want to buy when MA38 cross MA140 and close it when MA7 cross MA38. I test it on AUDCAD,M15 between 2012.04.25 to 2012.04.26. It should buy at 12:15 and close at 16:00. But the result is it buy at 12:45 and close at 19:29. Would you please kindly