MQL4 and MetaTrader 4 - page 869

To post a new topic, please log in or register
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...
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...
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...
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...
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...
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...
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...
Hi guys, Did you know somebody can make to me small EA with low price? thanks
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...
  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
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.
Could somebody help to create Andrews' Pitchfork as customer indicator? Thanks.
Given the complexity of current markets and breakdown of some traditional correlations, has anyone developed a downloadable version of the Fibonacci Fan? I would like ot test it to see if this "old standard" is helpful in various time frames?
Hello everyone, I wanted to know if it is possible to create a indicator and attach it to a chart. The offline charts I use are Daily charts from NYSE stocks. I wanted to create an indicator or meter type indicator that will show the last 4 bars as either an Up Arrow or Down Arrow based on those...
HELLO, I NEED A SKILLED PROGRAMMER TO WRITE ME BASED ON THE ATTACHED FILE. PLEASE CONTACT ME . AS SOON AS POSSIBLE.MY EMAIL : BEHNAMTAJALLI@GMAIL.COM
why my metaeditor is like this ? i setup my mt4 many times,but the editor still does not display the explaination part clearly .
hi everyone, may i know how do i download SGX stock EOD data into mt4? which website can i visit to do it?
dude, currently i do some experiment on positions sizing on buy/sell limit/stop orders i had a little trouble when it comes to modify lot size of an order(s) what i did was delete previous order then send new order this is what i did: if stop loss modified it will recalculate lot size of a trade...
My mt4 is using Eastern standard time so london opens at 4pm and close at 11.30pm what i want to do is to hide 11.31pm to 3.59pm bars how to do that??
just like M2 or M3 chart
Is it possible to loss more than our StopLoss set in EA on real account? i got one trade which i lose more than 10pips wider than my set stop in my real acc compare to demo acc..
I want someone to make a expert advisor as follows :- Buy position when the closing price of a BUY CANDLE closesabove the 200 moving average. The stoploss will the the LOW of the buy candle (-5 pips). The Close order will be if the closing price of the candle is below the30 moving average. SELL...