General - page 1984

I'm using MT3 (I think). MT4 crashes my computer, but that's another rant. I tried to post a SetOrder and it fails. The code is: input: cPriceEnter(0); input: Spread(0); input: Slippage(0); var: cPriceStop(0),cPriceProfit(0); cPriceStop = cPriceEnter + (StopLoss * Point); cPriceProfit = cPriceEnter
  Partially close  (1)
Hi, does anybody know if it is possible to buy for example 2 lot and tell the SW to T/P 1 lot at a certain value, set S/L to the old Buy and let the other position run?
  MACD  (4)
I find MetaTrader's MACD indicator value is different from that of other charting programs, please compare EUR/USD daily chart MACD with that of other charting programs, is it a bug or I missed something? GT/Manpo
When debugging experts, you obvious have a certian degree of reliance on the 'Expert' tab in the Terminal. I find the constant scrolling down (especially if you also work in other tabs) to be a little annoying and cumbersome. Is it possible to have a right-click option 'Flush log to Disk' which,...
[Deleted]
Here is what I am trying to do on my code if on fresh open trade the narket goes the other direction i want to add a reversal so that on buy if the stoch goes below 50 it will reverse on sell if the stoch goes above 50 it will buy And when the wma amd sma cross it will close the trade on wma 5 and...
  HELP ME  (1)
meta is not respondes and It dosen't connect I don't know what to do
Here is what I am trying to do on my code if on fresh open trade the market goes the other direction i want to add a reversal so that on buy if the stoch goes below 50 it will reverse on sell if the stoch goes above 50 it will buy And when the wma amd sma cross it will close the trade on wma 5 and...
We need some help from clever people... We wrote a new expert advisor but... 1. We keep on getting a message "invalid price" 2. We get lots of Error 138 - Requote. Thanks! Benna benwiid at mweb dot co dot za
There's still an error in the historic trades. I just close a profitable trade, but I don't see it in the historic trades window. My account balance in my historic trades windows reades $5105.05 and my account balance in my open positions window reades $5145.05. Even when I select "show all...
Hi MetaQuotes team, I have a few suggestions for MT4. I fully understand most/all of my suggestions can be accomplished by some coding. I'm just looking for things to simplify coding. Before I start none of the below is meant as an insult. Just trying to help improving MT4. Which I think is in...
Does anybody have a list of the brokers that offer trading live (demo and real accounts) on the new Metatrader 4 platform? Thank you
How would you program this in your Zero Code to include a condition where there was a crossover in the past, the move continued and is now retreating and the trailing stop will close the position? I know there is a close feature but I am not sure how to program the trailing stop into the program?...
Occasionally, when I test an expert in the tester, an order will be triggered that should not be triggered at all according to the code. Or an exit will occur that should not occur. It seems to be random in its occurence, but when it occurs I get the same results test after test. I know that the
  MT4 Question  (1)
When I right click on the chart windows and then go to Trading, whats with the Buy Limit and Sell Stop orders that are there automaticaly. What are they calculated on?? Thanks
I used the ZeroCode to create this simple expert advisor - It compiles nice, but does not buy or sell?? Totally confused! //*---------------------------------------------------------------------------------------------------------*\ // This MQL is automatically generated by FXFisherman ZeroCode v1...
[Deleted]
Hi Scorpian thanks for you helpon the scripting I almost have it where I what it except I am trying add this function Hey thanks for your recent help I just have one more variable that I want to add and can't figure out how to do it I want when the wma and the sma cross to have a 5 pip waiting...
I have found this great pivot line code. It allows user to specify offset between GMT and broker server time . The only problem is that it does not recognize weekends. So, forn Monday the lines will not be correct and will be in a very narrow range. Please help me fix this proble
my OrderSend code like this: ... dealPrice = Ask - 15*Point; stopPrice = iSAR(NULL,0,sarStep,0.4,0) - 15*Point; profitPrice = dealPrice+120*Point; dealTypeColor = UPCOLOR; ticket=OrderSend(Symbol(),OP_BUYLIMIT,1,dealPrice,0,stopPrice,profitPrice,"crossReverse",16384,CurTime()+ 7200,dealTypeColor);
How can I check if a trade was closed by stoploss
Greetings all, I am after some sort of code that will allow the expert to trade only for one week out of every month.. So for example I want my expert to trade the 3rd week of every month only. This is for backtesting purposes to see if any weeks of each month are better for my system than others....
Scorpion, I heard you have some sort of tick by tick backtester. I would like to backtest my MQL expert advisor on it. Interbankfx trade platform has one, but it does not even come close to what the program does in realtime trading - Very dissappointing. I would love to try yours. I contacted...
hi the values that retuend from the functiom iADX are not equals to the values that diplayes in the graph window, im using double adx; adx=iADX(NULL,PERIOD_H1,14,PRICE_HIGH,0 or 1 or 2,0); // 0 ot 1 or 2 to get the value of the 3 graphs what's wrong with that??
[Deleted]
  ZeroCode Clone for MT4  (25   1 2 3)
Check out https://www.mql5.com/go?link=http://www.gordago.com/ Gordago Stock Optimizer supposedly does ZeroCode stuff for MT4 - pity you can't gauge it's capabilities unless you pay them $USD29 first though. The interface 'looks' good
Hi all, I'm looking for a piece of code that finds out if a stoploss was hit so my EA can take action. Alternatively: How can know the price at which the order closed? The real closing price; not the prefered one.
  Merging orders  (7)
MT4 seems to have problems with quickly entering trades. My EA picks up 1 new position every hours at most. That won't overflooding the servers I guess But when I open a new trade all open positions get instantly modified (ProfitTarget and StopLoss) This could be up to 10 positions so that...
Can you tell me, I have noticed backtester is not starting at the first bar back in history (it leaves first 100 bars behind). According to "iCustom" function how can I get the exact value for "shift" into EA if I can not count bars in EA to compare to bars in Indicator? Or let me put this question...
Suppouse that i have a expert advisor wich uses a global variable to take some decisions. This global variable is written by a custon idicator. The expert advisor is not using the iCustom function, so the custom indicator is never instantiated by the expert advisor. The question is, when the...
Recently I have been problems with the connection of MT. The market data seems to be flowing in nicely when the 'Connection Box (?)' at the bottom right of the screen is limey colour (like the colour in the pic), but sometimes when it turns to brown/dark green, the data is frozen, so I can only...
How do I plot the macd versus the macd one bar ago in metatrader 4? thanks
I clicked the "Enable experts for running" button to turn it OFF so it would stop trading my system, and the program continued trading. Please fix this. Thanks, - Vooch