MQL4 and MetaTrader 4 - page 150

Good evening, I need help, I built an EA that opens Buy or Sell if it breaks the night channel, this if it does not exceed 12 and if there are no open positions, also closes all positions at 11pm. The problem is that he doesn't open sell positions for me in the backtest . You can help me? Here is
Hello. I have several MT4 brokerage accounts. Each of them automatically copies trades from an MT4 signal provider. Is it possible to receive a text message alert when a trade is copied and entered for me? If the answer is yes, do any of you know how to accomplish this? I really appreciate any help
hi all. i am not a coder i just tried to create a simple ea by combining two of them and adding some features. i did manage to make it not to produce errors at some point but it didnt open any trades. the first ea is calculating the sl tp and ts values based on atr and multiplies it by them the
https://imgur.com/qXfjZIi Or is there a script one can download that will achieve the same result? The ability to visually place a bracket order, view the r2r ratio, and have the order size automatically calculated based on the trade's risk amounts in USD and % account equity
Hello there. I am a beginner. I tried to display OrderProfit() on the closed time on the candle. Here is the code // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // timginter @ ForexFactory // // [spread], [ATR], ([number of opened]) [average] // //
This is not my indicator, I downloaded it. Essentially it draws structural points on the chart which which it does perfectly. When I call this indicator in live trading it returns the correct value, however, during backtesting in the strategy tester it returns 2147483647, I have spent countless
  Warning  (13   1 2)
I have this code which ensures price is always rounded to the correct number of decimal points. It works fine but I keep getting the warning "implicit conversion from string to number". Is there anyway of performing the same function without getting this warning. If not, what could happen as a
  Getting a Day  (1)
Hello Folks, I am new learning MQL4. I am working on EA which should modify its values on Monday . I used DayOfWeek function in comment section to check, during backtesting whether it's changing its value from 0 to 6. but during back test it always shows 1 I dont know why. Can anybody help in this
  Error 130  (4)
I get the error 130 when placing an order, this stands for invalid stoploss but i don't see what is wrong so i was wondering if someone could help me out. The code is: extern int dPrice = 5 ; extern double MinLotSize = 0.01 ; extern int period = 20 ; extern int TakeProfit = 10 ; extern int
  Check - what have I done wrong?  (63   1 2 3 4 5 6 7)
Writing code int GetN() { int n = 0 ; for ( int i = OrdersHistoryTotal() - 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS, MODE_HISTORY) && OrderMagicNumber() == Magic && OrderSymbol() == _Symbol ) { bool profit = OrderType() == OP_BUY ? OrderClosePrice() >
Can any help me on how to draw rectangle on WebTerminal
  Array  (5)
When I input RSI60PO, RSI60P1, RSI60P2, RSI60P3 in my script, the correct value appears. However, when I input RSI60[0] in the script, the value returned is 0, instead of the value of RSI60P0. This happens with all four values and I'm not sure why. Thanks for the help in advance double RSI60P0 =
//Input Variable for StopLoss% input double StopLoss = 0.015 ; //Risk% input double RiskP = . 015 ; //Short Term MA Period input int ShortTermMovingAverage = 2 ; //Medium Term MA Period input int MediumTermMovingAverage = 10 ; //Long Term MA Perios input int LongTermMovingAverage = 20 ; //Configure
Hi guys I need advice on what to do with the magic number of my EA. When I start my EA I manually input the magic number that my EA will use, and when I use my EA to a different chart and input the magic number I add +1 to the magic number used on the first chart so the magic number that will be
Please forgive me, I'm relatively new to using the Strategy tester. I'm trying to test an EA I've written to implement a strategy on GBPCAD.  But when I click in the "Symbol" box on the Strategy Tester Settings, I get a drop down list of Symbols, and GBPCAD is not there.  I see no options for adding...
Hi all, I would need to double-test the entry condition in my EA. The condition is the same but I want to test its validity with a time delay. for example: if(OPEN_CONDITION){        time_delay (2s);        if(OPEN_CONDITION){                OrderSend();        }} Sleep() function does not suspend...
Hi all, done some research on the following, and have hit a wall. In MT4 this seems to be more difficult to do, compared to MT5. Maybe I'm not searching in the right corner of the forum or internet? Wouldn't be surprised if I missed stuff. Hope someone here can point me in the right direction for
Is this possible? If yes, how
Hi bros, I have Expert Advisor and want to sell it, on the other hand i want to protect source code too. EA can be place at Metatrader market or user can be download .ex4 code website which to be ready later. Monthly subscribers for example must be paid 1000 usd for to use it. But if the subscriber
Hello i'm searching for an EA that i just have a screenshot of it It just place two pending order with a trailing stop and other very interesting features So maybe someone can find it back or code it Thank You
[Deleted]
Hi, I'm trying to modify my take profit; I've set parameters to TAKE PROFIT after the TP is larger then the Order Open Price(). { double TP = MarketInfo(Symbol(),MODE_TICKVALUE); for(int b= OrdersTotal()-1; b>=0; b--) { if(OrderSelect(b,SELECT_BY_POS,MODE_TRADES))
One of my scripts stopped working after the update to MT4 v4.00 Build 1353 (16 Dec 2021). This script relies on an accurate value returned by function TimeCurrent(). I conducted a test with the following script on an MT4 platform which uses timezone GMT+2h: #property strict void OnStart () {
[Deleted]
Hello,none of my Expert Advisors is not working.Everything was fine but suddenly none of them is working.What to do?
  Meta 4  (5)
Hoe many be change
hi, When I I reach if(currentProfit >= (profitTarget +tradeCosts)) First I want to remove all losses trades -its working with this code: double LossToClose = - 0.5 ; for ( int i = OrdersTotal () - 1 ; i >= 0 ; i--) //loop all the orders { OrderSelect (i, SELECT_BY_POS, MODE_TRADES); //select
Hi I've encountered error code 1 when I'm trying to modify an order. I've looked into the web and the error occurred because the value is the same with the previous order modify. So I set a condition if there's no change of value in stoploss than return. double trailingStop =
[Deleted]
A nice, complete queuing for you all - how do you delete your MQL4.com account
  Indicator MQL4  (5)
Hello dear community, i wrote the Indicator below and the Array "MA_MX" supposed to find the max price difference with MA and draw a line above it. However it sometimes gives me over 2Billion as the value and when i change the timeframe "sometimes" works seemingly ok. The problem is when it works ok
I have a list of symbols. Pairs = "EURUSD,GBPUSD,GBPUSD,USDCHF,USDJPY" ; I want to know how many times "USD" is repeated in this list. Pairs = "EUR USD ,GBP USD ,GBP USD , USD CHF, USD JPY" ; I want to know this for others as well, for example for "GBP" and "EUR"
  Modify RSI.mq4  (3)
Good day, I'm newbie in coding so struggIe to understand the RSI.mq4 file. Just want to put a small change, that mq4 file can calculate the data which - period 5 - use the result of RSI 14 It's like the option "Previous Indicator's Data" (when the previous indicator here is RSI14) but I dont know