![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi Farhad, I have some question about the ea. What is a crab? Why you call it that? Do you have any doc on how to use the ea. I put it on charts but nothing happens. I dont know what Im doing. Some info on what this ea does would be good to share. Thanks you.
may i know why did it open many positions of 1.0 lot?
it didn't open many positions. it's a surprise to me too. as a matter of fact, the crab opened two 10 Lots position and then when it closed these 2*10 Lot positions it splitted it into 1 lot positions with different profits. if you add up the whole positions you can see the sum is 2*10 Lots.
the money management is written in a way that the whole positions will not exceed 3 .
orderstotal()<=3 ;
it didn't open many positions. it's a surprise to me too. as a matter of fact, the crab opened two 10 Lots position and then when it closed these 2*10 Lot positions it splitted it into 1 lot positions with different profits. if you add up the whole positions you can see the sum is 2*10 Lots.
the money management is written in a way that the whole positions will not exceed 3 .
orderstotal()<=3 ;wow 20 lot?
if i test on usd1k demo account, will it open 10x 0.05 lot?
For me it opened 1.0 standard lot on a $50K demo account and stopped out in profit of +38 (so $380).
statement clip for the trade on IBFX:
20476497 2007.01.25 01:55 sell 1.00 eurusd 1.2962 1.2924 1.2912 2007.01.25 19:52 1.2924 0.00 0.00 0.00 380.00
GK
Beats me
If someone else knows, that would be great, cuz i would like to know too.
GKgkozlyk
no need to turn off money management. the default settings of crab only uses 1/10th of the account balance. may i need to add codes for mini forex in case of 0.01 Lots.
for the time being you'd better use the following rule in your test :
WHATEVER YOUR BALANCE IS DIVIDE IT BY 10 AND PUT THE NEAREST INTEGER IN LOTS. FOR EXAMPLE IF BALANCE IS 1000$ THEN
1000/10=100 AND NEAREST LOT TO 100& IS 0.1 LOT .
gkozlyk
no need to turn off money management. the default settings of crab only uses 1/10th of the account balance. may i need to add codes for mini forex in case of 0.01 Lots.
for the time being you'd better use the following rule in your test :
WHATEVER YOUR BALANCE IS DIVIDE IT BY 10 AND PUT THE NEAREST INTEGER IN LOTS. FOR EXAMPLE IF BALANCE IS 1000$ THEN
1000/10=100 AND NEAREST LOT TO 100& IS 0.1 LOT .It would probably be a good idea to add in minilot capability for those of us with mini accounts![](https://c.mql5.com/forextsd/smiles/smile.png)
GK
For me it opened 1.0 standard lot on a $50K demo account and stopped out in profit of +38 (so $380).
statement clip for the trade on IBFX:
20476497 2007.01.25 01:55 sell 1.00 eurusd 1.2962 1.2924 1.2912 2007.01.25 19:52 1.2924 0.00 0.00 0.00 380.00
GKIt seems it has different performance on different Brokers. of course it's natural because of different settings of brokers' servers.
Hi Farhad, I have some question about the ea. What is a crab? Why you call it that? Do you have any doc on how to use the ea. I put it on charts but nothing happens. I dont know what Im doing. Some info on what this ea does would be good to share. Thanks you.
one of my colleagues and I designed a robot which could distinguish any kind of curve and go along any kind of curve or even spiral. we called it crab. hence this crab has the idea of that crab! I thought about an EA who sticks to the chart and never split from it.
this crab originally uses 2 lwma (linear weighted moving average) of period 34 and 89 on 1h Timeframe. and uses a set of indicators such as deMark, stochastic, momentum and so on as filters. IT SHOULD BE USED ON 1M TIMEFRAME.
i've used elliott wave principle as a filter too.
It would probably be a good idea to add in minilot capability for those of us with mini accounts
ok,
thanks for the tip
gkozlyk
no need to turn off money management. the default settings of crab only uses 1/10th of the account balance. may i need to add codes for mini forex in case of 0.01 Lots.
for the time being you'd better use the following rule in your test :
WHATEVER YOUR BALANCE IS DIVIDE IT BY 10 AND PUT THE NEAREST INTEGER IN LOTS. FOR EXAMPLE IF BALANCE IS 1000$ THEN
1000/10=100 AND NEAREST LOT TO 100& IS 0.1 LOT .but how come i see your statement, the EA opens many 1.0 lots at the same time?