MQL4 and MetaTrader 4 - page 99

Hi I have tried to implement a time filter to turn off trading during high spread times, my broker is in Greenwich mean time (GMT+3), I want to turn off the ea 1 hour before New York close, and continue to untill 2 hours after the asian open. Basically it does not turn off. Any ideas? Thanks
  MT4 on Chrome OS  (1)
It's now possible to run MT4 on Chrome OS (mostly: charts are not working yet). Here's how: Last year Google released a way to run Android apps on Chrome, so all you have to do is pack the MT4 Android app apk and you're done. I now have MT4 running on my Chromebook! Just download the APK format file...
Hi I've created 2 EA now and I build it with the idea of using the first EA as a template for the second one. There's a section on the EA which is to manage an open orders, in this case I use this 3 function to manage close, update open price, SL and TP and also take a partial TP. CloseOrders()
hi, i'm new in mql and i want to draw vertical line in first candle of each day in chart, please help me to find out how can do this, thanks
Hi, I need to put an indicator in a chart MAIN window, but I don't want it to be related to the Price, I want an independent scale. All I need is histogram, but not in a SEPARATE window, but in a MAIN window. Not linked to the price of the Price
1. My min brooker stoplevel is 2 pips, but I want to set sl/tp to 1 pip. What's your idea? Create an array to store SLs/TPs? or store them in a file(.csv)? Once the price reached those levels, then close the relevant positions. 2. I wonder to declare a few variables as global or inside OnTick()
Hi, I have linked two MT4 accounts, so a slave accounts copies a master. Limit or Stop Orders (to enter trades) are placed manually on the master account and what the slave needs to do is run and EA using as input the price level of such orders. I could run a loop on total orders but how can I tell
Hey gang, I'm running into a puzzling issue with this EA. Any help would be very appreciated! I'm not sure exactly what information will be most helpful, so I'll try to give enough info without giving too much. Let me know if you want to see any other bits of the code, or have it explained further
Hello, I developed an EA, it creates duplicate orders based on price and symbol. I am looking for advice on the best way to introduce a function "MaxDuplicateOrders" that will limit the amount of duplicate orders initiated. I ordered freelance work but the code is not successfully enabling me to
This error shows up when i try to find max array from these variables: Constant Expression Required. i've had a go, any ideas? double num_array[ 3 ]; num_array[ 0 ]= RFTPD8; num_array[ 1 ]= RFTPD7; num_array[ 2 ]= RFS3; double num_array[ 3 ]= {RFTPD8,RFTPD7,RFS3}; int maxValueIdx=
I have a file writing function which has been rewritten, specifying the data from the OrderHistory log. It now checks to see if the file exists before deciding to either create a new file and write the relevant data into it, or find the existing file, go to the end of the file and write data. For
Hi guys So I have an EA that I am trying to code and half of it works. Only the buystop opens but not the sellstop, and it seems like a simple fix but i cant wrap my head around it. please help Here is my code: input double Lotsizeforbuy = 0.10; input int Distancebuy = 500; input double
Hello all, I am writing a script right now. I would like to get access to every symbol and every OHLC candle from that specific symbol. I am getting the symbol name by SymbolName(..., false); right now which is working well. I can see all the currencies I can trade with my basic script. I would like
After applying a template of which the attached indicator is a part of, the indicator will not draw the horizontal or trend lines until I change timeframe. After a timeframe change, it works fine. Could someone be so kind as to help me understand what is going on and how to fix the issue. Regards
[Deleted]
  Expiry date in EA  (26   1 2 3)
How I can implement a validation of EA based on a date, if it is greater than that date show a message "the EA has expired..."?
Not sure which category to put this in but I'm on MT4 Today EA copy trader removed from master and all slaves and cannot reattach. NO error and not message on chart when attempting to add them back
Why does this show more then the number of digits that the broker has ? Example: Print("Last incoming ask price=",MarketInfo(Symbol(),MODE_ASK)); Shows EURUSD,5M, .98806 etc. However, it fluctuates and shows things like .9880600008888999999 or some such thing. Or sometimes it might show EURUSD,5M
Hey everyone, I'm trying to create an entry rule for my EA that prevents trading if my account equity goes under as an example 3% of my starting daily equity. I understand how to code everything EXCEPT how to store my AccountEquity() in a variable at a certain point in time. Here's the code I wanted
hi . i am searching for logarithmic scale andicator for mql4 bot i cant find it plz help me . thanks
Hope Metaquotes will answer: i can't install the MT4 Manager and i want know if the api1.mql5.com working or not (Ping is ok but the download don't work). Version 5.0.0.1398
[Deleted]
  MT4 scalping problems  (15   1 2)
Hello, For an automated system I'm working with stop and limit orders. Often these orders seem to get stuck. In the MT4 terminal where the EA is running the order appears as a pending order, but the EA can't touch them anymore (yellow color, if tried to modify you get error "trade is disabled"). If...
How do I Close in loss? I would like to close in loss (2 pips). The code below closes all order/s instead of 2 pips loss. Please help with the code below. for ( int Loop2= OrdersTotal ()- 1 ;Loop2>= 0 ;Loop2--) { if ( OrderSelect (Loop2,SELECT_BY_POS,MODE_TRADES)) if (OrderSymbol()== Symbol
  Expiry date  (4)
void OnInit () { ArrayResize (text, 26 ); int digits=( int )MarketInfo( Symbol (),MODE_DIGITS); double bid=( int )MarketInfo( Symbol (),MODE_BID); if (digits== 4 || (bid< 1000 && digits== 2 )){ Pip= 1 ;} else Pip= 10 ; if (IsTesting()) prefix= "Test" + IntegerToString (MagicNumber);
Hi, I want to find the Maximum Value from a list of values. I've had a go but i'm not sure how to collate the values into an array. int BA[ 5 ]; BA[ 0 ]= v1; BA[ 1 ]= v2; BA[ 2 ]= v3; BA[ 3 ]= v4; BA[ 4 ]= v5; //We call a selfdefined calculation function int ReturnedResult=Add(BA);
void OnTick () { //--- Download_News(); if ( TimeGMT () == StringToTime ( "18:50" ) ) { double range_day = iHigh ( _Symbol , PERIOD_D1 , 0 ) - iLow ( _Symbol , PERIOD_D1 , 0 ); double range_3h = iHigh ( _Symbol , PERIOD_H1 ,( iHighest ( _Symbol , PERIOD_H1 , MODE_HIGH , 3 , 0
Currently Im sending orders with a slippage as parameter, but when there is news or high volatility the advisor is not respecting it. Also in my strategy there I modify the SL in a certain point, and with the high volatility, again, it took a minute since I modify the order (minute that I spent
Hello, With the trading system that I am using, as with some brokers, they do not allow you to place a trade (demo/live) if it as a target profit is less than ten pips. However, I figured I can have the EA place a trade with no limit and no stop loss (or a very high one); and then immediately place...
I have 975$ as balance. I want to open a position(Buy) which its SL is 37 Points below. How to calculate lot if I want to risk 19$? How to calculate lot if I want to risk 33% of my balance
input ENUM_TIMEFRAMES RSItimeframe = PERIOD_CURRENT; input int RSIPeriod = 4; input double RSIHighLevel = 80; input double RSILowLevel = 20; input ENUM_APPLIED_PRICE RSIAppliedPrice = PRICE_CLOSE; //+------------------------------------------------------------------+ //|
Hello , Is it possible to send HTTP POST request with JSON(application/json) as content type ? I am trying to send HTTP Post request to an API, Please take a look at the code below : string url = "https://myurl.com/wp-json/ap/v1/signal?id=wervsdf&secret=lrjmsrbrh4sd4r45ert5" ; string