1. Originally Posted by funyoo
Hi NICK35,

You have to replace magic by Magic_Number.
Hi funyoo thanks for help

now my ea is ok as code (no error)

but not double the size of lot after loss.

I put all the string code exactly I think...

2. Hi NICK35,

Exceptionally, here is the code.

3. Originally Posted by funyoo
Hi NICK35,

Exceptionally, here is the code.
nr 1 man !!!! thanks

4. yes I know this method its called fartinggale lolololololol

5. Originally Posted by Perky_z
yes I know this method its called fartinggale lolololololol
i can tollerate even 12 time loss consecutively !!!!!

depend where you put the sl martingale..

6. Originally Posted by funyoo
Note that this martingale is not conventionnal. The lots size is increased when there is a loss, and decreased when the is a profit. While it should start again at initial lots when the last serie of consecutive loss finishes on a win.

If you have a function for a basic martingale, don't hesitate to post :

Code:
```extern double Lots=0.01;//|----------------------lots
extern bool Martingale=false;//|-----------------martingale
extern double Multiplier=2.0;//|-----------------multiplier martingale
extern double MinProfit=50;//--------------------minimum profit to apply the martingale```

Code:
`   if(Martingale)CalculateMartingale();Balance=AccountBalance();`
At the end of the code, add :

Code:
```void CalculateMartingale()
{
double InitalLots=0.01;
double MinLots=MarketInfo(Symbol(),MODE_MINLOT);
double MaxLots=MarketInfo(Symbol(),MODE_MAXLOT);
if(Balance!=0.0)
{
if(Balance>AccountBalance())Lots=Multiplier*Lots;
else if((Balance+MinProfit)<AccountBalance())Lots=InitalLots;
else if((Balance+MinProfit)>=AccountBalance())Lots=Lots;
if(Lots<MinLots)Lots=MinLots;
if(Lots>MaxLots)Lots=MaxLots;
}
return(0);
}```
hello this martingale doesnt remember accountbalance how can it remember accountbalance

7. Originally Posted by funyoo
But I don't know how to use the extern Lots parameter as InitialLots.
Hi funyoo,

I haven't had time to read through the thread to see if you have found a solution, but here is what I would do:

If you use a fixed lot size then you can just declare "Lots = InitialLots" in the initialization function.

If you use a MM risk lot size, then in the function where you calculate the lot size, instead of declaring the lots as "Lots", declare it as "InitialLots".

Chris

8. Hi There,

could you please post the indicator

BarScalper MACD.ex4

thanks

blueocean
Thanks

9. Originally Posted by ebbenezer66
I came across this awhile back and need advice on it, I've seen it work but legally I'm not able to use it in the states online anymore. It involves roulette and the martingale system. You clearly start with the minimum bet possible, choosing either red or black. As with the martingale system you plan to loose and then double your previous bet. By continuing to bet red or black until you win.
That is actually how I got into trading Forex. I read an article on how to make money on the internet. In the article, this was there and above it was Forex. I tried both, but I only stuck with Forex, and I am not regretting my decision.

The roulette thing sucks though. Most online casinos recognize what you are doing and ban you. And if you try it in an actual casino, they will pick you up over their shoulders and throw you straight out the door.

Also, your risking losing your whole balance, just to get \$1, or whatever your first bet was.

Chris

10. Hello Funnyo,

I am still waiting for reponse for my previous post
Please can you make that code
sorry for english
Thanks