MQL4 and MetaTrader 4 - page 12

Are there principally differences between the way mql4 and mql5 handle out of range ? Or are there big principal differences in how the iHighest function of mql4 handles for example negative count values? Because iHighest of mql5 won't take those
Hello, I would like to draw a vertical line in the future , but I have problem because on some TF it' working fine but in other TF not. Also I see that changing the Symbol my conversion does not work . I attach my code. Can somebody help me
Hello, What does Error Code 1 means, i am getting this while order Modification. extern double Trailing_Gap = 3.0 ; extern double Trailing_TP = 30.0 ; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ; else Pips = Point ; void TrailingStopLoss( int TrailingStopLoss_magic) { //
Hello, I am using ICMarkets and it have StopLevel = 0 for all currency pairs. I designed the Trailing based on ICMarket and code is really working amazing without any issue. Working fine with Broker having 0 Stop Level : double Pips; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ;
Which one should i use. With Point : double Pips; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ; else Pips = Point ; With Ticksize : double Pips; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * MarketInfo( Symbol (), MODE_TICKSIZE); else Pips = MarketInfo(
  Woodies Cci Indicators  (47   1 2 3 4 5)
Hi, Does anyone have a proper indicator for Woodies System? the ones posted here... http://www.woodiescciclub.com/forum/viewtopic.php?p=11248#11248 ...they're not good... Could anyone please get a code from PFG they use for this? or exact! indicator rules and settings? Without a proper code and...
Have a nice day. I use a Dialog (Panel) object derived from the CAppDialog class, whose position on the chart is measured by default from the top and left side of the chart. I am trying to change the " anchor point " (left, top) so that its position is measured from the top and RIGHT side of the
Hello, My existing code : void TrailingStopLoss( int TrailingStopLoss_magic) { // Loop through all open orders for ( int i = OrdersTotal () - 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) { double TrailingStopLoss_entryPrice = OrderOpenPrice();
Hello, Instead of using classic if-else or nested if-else i am using like this for small conditions double TakeProfit_BuyEntry = (TP != 0 ) ? (Ask + TP * Pips) : 0 ; double BuyLimitOrderDifference = LastOrderPrice(OP_BUY, BuyLimitMagic) - LastOrderPrice(OP_BUYLIMIT, BuyLimitMagic); double
Hi everyone, I'm starting to learn more about GUI panels using the appdialog box to add a panel to an indicator I'm writing. I have a basic understanding of how to create a panel and various buttons and labels. I just had one question about saving the location of the panel. If I move the panel on
I have downloaded a new copy of MT4 and am unable o login to the MQL5 within it to install an EA I had previously purchased. I can login to mql5.com but only in incognito. The website doesn't load properly on normal browser conditions and I have tried Brave, Opera, Edge, Chrome. I have disable a lot
I want to ask you if it is possible to close all open orders and to delete all pending orders within a unique call to a method. Without the need to iterate over Orders MODE_TRADES. Thanks!
[Deleted]
On metaeditor Test Running not opening Positions any
Can anyone help me with some code for an EA MQl4 - includes ZigZag indicator - sets LastLow and LastHigh peeks from the indicator in the ea variable - keeps it updated on changes I have been trying to get it to work for a few days now with attempting to get help from chatgpt but seem to keep going
Hello everyone, while operating with my expert advisor, I noticed that in brokers where the spread is more than 30 points (forex) the EA finds less opportunities to enter the market, compared to brokers in which the spread is less than 10 points. It can be noticed also in the strategy tester. If I
Hi I got this error in mql4 code..can someone help to recitify this? int ttcx = Time[0] + Period()*60 - TimeCurrent(); error/warning thrown... possible loss of data due to type conversion
Hi guys, i'm copy trading a trader. Now the copy trading works, but the trader has open old trades. As soon as i start the signal it opens those trades over and over, even if i close them. How can i prevent the signal from opening old trades to the current price??? I posted a screenshot and i
MetaTrader stores the experts logs under "C:\Programme\FxPro - MetaTrader\experts\logs". However there always are only the logs from the last six or seven days. Older logs are somehow deleted. Does anyone know how those log files are deleted? I'd like to keep all the logs. Thank you.
mt4 expert tab showing Error:0 while trying to load ea to EURUSD CHART. Please help me resolve the issue
Hello, Is it possible to know via a function like MarketInfo or another method the maximum of possible orders before getting the ERR_TRADE_TOO_MANY_ORDERS occurs? Of course I can count the number of opened positions when the error occurs but I'm wondering if there is a more clean way to catch the...
Hello guys, i can't connect to my MT4 accounts. I have one FTMO demo account and a live account tradenation. Both don't show open trades and trade history is empty too. It shows that it is connected on right bottom. Journal says i'm connected too. I tried uninstalling and reinstalling, that didn't
So there's lots of speculation about the future of MT4 in the USA. FTMO has completely pulled out of the USA. True Forex Funds has suspended activity in the USA, and they're specifically blaming a Metatrader licensing issue and they're looking at new platforms. But other prop firms say they're
I've noticed that prev_calculated often resets to zero, resulting in unnecessary recalculations of the entire dataset. I'm looking for a way to minimize the frequency of these resets. Could this issue be related to the 'Max bars in chart' settings? Thank you for your help and advice
I bought an EA, which shows as a purchase in MQL5, but as a demo only (and asks me to buy again) in MT4. No activation option appears anywhere. This is my first purchase of an EA, so not sure how to proceed. Any ideas on how to fix this would be very much appreciated
Hello, I have an EA that works well in trading accounts with some spread, but it does not function properly in trading accounts where the spread is zero. In a zero spread account, the limit orders automatically close instantly after being opened, and the EA continues to operate indefinitely. Upon
Dear experienced traders, It seems not possible for me... Can I test 2 EA together in same strategy tester in one terminal? Thank you in advance and best wishes, Sky
Hello I want to know where i can check if my VPS is working. Secondly i dont know which Ping is the right one? In the Journal my ping to the signal server is only 84.71 ms
I updated to the new MT4 version January 2024 and when logging back into my account I noticed the option for a trailing stop was no longer listed under the Close order and Modify order option. YES I know how to set a Trail, NO the option still doesn't appear if I goto the terminal and left click
So basically anyone trade news knows that no matter what SL you had set, the news will wipe them out with their slippage. I wonder what if I use EA to close a trade based on the the account loss? for ex: close this trade if its profit is -4. By using this way, is it better to handle high impact news
Hello, In default, all the Comments texts shown on Left side. I want to change this to Right side. void OnTick () { ChartComment(); } void ChartComment() { string buy_l = (Buy_Limit && !Close_Buy_Limit) ? "Active" : "Paused" ; string sell_l = (Sell_Limit && !Close_Sell_Limit) ? "Active"