Forum

Code going into Unknown state

Hello guys, I am getting very peculier behaviour from my code. The following snippet is where the problem occurs: if (OrderCloseTime()!= 0 ) return ( true ); type = OrderType(); success = false ; lots = NormalizeCloseLotSize(OrderSymbol(),percentClose*OrderLots()/ 100 ); Print ( "Lots to close = " +

Inquiry about MT4 Plugins

Hello guys, I have researched about writing MetaTrader plugins but nothing useful has come up. I would be really thankful, if you guys can provide me with some sort of reference/guidance materials on this subject. By plugin i mean something like: www.floatingcharts.com

How to know when an order is modified?

Hello there guys, I want to know if there is any way to find our when an order is modified? I mean is there any flag or trigger that is activated when an order is modified? I need to know when any order in my terminal is updated. Thanking in advance. Regards, Umer

OANDA MetaTrader4 giving 2 orders in History Pool to Each Order Closed

Hello every1 I'm working with OANDA MT4 Ver: 4 Build 406. I have an EA that checks for closed orders in the History Pool whenever there's an order closed. Sometimes 2 new orders are spawned in the history pool for each order i close. One is the order i have closed and the other is the interest on

Can't find the problem: Error: invalid stops

Hey there guys, I'm getting this problem and dunno what is the reason. Following is an excerpt from my log; 2011.11 . 15 18 : 41 : 27 Alpha1_20111114 EURUSD,M1: ==-----ORDER SENDING PERIMETERS-----== 2011.11 . 15 18 : 41 : 27 Alpha1_20111114 EURUSD,M1: SYMBOL IS = EURUSD 2011.11 . 15 18 : 41 : 27

Best Volume

Hey Every1, I need to find out what options we have in MQL for working with volumes/sizes. We do get the best market bit and ask prices, but how do we find what amount is the user willing to buy or sell? Regards, Master

invalid integer number as parameter 2 for iSeries function

Hello there every1. I'm working on an EA. I am trying to use the zigzag and moving average indicators while i get this error. 2011.10.14 11:53:59 Master EURUSD,M1: invalid integer number as parameter 2 for iSeries function I have checked the perimeters for the ZigZag as well as the Moving Averages