858.282,5% in last 2 years...only in backtesting with 99% of modeling quality... I GIVE UP! (source code included)
Is there any forward testing?
- bool isThereMoreThanDefaulLot()You assume history is ordered by date, it's not. Could EA Really Live By Order_History Alone? (ubzen) - MQL4 forum
double LotsOptimized()
bool lastTradeWasBad()
void virtualTP()
double getAllProfitFiltered(int magic=-1, string comment=""){ - void fechaPosicoes(int tipo){In the presence of multiple orders (one EA multiple charts, multiple EA's, manual trading)
if (tipo==OP_BUY) while (getTotalOrdemByType(OP_BUY) > 0){
for (int i = 0; i<OrdersTotal(); i++) if(
OrderSelect(i, SELECT_BY_POS, MODE_TRADES)
&& OrderType()== tipo
&& OrderMagicNumber() == MagicNumber
&& OrderSymbol() == Symbol()
)
if (OrderClose(OrderTicket(),OrderLots(), NormalizeDouble(Bid, Digits),0,Blue) == false)
- You must count down when closing/deleting/modifying in a position loop. Get in the habit of always counting down. Loops and Closing or Deleting Orders - MQL4 forum
- and check OrderSelect. 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
- You must RefreshRates after sleep and between multiple server calls if you want to use the Predefined Variables (Bid/Ask) or OrderClosePrice() instead.
- No need to check OrderType for closing. Just use OrderClosePrice.
- No need to normalize Bid, it already is.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(losses>=1 && UseRecover)Martingale, guaranteed to blow you account eventually. https://www.mql5.com/en/search#!keyword=martingale&module=mql5_module_forum
_lot=(biggerLotTraded * Multiplier); - double FindLastBuyPrice(int mn) {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
:
for (int cnt = OrdersTotal() - 1; cnt >= 0; cnt--) {
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
:
double FindLastSellPrice(int mn) {)
double getAllProfitFiltered(int magic=-1, string comment=""){
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello guys..
It's only a toy.. works only on MT4 backtesting, don't work on live account ( I mean, it isn't profitable like backtesting).
It's based on renko ( I don't know it it's renko or mt4 that don't work../is crappy)...
TP = 30 pips
SL = variable (based on ATR.. but around 12 pips);
I AM HERE TO SAVE YOUR TIME! Do not waste hours coding scalpers...
1) Chart without compounding (2011/2013)
2) Monte Carlo -day end return (weekly)
3) Monte Carlo - worst day ent return (weekly)
4) Result compounding (2011/2013)
It's all guys... enjoy it on backtesting...
PS: Getting the source code, you do not have right for selling it (for bullshit/ea sellers)