- Search Metals Mine
-
AimHigher replied Mar 8, 2012To be a bit more specific, have the line read: int iADR = ADR * 24; and then double hma = iMA(pair,PERIOD_H1,iADR,0,MODE_SMA,PRICE_HIGH,0); and so on.
External int changes into -570425344 (No calculations or whatever)
-
AimHigher replied Mar 8, 2012You are multiplying ADR by 24 each time it reaches ADR * 24. Use two separate variables so it would read like: iADR = ADR * 24; double hma = iMA(pair,PERIOD_H1,iADR,0,MODE_SMA,PRICE_HIGH,0); I think the -5xxxxxxxxxx number is simply that you have ...
External int changes into -570425344 (No calculations or whatever)
-
AimHigher replied Mar 8, 2012Like fxtr51 pointed out, need the mq4 or code snippet to be able to check it.
External int changes into -570425344 (No calculations or whatever)
-
AimHigher replied Mar 8, 2012Can you include the code up until that point? Then I can see if it happens when I run it as well.
External int changes into -570425344 (No calculations or whatever)
-
AimHigher replied Mar 7, 2012Simply brilliant. Thanks for the suggestion of using DebugView and the included function. Just in case anyone else is looking at this for the first time, like me, the most recent version of DebugView (4.78) has in issue with capturing Win32. I get a ...
Better alternative for Print() for debugging
-
AimHigher replied Mar 6, 2012Pipsgeek, I have run into the same or similar issue when placing orders/updating them very frequently e.g. when using an infinite loop to place and update orders. I was told that Metatrader can't keep up and orders get stuck this way and there is no ...
Stuck with open orders on MT4 "Off Quotes"
-
AimHigher replied Feb 20, 2012Not sure if those are the exact prices you tried to use but you can only enter a Buy Stop at a price that is higher than the current market price, since the stop will trigger when that price is reached. Currently the price 79.99 so the only stop ...
MBT MetaTrader 4 refuses BuyStops. BuyLimit works fine