MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

Become a Signal Provider Right Now
To post a new code, please log in or register

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2011.11.07 10:45
Simple Scalping EA

Simple Scalping EA - expert for MetaTrader 4

| English Spanish Portuguese

Views:
30840
Rating:
votes: 3
Scalping_EA.mq4 (19.78 KB)view

Description:

Very simple scalping EA, no Indicators. Logic is based on very fast price movements.

Here is my scalping EA idea works most of the time, but needs to be better programmed.

If some1 can help to modify it so it can be used on many pairs at the same time.

Idea is very simple, no indicators at all.
it keeps updating BuyStop and SellStop orders with each price movements.
And when the market becomes heavy or news it won't get a chance to get updated quick... which means very fast price movement in one of the directions. This practically guarantees 10-15 pips movement.

If some1 can help me to code it properly it would be very cool.. For the last 3 month i have a ratio of this working 4-6 wins vs 1 loss. ( and i noticed the loss mostly because i programmed wrong). Stop Loss should be adjusted to 5-7 pips ( if broker allowed)Works fine on Alpari US.

PS. For some reason and i cant identify the problem- after executing the order it may not send another order till i disable and re=enable EA ( gotta be a bug somewhere). Would appreciated any help.)
oops. One more thing, i used the coding template from IBFX scripts and modified for my use.

Thanks for the Help... And ignore the grammar.

Last comments | Go to discussion (22)
nlenz
nlenz | 19 Sep 2012 at 11:30
1105:

Finally, I revised it and applied some methods from MT-CODER's HUNTER EA. It can be backtested now and no hangon any more. But the only issue is, it must be applied in very low spread environmnet, otherwise no profit!!! I just treat it as an ending to my thoughts about this thread....

..... (code)

This last code works. However, in live trading it won't work if you already have your own open trade/s. (The backtest works because it assumes no other trades are open only this EA's). To make it work even so in a real account, change all 3 occurrences of "break;" to -> "continue;" (without the double quotes " ). Also, it (after my fix) seems to be profitable only on "good" brokers. (i.e. It lost on a broker which is slow and has a 3 pip E/U spread, while it is profitable so far [after 18 hours and 9 trades] on a broker with average spread of 1.6 pips for the E/U, fast execution, no dealing desk etc.). I think it will only gain for the EUR/USD, the timeframe doesn't matter you get the same results, but I use H1 anyway.
nlenz
nlenz | 20 Sep 2012 at 12:08
nlenz:
1105:

Finally, I revised it and applied some methods from MT-CODER's HUNTER EA. It can be backtested now and no hangon any more. But the only issue is, it must be applied in very low spread environmnet, otherwise no profit!!! I just treat it as an ending to my thoughts about this thread....

..... (code)

This last code works. However, in live trading it won't work if you already have your own open trade/s. (The backtest works because it assumes no other trades are open only this EA's). To make it work even so in a real account, change all 3 occurrences of "break;" to -> "continue;" (without the double quotes " ). Also, it (after my fix) seems to be profitable only on "good" brokers. (i.e. It lost on a broker which is slow and has a 3 pip E/U spread, while it is profitable so far [after 18 hours and 9 trades] on a broker with average spread of 1.6 pips for the E/U, fast execution, no dealing desk etc.). I think it will only gain for the EUR/USD, the timeframe doesn't matter you get the same results, but I use H1 anyway.

O.K. I'm not sure anymore that it is profitable even under good conditions, because it lost more than the backtest indicated it would after 2 days of trading. It might do better in the future or under other brokers or conditions, and certainly 2 days isn't enough to know for sure, but I've stopped my live test.
MQL4 Comments
mql4_comments | 2 Nov 2012 at 10:03

Hello Sir,

i want change PIP for Buy Stop and Sell Stop when entry oder, now it is 100 PIP, i want < 100 pip. Please Guide me.


i can not use for another EUR/USD, i want use for other symbol


Help me

apnihost
apnihost | 20 Dec 2013 at 02:53
picassoinaction:
afterburner.pl:

Hello,

I'm backtesting this EA on EUR/USD and it don't trade.

Do you have any idea what am I doing wrong ?



Hi

You cant back test the EA. You can test this EA only in demo mode on live servers, since it depends on the current market moves.


picassoinaction can you add ?

extern int Distance = 100;

pls add sometime we want 100 PIP some time 80 sometim 150

MQL4 Comments
mql4_comments | 26 Dec 2013 at 06:46

"For the last 3 month i have a ratio of this working 4-6 wins vs 1 loss"

What currency pair & TF you use it.

Can I put TP=12, SL=0.

Buy Stop & Sell Stop only gap 5 pips from market price?

What the result, more profit or more loss?