MQL4 - Trying to add lot size as percentage of margin to EA

Back to topics list To post a new topic, please log in or register
avatar
26
mattmoneywilson 2015.04.09 06:56
 

Ok guys,

 

I am at a total loss as to why this isn't working. I have a nice snippet of code that I like using to optimize the lot size based on a percentage of account balance and the stop loss that's been set, but I don't know why the EA is only keeping it at a constant 0.1. I have been trying to mod the MACD Pivot Points stock EA that comes with MT4. Anyone with some free time want to help me out? Been trying at it for a few hours now and can't see why it won't work. Thanks a lot. 

Attached files:
  matt_sa-jmacdwpivotjpoint.mq4  (30.83 KB)
Back to topics list  

To add comments, please log in or register