Forum

Lot Size is not changing !!!

//+------------------------------------------------------------------+ double LotsOptimized() { double LotSize = Balance() * MoneyManagementRatio/1000; LotSize = NormalizeDouble(LotSize,2); if(LotSize > MarketInfo(Symbol(),MODE_MAXLOT)) LotSize = MarketInfo(Symbol(),MODE_MAXLOT);

I need Help with code for testing

I need two code for my coming up EA... Before building it, I want to test an old ea with two conditions.. if you give me the code, I will be glad... Code it please.... EA will not take one more entry on same pair... Like if it takes one trade open from eurusd pair , until it is closed, no more