It appears that the colors of these two features are totally interlinked, which is a total PITA. I'm not missing anything, am I? Is there any way to set their colors independently
I've looked for any documentation on what's under the hood of this function with no luck so far. I'm trying to calculate required margin for upcoming positions, and OrderCalcMargin() gives me a different value than the standard calcuation that
Hi all, If you're willing to take a moment and look I'd like to get some feedback on if there's anything I missed that may cause problems unforseen to me down the road. In particular, one thing I addressed in the MQL4 version was refreshing rates
Hey gang, I'm trying to get my comment from the most recent deal in my trade history. All of the values I'm trying are returning fine except my comment. ulong ticket = 0; ulong dealHistory = HistorySelect(0, TimeCurrent()); ulong lastDealTicket
Hey gang, I've been at this one for a couple hours with no success yet. I've tried 2 brokers so far with the EA I'm porting over from MT4. One works fine, and on OspreyFX I get a retcode error 10030: Invalid order filling type. Print ("
Hi all, I'm getting this warning message, it's to do with this line: OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), 0 , OrderExpiration()); My EA is working fine, however, and the function returns a value of True. Should I ignore the
Hey gang. I've been struggling for a couple hours to figure out why iCustom in my EA isn't pulling data from an indicator I just coded up. The indi is working properly on my charts, but within the EA it's only outputting a value of 0 no matter
Hi gang, I'm struggling to get some data I purchased importing correctly into MT4. Two different problems seem to be showing up. First is each day only imports from 10:00-23:59, while my csv file contains data for each day from 0:00-23:59. Second
Do I need to use OrderStopLoss() and OrderLots() and do the math to get the profit/loss of the SL for an open trade or is there a single function that will fetch it for me? If there is I can't find it, but the fact that I can hover over the line and
Hi all, I'm trying to introduce some logic using GetLastError(), and having trouble with it. Here's the bit of code I'm working with right now if ( GetLastError () == 0 ) PlaySound ( "news.wav" ); else Print ( "Open order error: " + errortext(
I'm currently using NormalizeDouble() to edit the precision of a calculation to 1 decimal point. I'm displaying this number on my chart. Most of the time it displays as e.g. 10.1 or 10.6, but when it calculates as a whole integer the visual spacing
Hi all! I'm trying to use the PlaySound() function, and my EA is grabbing the sound files from my MT4 install's data folder. There are somehow a couple of files in that folder, but the ones I want are in the MT4 application folder in Program
Hi! I'm considering building an EA to assist me with entries for the strategy I'm trading right now. The only two aspects that are beyond me are the UI... how to create a draggable line on my chart that will set my SL & breakout levels, and how
Hi all, I’m trying to better understand the mechanics of the tickvalue property and the role it plays with EAs in calculating a trade’s lot size. MT4 literature says that a this property gives the "Tick value in the deposit currency". But
Hi All, I have confusing experiences when using the Strategy Tester , in that with some brokers it will only download a few months of data whereas other brokers will download a year's worth, and another is downloading almost 2 year's worth. I have