Forum

How to close all position at the same time? in mt4.

Hello ,I want to find a way to close several opening positions at the same time, as soon as possible .I have some code below... for ( int i= 0 ;i<total;i++) { if (! OrderSelect (i,SELECT_BY_POS,MODE_TRADES)) continue ; if (OrderSymbol()== Symbol ()

How large is the size of one-dimension array can be?

I need a large size of array buffer to store testing data in my ea.such as the code below: double Buff[size]; double BuffDym[]; ArrayResize (BuffDym,size); when the value of size is to large,the compiler will come out a error said :array is too large. I want to know the largest value of size that

how to terminate a scripts ?

how to stop a running scripts itself? In ea ,I can use ExpertRemove() , but it dose not work in scripts. please help. ExpertRemove ();

Having pending order in the Trade list and they are "request cancelling" ,?

I have 3 pending order in the Trade list and they are "request cancelling" ,after my ea has run some hours . and I can not delete it from the list ,what can I do

How to konw a postion is close by stoploss or takeproft ,or others reason in history?

How to konw a postion is close by stoploss or takeproft ,or others reason in history? I need some example code . Thanks

"metatester.exe"(32bit) lost :( ???

hello! I have a problem today when I want to do some backtesting ,I got this error: 2013.08 . 20 09 : 35 : 59 Core 1 tester file is absent [metatester.exe]; please check if it is blocked by antivirus software I open the folder the program installed, I found a "metatester64.exe" in there and

In EA ,how to get nonfarm payload data ASAP ?

how to get nonfarm payload data ASAP ? any example code

How to call zigzag inidcator in ea?

I have used iCustom() to call ZigZag indicator but get some problem, In OnInit() function the code like this: if (m_handle_indicator== INVALID_HANDLE ) if ((m_handle_indicator= iCustom ( NULL , PERIOD_CURRENT , "Examples\\ZigZag" ,InpDepth,InpDeviation,InpBackstep))== INVALID_HANDLE )

I have some problem during optimization using remote agent.

i have build 2 server and setup agent in it ,they have running a period of time . Today i got this message from one of the server: 2013.06.14 16:51:45 server1 pass 3540 tested with error "no memory in OnTick function (cannot get 4096 Kb, used 1947 Mb)" in 2390 ms ... (there are a lot of them) and

How to export the indicator data in a chart?

i want to get the indicator in the chart,for example ,open a chart USDJPY ,then add indicator ATR to the chart ,and click "file" in the menu ,"save" . i get a csv file , there is OHLC ,and volume in it.but how to get atr data in each bar without coding