Friends 2
rrsch
Added topic ACCOUNT_MARGIN_MODE_EXCHANGE is netting, right?
The documentation is no help. From what I can tell researching it, Exchange Mode is a netting mode. Can anyone confirm or deny this for sure
rrsch
Added topic Different colors for grid and 'shift from right border' arrow?
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
rrsch
Added topic Draw object above grid but behind bars?
I'm trying to do this programmatically, but I don't see a way to do it manually either. Is this possible
rrsch
Added topic Trying to replicate OrderCalcMargin()
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
rrsch
Added topic Open order function... feedback on how it's looking?
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
rrsch
Added topic Strange issue recalling comment from most recent deal in history
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
rrsch
Added topic Order filling type problem. Help?
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 ("
rrsch
Added topic "return value of 'OrderModify' should be checked"
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
rrsch
Added topic Trouble pulling indi data via iCustom...
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
rrsch
Added topic Weird issue importing historical data... help?
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
rrsch
Added topic Get profit/loss of SL or TP line?
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
rrsch
Added topic GetLastError() result always calculates as 0>, even when it's zero...?
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(
rrsch
Added topic How to get normalized double to always display 1 decimal point?
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
rrsch
Added topic How to get EA to access sounds in C: > Program Files (x86) > MetaTRader 4 > Sounds?
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
rrsch
Added topic EA: Starting points to code draggable SL & on-chart buttons/entry fields...?
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
rrsch
Added topic MarketInfo MODE_TICKVALUE question
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
rrsch
Added topic How is Strategy Tester data gathered?
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
rrsch
Added topic Trouble with EA finding ZigZag value on bar [1]...
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
rrsch
Added topic Variables with SetIndexStyle?
Hi all. I have an indicator where I'd like to be able to turn one set of lines on and off. I don't seem to be able to use variables to do this. Is there something I'm missing, or some other way to do this? input string dispRF1 = "DRAW_LINE" ; //
rrsch
Added topic Bars predefined variable question
Quick question... The MQL4 reference says that Bars outputs the " Number of bars in the current chart." Does this mean all the bars that are currently visible on my chart window right now? Or all the bars in the history of the chart, visible or not
12