MQL4 and MetaTrader 4 - page 1236

[Deleted]
  previous bid  (4)
hi guys, I'm currently trying my first steps on MT4 and a strange problem occured. I know how to get the actual Bid-Price - its simply the command "Bid", but how do I get the Bid-Price one Tick before the actual one?? thanks for your help! jürgen
[Deleted]
Hi I have some interesting results (if they are treated) the simplest is to set an example: NO Current Profit Profit After selection 1 9,89 2 10,00 3 10,00 0,00 4 10,00 0,00 5 -200,04 0,00 6 9,03 9,03 <-------- 7 10,00 0,00 8 9,96...
The following code is fully working. it closes 50% of a open trade. It then moves stoploss to breakeven point. It stores the fact that stop has noved to breakeven. "s2=true". What i need is some changes so that the code will move stoploss to breakeven only and remember this if the platform is...
[Deleted]
Hi all, Can anyone provide an in-depth view on the way slippage is handled by MT? I'll explain: I was under the impression that when an EA submits an order with a certain slippage, this order is then dispatched to the broker's server as is and the slippage is managed on the server side (successful...
[Deleted]
Hi I really have some cool stuff which has a success rate of more than 80%.(Not joking at all).It works on some custom made indicators of volume and some money management stuff and volatility. But the problem is that its too tedious to look into the charts and spot it,because the entry points are so
Helloo!!!!!!!! I have my own ea based in the distance between two ema´s. ( I attach a picture in EURUSD M15 ) But I have a problem, I don´t know how to close the trade if there are a signal with the oposite sign, and open this new signal. If there aren´t new signals my objective is TP : 600 and SL:...
[Deleted]
I want some help to code EA which opens a long trade when the angle of the EMA slope is between +10 and +90 at close of the bar (eg 5 min or 15 min), and closes the long trade and opens a short trade when the angle of slope of EMA is between -10 and -90 at close of the bar. Need help. I am willing...
Dear all, I have kind of weird issue. I'm trying to display arrows on MACD indicator to display buy or sell signal. Basically, I've updated an MACD indicator code, and in the result, my arrows are displayed in the top of the separate window. So the lines and histogram are so small, as in the...
  Expert on offline chart  (20   1 2)
Hi, I'm trying to use an EA on offline chart (for example such as created by period_converter). They don't receive ticks which needs to use while() loop inside. However, after few minutes the offline charts shows "Waiting for update" and is not updated anymore. I suspect it is a kind of deadlock,...
[Deleted]
how can i trand in microtime frames 1 second, 5 second, 10 seconds charts in mt4? not just the tick chart.
[Deleted]
Hi, I'm developing my first EA. I would like to use an indicator main() function as a custom function in the EA. In the indicator "int counted_bars=IndicatorCounted();" returns "the amount of bars not changed after the indicator had been launched last" (as writen in this function documentation)....
Hi, I am looking for different EAs and scrips that change an postion from long to short and vice versa. Is there an english word for it what I can use to search or do you have any other suggestions? I just feel kind of unfriendly when I publish my questions without properly searching this forum in...
[Deleted]
Dear all, I found this indicator and it works very well, but I miss two features. 1. After the order is closed by stoploss, I need an additional sound if the order was closed by stoploss but in profit. 2. if the price crosses the breakeven, I want to hear another sound. I tryed to code this a lot of...
Have you came across any free EA on mql.com codebase that can ran perpetually without failing? Please recommend Thanks!
how the backtester know if the price went up first or down? does it take the 1M data and check this from there? Thanks.
I built a system, very unprofitable. The exit point is based on fixed take profit and stop loss. Then, I decided to invert the system waiting for a profit. But, not like I was thinking, the system still as the same. If the trade don’t have fixed take profit and stop loss, ok, it’s very...
[Deleted]
When i make a backtest with kontrollpoints i get a usefull result, is it possible to let the EA trade in livemarket the same way, how does the backtester calculate the ticks wich are used for a backtest with kontroll points, maybe it is posible to code the EA so that it just work the ame way a in a...
[Deleted]
hello, i am new to MT4 programming and i want to write my strategy to build a simple EA. i managed to write the enter parameters using a free tool i found on the internet, but i can't introduce time filters, which are very important for me. can you please help me to introduce this instructions: 1)
Hi! I am a very new programmer and I am having trouble getting my EA to take any actions (Buy, Sell, or Close a trade). Can I get some advice here? The code compiles, it just won't take action when it is supposed to. I want it to Buy when the requirements for VarianceBuy are met, sell when the...
  Can anyone help with this??  (11   1 2)
Hi all, the following code i have, closes 50% of the open position at a certian level"using OrderClose" and then another function moved stoploss to breakeven and stores this in memory. whet i need is for the code to move stoploss to breakeven only and not close partial position and remember this...
[Deleted]
Hi all. I worked with MQL4 too long time ago and my skills went bit rusted! And someone asked me to give him few simple things to learn about market, for example a statistics calc (sum of all open orders.. profanity :D) at each graph tick. (wants to track his money making machine performance per...
Hi all, the following code i have, closes 50% of the open position at a certian level"using OrderClose" and then another function moved stoploss to breakeven and stores this in memory. whet i need is for the code to move stoploss to breakeven only and not close partial position and remember this...
  WHY ARE TRADERS LOSING MONEY?  (434   1 2 3 4 5 ... 43 44)
Why do most traders lose deposits? - Simple question. I ask any trader. The answers are the same: money management, psychology, discipline, fraud of DCs, etc . etc. - And let's remove from the pile of reasons: money management, psychology, discipline, brokerage fraud, programming errors, poor
this is probably going to sound really silly and basic,but I need the help. I have downloaded scriopts to meta editor but cant work out how to apply it to mt4. The instructions and guide bookdont seem to transfer it across so that it appears in the charts. any help or a simple list of instructions...
[Deleted]
Hi guys, Did you know somebody can make to me small EA with low price? thanks
[Deleted]
Hello there, My name is Gisela, I`m from Germany and I have no experience in metalanguages. Can anyone of you explain me in simple words how to force the momentum indicator overlay the main chart? In my platform it is only shown in a separate window and I don`t know how to change it. Best regards
[Deleted]
  4108 error  (4)
I don't know why this is happening and how to over come it but it's getting me nuts. The same code works properly if i don't include the calculatelotsize() and the if(){lots/2} condition. But when i include these the EA fails to close the orders... I tried assigning indivdual tickets to each trade...
I have MQL4 running in Linux but I seem unable to set the global variables. I can open the screen by pressing F3 but when I double click on a value, it does nothing and will not edit the variable. ANy other ways to do this? http://img257.imageshack.us/img257/2343/sp3220100721180551.gif
[Deleted]
  Can anyone help?  (4)
Hi all experts! I am really new to MQ4 language. I want to know some of the basic codes and rules for the language. I have an idea but unable to write the code for it. Please help me. What are the basic codes to write for EA or custom indicators? Please support me.
This website uses cookies. Learn more about our Cookies Policy.