- Search Forex Factory
- 4 Results
- microsun2000 replied May 21, 2019
because the ea coded last lot = last buy lot + last sell lot, say the ea opened initial buy lot 0.01 0.01 0.01 0.02, however if there exists also last sell lot = 0.10, then your next buy lot won't be 0.02, it become 0.02 + 0.10 = 0.12 0.01 0.01 0.01 ...
- microsun2000 replied May 16, 2019
ya, if the close minimum profit is turned on and due to the trade count is global variable, the result will be random because the lot step depends on trade count. I believe there are more bugs to be found, like the grid step seems incorrect also ...
- microsun2000 replied May 16, 2019
ya, the problem is MACH2_NumOfTrades = 0; MACH2_totalOrdensOpen = 0; and MACH_NumOfTrades = 0; MACH_totalOrdensOpen = 0; variable scope is global, move them inside machx and mach2x function should be fine
- microsun2000 replied May 16, 2019
The step lot open lot should be 0.01 0.01 0.01 0.02 0.02 0.02 0.03 0.03 0.03 0.04 ... somehow it doesn't open trade with correct lot size..
- Posts by Member Search: 'microsun2000'