Forum

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

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

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

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 I'm digging up everwhere else on the web. I'm currently

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 within the 2nd for loop, since I had a couple

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 = HistoryDealGetTicket(HistoryDealsTotal() - 1);

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 (" ORDER_FILLING_FOK =" + ( string )IsFillingTypeAllowed( _Symbol

"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 message? Or can I resolve it somehow

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 which buffer I try to access. I've tried different

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, which I'm assuming is related somehow, is that