MQL4 and MetaTrader 4 - page 1269

[Deleted]
Hi, My broker just recently switched to a new "core" technology, whatever that is, and along the changes came a 5 digits switch. The problem is that now my OderSend() function is broken and every time gets an error 130. I've tried everything, from normalizing takeprofit and stoploss to sending the...
[Deleted]
Hello traders, Is there anybody that can help me with a script for to create an indicator that plots stochastics of an RSI please. I am not a coder or programmer at all. If anybody can help i would appreciate it very much. Thanks Fred
[Deleted]
  Help me plzzzzzzzzzzzzzzzzz  (13   1 2)
i have this indicator,, it calculate three levels to buy and three sell according to the strategy of Wafi. I have written this indicator to facilitate searching of wafi levels, we can also use this indicatos with others strategies. usually if the direction is upward price we can only buy from the...
I am curious if the brokers will be forced to make us switch to MT5 at some point? Do you think they will offer both 4 and 5 to keep business? Obviously they would want to but they are a regulated broker that may not be an option. I don't want to get behind in either language but the thing is,...
[Deleted]
  wafi_area.v1.2  (5)
hello, wafi_area is an indicator creted buy younous filaly, it calculate three levels to buy and three sell according to the strategy of Wafi. I have written this indicator to facilitate searching of wafi levels, we can also use this indicatos with others strategies. usually if the direction is...
  Which design is correct?  (80   1 2 3 4 5 ... 7 8)
Like this void Close_All() { int Total = OrdersTotal (); for ( int i= 0 ; i < Total; i++) //требует уточнения эта строка { if ( OrderSelect (i,SELECT_BY_POS,MODE_TRADES)==true) { switch (OrderType()) { case OP_BUY : OrderClose(OrderTicket(),OrderLots(),Bid, 5 ); break ; case OP_SELL
Is there some sort of compiler switch available for mql4? Like #ifdef? Thanks.
I'm running into a very weird phenomenon. I have an indicator that redraws on every new bar, so i'm re-initializing the indicator buffers everytime the loop is triggered in start() . When i do this: ArrayInitialize(indicatorBuffer,NULL);//ArrayInitialize(HighMapBuffer...
[Deleted]
I am trying to run an Expert advisor through a backtest and get an output csv file. When I run the EA live the output file generates fine, however when I run the back test no file gets created. I know some functions are disabled during backtesting. Are File operation functions included in disabled...
[Deleted]
I want to set the horixontal line properties in my indicator to 'Draw object as background'. Does anyone know how I can code this? I can click on a pivot line and and set this manually each time I open a chart which is not practical as their are over a dozen of them and as far as I can see it can't...
[Deleted]
Can anyone help with this please? I can't seem to get the "Extern" variables to change value in the next tester run, even though I edit them in the EA via "Modify EA" and recompile the EA before running again. I've tried putting "DeleteAllGlobalVariables()" at the end of the EA, but to no avail....
[Deleted]
Hello all, Just to tell you, I saw OrderStopLoss() function returned value on the 16th digit on decimal part. That mean, if you have a condition like that, Stop < OrderStopLoss() with these values in the log file Stop = 1.36190000 & OrderStopLoss()=1.36190000, it could be TRUE. Because...
I have a DEMO account with Fienex Group Ltd. (fxcbs.com). I tried to use the attached MACD sample and Moving Average program to test EA. No buy/sell could be executed. Even after I deleted all possible limiting conditions, still no buy/sell went through. I tried Print...
I saw these  eas  on one  of the forums i loaded it on vps but it did not update but on my local pc it up dated and it place orders. Can someone help me to know what happened?
Hi friends, I'm new to neural network.I read, installed and tested the subject code(given as examples) and found that the network predicted accurately arithmetic series. I want to know how can I use this in my expert adviser because when i tried to compile it gave the compilation error as given...
[Deleted]
Hi Sorry if this question has been answered before,I didn't manage to find an answer by searching. I have been finding problems with EAs that execute OCO or trailing stop orders needing the user to manually confirm entry before the actions are carried out. The market window will pop up needing the...
[Deleted]
  PLEASE HELP  (1)
what is the minimum amount to open a real trading account, I also need financial assistance to trade with,I am a poor man. thanks.
[Deleted]
I trie to prog an easy EA. It should buy & sell at the same time (only one trade per hour or day) with trailing stops. But I get the error message "ordermodify error 1" What can i do? THX FOR HELP //+------------------------------------------------------------------+//|...
[Deleted]
Hello, I have written a custom indicator that uses the switch of parabolic sar and awesome indicator to show me when to enter a trade, I have been trying to put the code into a EA with no luck, any help would be most appreciated. I have tried a few ways of putting it into an EA, by copying and...
  Help me make EA  (1)
Hello...anyone can help me to make me EA with this indicator ? this indicator is like zigzag. When this indicator appear, then we take position. Thank you.
[Deleted]
What is the augmentation symbol? I can get an alert if " A>1.999" by using the sign ">". But what sign should I use if the only thing I want is to get an alert if the value of "A" increases?
[Deleted]
Hi! Thanks for your help. I know this is probably super simple but I'm stumped. I would like to modify the RSI Sound Alert with loop below to add a counter, whereby after 'x' times the alert will stop. I would like the 'x' to be a user input. I took a stab at it but am getting an error ("i"...
the code section below: it does not execute: store_ind3="blank"; store1_ind3="blank"; am I doing something wrong ???? ... string store_ind3; string store1_ind3; ... RefreshRates(); ticket=OrderSend(Symbol(),OP_SELL,(lot_size),Bid,slippage*Point,Ask+(maxSL*Point)...
[Deleted]
Hello, is there a way to retrieve the path and filename of the EX4 file, which called the DLL library? Thank you Martin
I have development versions of My EA's and only compile those normally but I am curious, does compiling an EA while it's running mean that all those changes take effect immediately? Or not until you reload? Would this cause all of your variables to reset?
[Deleted]
what is the difference between for and foreach?
Using FileReadString() and StringSubstr() and comparing to "//" does not match the symbol to indicate the start of a single line comment, the solution was to convert to ASCII char code with StringGetChar(). Possibly a control or escape character escapes me!
[Deleted]
Dear Sirs, I want write a function for my EA that after X continuous loose trades sleep for Y times and next starts. After new start if we meet again X continuous loose trades sleep for Y times and next starts. I want do this cycle when meet it. I am tried and wrote below code: extern int...
Hi, I backtested an EA on 1H timeframe (that only uses closes on previous 1H bars, no tick data) on tick and then on bar opening. The backtest on the tick gave me a 100% return, while the on open it gave me 10%, with of course very different graphics. Assuming the 'every tick' backtest is the...