- Lot increase
- The Only Pivot
- Running testing for EA
- Do NOT use NormalizeDouble, EVER. For ANY Reason. It's a kludge, don't use it.
It's use is always wrong
- SL/TP (stops) need to be normalized to tick size (not Point.) (On 5Digit Broker Stops are only allowed to be placed on full pip values. How to find out in mql? - MQL4 forum) and abide by the limits Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial and that requires understanding floating point equality Can price != price ? - MQL4 forum
- Open price for pending orders need to be adjusted. On Currencies, Point == TickSize, so you will get the same answer, but it won't work on Metals. So do it right: Trailing Bar Entry EA - MQL4 forum or Bid/Ask: (No Need) to use NormalizeDouble in OrderSend - MQL4 forum
- Lot size must also be adjusted to a multiple of LotStep. If that is not a power of 1/10 then NormalizeDouble is wrong. Do it right.
if (OrderSelect(history-1,SELECT_BY_POS,MODE_HISTORY
You assume history is ordered by date, it's not. Could EA Really Live By Order_History Alone? (ubzen) - MQL4 forum- No filtering on your OrderSelect loop means your code is incompatible with every EA (including itself on other charts and manual trading.) Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 forum
- There are other things in history besides closed order. Check the type.
if (timeBarInside!=iTime(Symbol(),Period(),1)
Why use a function call instead of the Predefined Variables - MQL4 Reference- Check your return codes What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
- "i want increasing lots when trade loose." Martingale will guarantee you blow your account.
First of all thank you for your answer.
I am begginer at programming so i understand that in this ea is a lot or thinks wrong but in programming i understood that there are many ways how to do things working and now it is working so why should i change all of that things ?:)
But thx for all of your tips i will look at all of them :) but honestly it is too much for me now :D i just need help with my problem and answer : "Martingale will guarantee you blow your account." really does not help me with it :)
Can you then help me with running this ea with condition what i was asking at start :) i think it is some stupid little thing what imust add there. I must select only trades with hitted SL or TP and then increasing but i dont know how.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use