Forum

Kill signal for EAs

Hi Folks, Last week a position went somewhat wrong and I wanted to stop my EA, but as my EA sits on a VPN, I was not able to stop it. Can someone advise me if there is a way to send an email kill message to EAs? Thanks

Arrays vs Loops MT4

Hi All, I am using loops to run a few calculations. For example look at the below, where I am using this to calculate mean over a period of time. I was wondering if I am better of inserting this into an array or is loop a better way? I am running this every one minute. I haven't been able to deploy

Freeze EA trading during economic news

Hello All, My EA is burning out at times of high volatility. I am trying to avoid trading during a major news. Any pointers or suggestions or articles towards one? Right now I am thinking of storing news event timings in an array. Then compare with the server time. Anything to keep in mind

Closing all orders

vol= MathFloor (AccountEquity())/ 10000 ; { for ( int count= 0 ;count< OrdersTotal ();count++) { OrderSelect (count,SELECT_BY_POS,MODE_TRADES); if (OrderType()== 1 ) { vask=MarketInfo(OrderSymbol(),MODE_ASK); OrderClose(OrderTicket(),vol,vask, clrAliceBlue ); Print ( "OrderClose

OrderSend failed

Heloo All, My EA uses the below piece of code. double vask = MarketInfo( "EURUSD" ,MODE_ASK); OrderSend ( "EURUSD" ,OP_BUY,vol,vask, 70 , 0 , 0 , NULL ,magic, 0 , clrRed ); I am using this on a USDJPY currency chart. I am getting error code 139. error code 139 is related to prices. I used

Array Out of Range Error

Hello, I would be grateful if someone could help me handle this Array Out of Size Error. double b [ 200 ][ 1 ]; int OnInit () { for (j= 0 ;j<=param- 1 ;j++) { b[j][ 1 ]=(summation/product); //correct formula }

Onint function

Hello everyone, What happens when my mt4 loses internet connection and then reconnects; will an active EA run the Onint function again

Log variables to a file

Hello All, I want to do a step by step check of the results of my EA. I want to output the variables somewhere i can later on refer to. Can some please guide me here? If i use the print function will it store in the journal files? -Cheers

Multiplication of arrays

Hello All, What functionality does mql when it comes to multiplication of Arrays? Can I try 10*a, where a[x][1]? Cheers! Cryptex

Tester doesn't support multicurrency? :S

Hi All, Just read it on the forum that the tester doesn't support mutli currency trading (I am assuming EAs can do). Is there a workaround way? perhaps a little nudge in that direction. Or is there a way i could export variables to excel. That way i would myself do some manual testing? Cheers