MQL4 and MetaTrader 4 - page 216

[Deleted]
Can someone please explain this object property to me? Thanks to Phy, i know that I can use it to display/not display the info tag on a vertical line. Why does it block display of the tag and not the vertical line? What else does it do? How else can it be used? Searching the web has not...
Hi, In rare cases I am getting a "invalid parameters" error for OrderDelete() which only needs the orderticket to do it´s job. This is for OP_BUYSTOP or OP_SELLSTOP order types. Before each run for OrderDelete(), I am browsing through OrdersTotal(), check them for OrderType() (only processing...
[Deleted]
I would like to change the color of the chart frame based on whether an attached EA has initiated a trade, (e.g. Blue if no trade, Green if buy, Red if sell). Are any of the Window API functions available to do this? Or is there a better way to quickly see what state a chart is in (I have many...
Just getting the hang of writing EA's and debugging and using Strategy test. However, it seems that it's not possible to debug during a strategy test. Can any one confirm this?  It would be a fantastic way to test new code.   Thanks Russ 
Hello, I'm newbie on the coding expert advisor and try to do some thoughts. I have a problem at the start of my first project. I want to use the data of an indicator that have been coded before and just prepare statements for orders. However I can't get and data and could't find and solution. I'm
The topic title sounds crazy, but that was the best I could do. I want to make an EA or indicator that will load three or four profiles in cycles. I basically want to stare at the chart while it switches profiles every few seconds, like Christmas tree lights. The problem is, the EA or indicator has
I want to open orders whenever meet trade condition.I mean I dont want to open multiple orders in same price. Example price will open whenever previous highest or lowest condition meet. I get problem in overlapping orders here my codes Can someone help me. I will thanks for your help. void OnTick ()
Hi there! Can someone show me how should I modify the original MACD code if I only want the values for the last 100 bars? I mean, I don't want the indicator to calculate for all candles, only for the last 100 (99-0 index). Please provide me the modification of this original code: int OnCalculate (
bool calcLong3; bool calcShort3; bool calcLong3() { double RSI = iRSI ( _Symbol , _Period , 14 , PRICE_CLOSE , 0 ); if (RSI< 70 ) return true ; else return false ; } bool calcShort3() { double RSI = iRSI ( _Symbol , _Period , 14 , PRICE_CLOSE , 0 ); if
for send signal to whatsapp by api need help.how to send it
  uninit reason 0 error  (17   1 2)
Hi, I'm trying to initialize my script but it is failed with an error message that it was uninitialized with a reason 0. I looked into the documentation and find the description doesn't tell me anything about the problem. Someone know how to fix this
I was wondering if anyone has seen a currency index indicator that shows candles and moving averages ? I know you can do it on trading view by inputting the code for the individual currencies against the basket of others. As per the snapshot attached. Graeme
[Deleted]
Hi I am trying to make the EA look for a certain value in a string and if that value exists in the string then remove it. I tried doing it using the StringReplace() but i noticed it only returns the number of replacements and didnt actually returned the updated string: string v5= "- .82523" ;
Hi coders, I seem to have a problem with this simple function I wrote to close all open trades. I keep getting an invalid price error but I can't see what I've done wrong. any help would be great //+------------------------------------------------------------------+ //| close all open trades
Hello.. May somebody help me how to code, If Buy Stop triggered become BUY, Sell Stop appeared, and that Sell Stop triggered become Sell, New Buy Stop appeared
I'm testing and messing around with this function, I read even on the mql4 help window that if the order is pending or closed the value it will take is 0, but when I put an alert with that function it returns 1970.01.01 00:00:00. //..Some coding to open an order...//...Order select function and some...
  Show text object  (6)
Can someone tell me why this text object doesn't appear on the chart?  It shows in the object list. //+------------------------------------------------------------------+//|                                                    TestChart.mq4 |//|...
I apologize for asking such a basic question but of course documentation does not help since my question is why this does NOT generate an error, when I think it should. //you can also assign array values at declaration int myArray2[ 3 ] = { 1 , 2 , 3 }; //recall that array indexing begins at
hello, I have an EA under MT4 that works but the problem is that it only places buy orders (buy and buy stop), I would have liked to configure it to only take sell orders (sell and sell stop). after looking on the forum unable to find how to do it, I have 3 files at my disposal (ex4 / dll / mqh)
Hi everybody I have realized a simple EA but i have noticed that if i set parameters with negative values on shift when i try to backtest it the program doesn't open positions. For example, if EA include CCI period 14 but shift -1, on graph i can see signals, but if i use tester it doesn't open
hello guys I plan to buy <Deleted> EA from its website and run it on MT4 but my enquiry since its not bought from market here, where should I locate the file? should I put it here > C: programs and files/MQL/Expert Advisors/Market/>here<? or somewhere else? many thanks in advance
Hi guys, I'd like to create an EA that use partially close order. This is the first time I try to create an EA with partially close order. There's some questions that I have regarding this matter. So the questions is: 1. If I partially close an order does the existing order receive new order ticket
I have used void OnTick() to specify when to refresh SendNotification() function and after how many ticks to check if conditions have changed or they are the same then if changed then to send notification to the journal on MT4 but this only work on initialization then doesnt work therefore. Please
  OrderClose error 4051  (12   1 2)
Hi, I have been trying out two EAs in S/Tester; one is a BUY oriented EA, the other is exactly the same but SELL oriented. The Buy oriented works fine fine but the Sell gives 'OrderClose error 4051' I've narrowed this down to the specific area of code but, apart from long/short trade difference
It would be nice if the objects were placed in the background chart in Android MetaTrader, Is this possible
I am new here, just got into the system and the windows where the charts are supposed to be say waiting for update. ANy help please
Good evening to all, I have a problem when I try to run my algorithm which should take a position as soon as the price reaches 10 points before launching the next trade but my algorithm does not take any position, do you know why? Here is the code: extern int priceinit = 0; extern int i = 0; void
Hi, I've got an indicator that plots a moving average channel, using the high and low values. I've attached a screenshot of it. On the actual chart, the channel is green if both upper and lower lines are going up, red if they are both going down, and grey otherwise. On that same screenshot, at the
Dear experienced traders, Do you know what is the default leverage when we test in MT4 strategy tester? How to set leverage such as 1:100 in MT4 strategy tester? * I'm a normal user only use strategy tester to test some product in the market, do not code myself. Thank you in advance and best wishes
Unlike expert advisor, where I can set an anchor point for object, while trying to write an indicator, I just can't find where I can set an anchor or at least get the object to a point above / under the candle. Thanks in advance :)