Forum

Problem with drawing lines not from bar to bar

Dear all I would like to know, is it possible for an indicator to draw a line that points are not assigned bar by bar? For instance: point 1 at bar[2], point 2 at bar[5], point 3 at bar[10], point 4 at bar[11], point 5 at bar[17]…… If yes, is there any indicator provided by MT4 does similar

Why does this indicator keep looping in MT4?

Dear all When I added this indicator to chart, MT4 keeped looping all the time! (indicator "pha_1" ran normally) What's the problem? Thanks for your help! wing #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 SandyBrown #property indicator_color2 Chartreuse

Can my broker see the detail of my EA?

Dear all I am new in MQL4 programming and would like to have your help, please. The first thing I want to know is whether my broker can see the detail of my EA if I put it in demo account or even real account to run it? If yes, is there any method to avoid it??? Otherwise, the broker will be the

which folder can I find Accelerator Oscillator?

Dear all I want to use Accelerator Oscillator as icustom function but I can't locate it. Would anyone please help? Thanks a lot! wing

expression on global scope not allowed

Dear all, what can I do? //+------------------------------------------------------------------+ //| testing.mq4 | //| | //|

why does arraycopy not work?

Dear all here is my code: //+------------------------------------------------------------------+ //| testing.mq4 | //| | //|

minimum tick time difference

Dear all What is the minimum tick time difference between a new quote and an old one should be? Is it accurate to use this code to measure? int old_tt; double old_bid; int start() { int start= GetTickCount (); double a = MarketInfo( "EURUSD" ,MODE_BID); if ( old_bid != 0 && a != old_bid )

Why can't I attach this EA to a chart?

Dear all When I try to drag this EA to EURUSD M5 chart or choose "Attach to a chart" command, MT4 just gave me no response. Does anybody know why? Thanks for your kind help! wing int old_tt1, old_tt2, old_tt3; double old_bid1, old_bid2, old_bid3; datetime time, time1; int signal_up; int start()

why does my function return no result?

Hi all, below is my code: int init() { //---- indicators int a[] = { 4 , 5 , 6 }; int c; for ( int z= 0 ; z< ArraySize (a); z++ ) { c = call(z); Alert ( "c= " +c); } //---- return ( 0 ); } //+------------------------------------------------------------------+

EA with multi pairs trading

Dear all I coded a EA to trade with multi pairs: for ( int z= 1 ; z<= 3 ; z++ ) { switch (z) { case 1 : symbol = "GBPUSD" ; count_2_1440_up = count_2_1440_GU_up; count_2_1440_dn = count_2_1440_GU_dn; ctime_2_1440_up = ctime_2_1440_GU_up;