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

Order MQL5 Programs from professional developers

Hakuna MatataHakuna Matata Try product
Hakuna Matata
Author: cbalta
MQL5 Cookbook: Analyzing Position Properties in the MetaTrader 5 Strategy Tester MQL5 Cookbook: Analyzing Position Properties in the... Screenshot
حفاری_تعدیل_نشده, D1
Demo
Subscribe to signal
TopForex Signals
71.65%, 16 766.63 USD
A simple RKD Expert Advisor  based on a specified custom RKD indicator Expert Advisor
A simple RKD Expert Advisor based on a specified custom RKD indicator
Author: yyy999

/ My EA [finished]

To add comments, please log in or register

kiranb
48
kiranb 2012.06.26 17:55 35 - 50 credits   from 2 to 5 day(s)

Below is the requirement for my expert...

Variables:

Lot size: starting from 0.001 (must requirement)

Stop Loss

Take Profit

Maximum number of losing trades

Multiple: 2

First trade direction: Buy/sell

Description

When the EA is activated, the first trade is placed by the EA based on the set variables. If the trade ends up in a profit then the next trade is again placed with the same position size and direction (long or short). And, if this trade also ends up in profit then the EA will place another trade with the same position size and direction. This will continue till EA encounter a losing trade.

Once the EA faces a losing trade, EA will place a trade in the opposite direction of previous trade and also the position size will increase to the predefined multiple in the variables. If this trade also ends up in a losing trade then EA will place the next trade in the opposite direction of the previous trade and also the position size will be a multiple of the previous trade. This will continue till the EA faces a winning trade or it reaches predetermined number of losing trades in the variables.

Example:

Variables:

Lot size: starting from 0.01 (must requirement)

Stop Loss: 20 pips

Take Profit: 20 pips

Maximum number of losing trades: 4

Multiple: 2

First trade direction: Buy/sell

Execution

Trade1: Buy, position size 1000; Result: Profit

Trade2: Buy, Position size 1000; Result: profit

Trade3: Buy, Position size 1000; Result: profit

Trade4: Buy, Position size 1000; Result: loss

Trade5: Sell (observe the change in direction after a losing trade), Position size: 2000; Result: loss

Trade6: Buy (observe the change in direction after a losing trade), Position size: 4000; Result: loss

Trade7: Sell (observe the change in direction after a losing trade), Position size: 8000; Result: loss

Trade8: Buy (observe the change in direction after a losing trade), Position size: 1000; Result: Profit

Observe that the lot size is brought back to 1000 as the “Maximum number of losing trades: 4” has reached as defined in the variables.

Important requirement - Generally MT4 does not allow the lot size less than 0.01. But my requirement is that we should be able to place trades with lot sizes as small as 0.001

 

  

Job completed in 11 days. The portfolio of Im_hungry contains 184 finished jobs. This developer received 86 feedbacks with an average rate of 4.86.
Do you want to place a new order for Im_hungry?
Mojtaba M.Alizadeh

moj1367 2012.06.26 18:49 50 credits

hello and I hope u be fine

I can design it for u even with more parameters

And I have this habit to have online chat with customer

my E-mail:moj1367@yahoo.com

regards

Mojtaba M.Alizadeh
forexmts

forexmts 2012.06.27 08:52 50 credits
I can make it
A.R.Wex

Wex 2012.06.27 11:36 > 50 credits     from 5 day(s)
Let me make the wanted EA for you.
Ettore Lorenzi

l.ettore 2012.06.27 12:26 30 - 50 credits     from 3 to 5 day(s)

I can do this, but i don't understand why you trade o.oo1 lots, in micro account the min lots is 0.01 but the value of the contract is less.

KeNic

KeNic 2012.06.28 10:51 40 credits     from 4 day(s)

That is possible.

Get in touch.

muchirag_unich@yahoo.com 

Alexander Puzikov

Im_hungry 2012.07.04 15:29

// skype = i_m_hungree (Хангри)

// mail = I-m-hungree@yandex.ru

// ICQ = 609928564

To add comments, please log in or register