• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 12:37pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 12:37pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Martingale, Anti-martingale, and Compounding 40 replies

Martingale, Reverse Martingale, Modified Martingale, Maths 1 reply

How to change this Martingale to Reverse Martingale ? 3 replies

Martingale vs. Non Martingale (Simplified RoR vs Profit) 1 reply

Baggio System 2 9 replies

  • Trading Systems
  • /
  • Reply to Thread
  • Subscribe
  • 117
Attachments: Martingale Baggio Method
Exit Attachments

Martingale Baggio Method

  • Last Post
  •  
  • 1 1213Page 141516 27
  • 1 13Page 1415 27
  •  
  • Post #261
  • Quote
  • Apr 20, 2008 8:42pm Apr 20, 2008 8:42pm
  •  Rama
  • | Joined Jan 2007 | Status: Member | 134 Posts
Quoting Numeral
Disliked
I canīt run backtest of v. 3.31, anyone test backtest of this version?

2008.04.20 18:20:55 2004.06.16 15:01
MA Martingale v3.31 USDCAD,M15: dll calls are not allowed;'user32.dll'-'GetDC'

Thanks
Ignored
Press F7 and allow dll imports, on "common" page of expert properties window.

Disable "Confirm DLL function calls" to avoid question "Do you allow user32.dll?"

This DLL is a standard library used to identify chart background color.

Rama
 
 
  • Post #262
  • Quote
  • Apr 21, 2008 10:55am Apr 21, 2008 10:55am
  •  Numeral
  • | Joined Aug 2007 | Status: Member | 145 Posts
Thanks, now its working.

Rama, if u could help,

I know what this do:
EmergencyClose=(Level Number) // Close with small profit or close in breakeven. This is ok.

I just donīt understand exactly what are this others settings:

TrailingProfit=true or false // Will start trailing from the TakeProfit we choose ?

TrailingStop=true or false // Whats the difrerence from TrailingProfit? How change the TS number?

You did explain about 2 ways of closing a TrailingProfit;
. Closing All and . Modifying All

How i manage them? I trying to make what u tell about:
"EA will close each martingale order at better prices. You Donīt show your real target to your broker"

and another thing, how use SecureProfit ?
change it, but donīt see results.


Thanks a lot,
Kind Regards
 
 
  • Post #263
  • Quote
  • Apr 21, 2008 11:29am Apr 21, 2008 11:29am
  •  berdj
  • | Joined Jul 2006 | Status: Member | 43 Posts
Rama,
I am wondering if this new version of Meta trader 216 is giving me trouble compiling 2 functions the log and orders count files that go into the include folders.
Pls check
tks
Berdj
 
 
  • Post #264
  • Quote
  • Edited at 1:22pm Apr 22, 2008 1:09pm | Edited at 1:22pm
  •  fry2010
  • | Joined Mar 2008 | Status: Member | 785 Posts
Hi this sounds like a good strat. I like the original method, just wondered if ppl were having much success and what pairs to avoid. I like the idea that it can give you better interest than a bank HAHA.
Also I see the drawdown can be very high so what account size would you say is suitable to take this?
EDIT* I also notice that the lot sizes are multiplied by factor 4, and that you make more profit further down you go. To have a lower drawdown could you just multiply by factor 2 instead? Make less profit but a safer option if its possible?
 
 
  • Post #265
  • Quote
  • Apr 22, 2008 2:58pm Apr 22, 2008 2:58pm
  •  Schminner
  • | Joined Jun 2007 | Status: Member | 939 Posts
Quoting Rama
Disliked
Check out MA Martingale v3.0.zip file, uploaded on 02/27/2008.
Ignored
Hi Rama, can I get a copy of this MA Martingale?
 
 
  • Post #266
  • Quote
  • Apr 22, 2008 5:29pm Apr 22, 2008 5:29pm
  •  Rama
  • | Joined Jan 2007 | Status: Member | 134 Posts
Quoting Numeral
Disliked
Thanks, now its working.

Rama, if u could help,

I know what this do:
EmergencyClose=(Level Number) // Close with small profit or close in breakeven. This is ok.

I just donīt understand exactly what are this others settings:

TrailingProfit=true or false // Will start trailing from the TakeProfit we choose ?

TrailingStop=true or false // Whats the difrerence from TrailingProfit? How change the TS number?

You did explain about 2 ways of closing a TrailingProfit;
. Closing All and . Modifying All

How i manage them? I trying to make what u tell about:
"EA will close each martingale order at better prices. You Donīt show your real target to your broker"

and another thing, how use SecureProfit ?
change it, but donīt see results.


Thanks a lot,
Kind Regards
Ignored
Hi Numeral:

EmergencyClose identifies the orders quantity a martingale must have opened to close it when its P/L is cero o bigger.

For example: if you set this parameter to 8, after order #8 is opened, EA will close it when pips P/L + swap is equal or grater than cero.

With less than 8 opened orders (1 to 7 orders) martingale will get closed when TP is touched.

This is the algorithm: if(_ExpertProfitTotal > 0 and _ExpertOrdersTotal >= EmergencyClose) then close all.

TrailingProfit changes take profit on all orders in a martingale to the same TP price used on the last one entered.

For example:
Order # Enter TP
1 1.5 1.5050

When next order is opened:
Order # Enter TP
1 1.5 1.5 (modified by parameter TrailingProfit = true)
2 1.495 1.5

When next order is opened:
Order # Enter TP
1 1.5 1.495 (modified by parameter TrailingProfit = true)
2 1.495 1.495 (modified by parameter TrailingProfit = true)
3 1.49 1.495

And so on…

On real and live trading, this means not back test nor demo, orders are closed at different prices because of natural delay on processing one by one. You send one instruction at a time, wait for the result, and if it is OK, try to close next.
This takes too much time, and it requires your EA working fine: energy, connection and coding bugs problems could interfere on this process.

To ensure closing all at the same price, you can change TP at the same price on all orders opened of the same martingale, using TrailingProfit.

This shows to your broker your target.

You can modify take profit manually at any moment also. It doesn’t affect the normal operation.

TrailingStop changes stop loss when last order's TP is hit. The rest of the martingale keeps opened, instead closing it, with a SL equal to last enter price plus (or minus, positive side) spread, letting profits run.

It is needed a wide difference between TakeProfit and StopLoss parameters, because stop loss price could result too close from market price, getting closed complete martingale immediately, or worst: invalid stop loss, and your martingale will remain opened without stop.

This works nice on big timeframes with wide TP and PipsStep.

For example (spread = 4):
Order # Enter TP SL
1 1.5 1.5050 none
2 1.4950 1.5 none
3 1.49 1.4950 none

Last opened order touches its TP:
Order # Enter TP SL
1 1.5 1.5050 1.4954 (modified by parameter TrailingStop = true)
2 1.4950 1.5 1.4954 (modified by parameter TrailingStop = true)

Last opened order touches its TP:
Order # Enter TP SL
1 1.5 1.5050 1.5004 (modified by parameter TrailingStop = true)

It could happen (on back test at least) that all the orders get closed at each original TP. In my modest opinion TrailingStop doesn’t work. It is a one of the forex myths.

Note: If you enable TrailingProfit and TrailingStop simultaneously, trailing stop is not going to work. Complete martingale will get closed at TP target.

SecureProfit is the profit target on a martingale as balance % for close all. If you want to close all when 0.5% profit is reached, what ever the number of orders opened in a martingale, set parameter SecureProfit = 0.5

This is the algorithm: ProfitTarget = AccountBalance*SecureProfit/100

And close all if(_ExpertProfitTotal >= ProfitTarget).

You can change this value at any moment. And it could be used as take profit. Simply delete take profit on your orders, or use a very big one, and use a low reasonable SecureProfit percentage.

To disable SecureProfit use 100% (SecureProfit =100) or bigger.

I hope this helps. For better understand how it works, try to back test them separately. First disable all of them, except one, and try it. Then change another one, and so on.

Good luck.

Rama
 
 
  • Post #267
  • Quote
  • Apr 22, 2008 5:33pm Apr 22, 2008 5:33pm
  •  Rama
  • | Joined Jan 2007 | Status: Member | 134 Posts
Quoting berdj
Disliked
Rama,
I am wondering if this new version of Meta trader 216 is giving me trouble compiling 2 functions the log and orders count files that go into the include folders.
Pls check
tks
Berdj
Ignored
Hi berdj:
You don't need to compile any include file.

They are compiled on EA compilation. Can delete the files generated on include folder, just keep the .mq4 and .mqh original code files.

Rama
 
 
  • Post #268
  • Quote
  • Apr 22, 2008 5:36pm Apr 22, 2008 5:36pm
  •  Rama
  • | Joined Jan 2007 | Status: Member | 134 Posts
Quoting Schminner
Disliked
Hi Rama, can I get a copy of this MA Martingale?
Ignored
All the versions were uploaded completely. Not only compilation files. Original Code files too. See on clip icon.

Please, if you can improve it operation, share it.

Regards

Rama
 
 
  • Post #269
  • Quote
  • Apr 22, 2008 5:38pm Apr 22, 2008 5:38pm
  •  Rama
  • | Joined Jan 2007 | Status: Member | 134 Posts
Quoting fry2010
Disliked
Hi this sounds like a good strat. I like the original method, just wondered if ppl were having much success and what pairs to avoid. I like the idea that it can give you better interest than a bank HAHA.
Also I see the drawdown can be very high so what account size would you say is suitable to take this?
EDIT* I also notice that the lot sizes are multiplied by factor 4, and that you make more profit further down you go. To have a lower drawdown could you just multiply by factor 2 instead? Make less profit but a safer option if its possible?
Ignored

Hi fry2010:
Please re-read thread's posts.

Rama
 
 
  • Post #270
  • Quote
  • Apr 23, 2008 7:43am Apr 23, 2008 7:43am
  •  Xaron
  • Joined Apr 2007 | Status: Evil Kraut | 2,743 Posts
Just for info. The EA runs great. I'm up more than 20% this month. Will post the statement by end of april. Thanks Rama!

Regards - Xaron
 
 
  • Post #271
  • Quote
  • Edited at 2:06pm Apr 23, 2008 9:28am | Edited at 2:06pm
  •  fry2010
  • | Joined Mar 2008 | Status: Member | 785 Posts
Thanks Rama, the threads answer my questions kind of.
I wondered if somone clever here might want to make an EA to try out. It is simple, basically it is orginal method.
If RSI is above 50 it makes a buy, if under 50 it sells. TP variable e.g. 10, 15, 20 or 30, stop loss also variable. But if the stop loss is hit it opens a trade in the opposite direction with the same stop loss and TP. The RSI might not even be needed if it can just open the first trade either a buy or sell.
So e.g. EA is started up, places a buy but later the stop loss is hit, so it enters a sell, then stop loss hit so enters a buy......untill profit is reached. Also could it be limited only rebound 7 times then if profit is not hit it does not continue. Also could it be made so that it will stop running as soon as there have been 2 winning trades? Also would need to double the lot size if loosing trade made. If it wins a trade it opens a new trade starting from 0.01 lot again in the same direction as the last. E.G. just won 10 pips going long, it immediatly re-opens another long trade, if sl hit reverse, if tp hit ea shuts down.
I would like to make it myself but I have no idea where to look for tutorial so hopefully somone is able to do this?
Or if somone can point me where to look to learn how to code EA?
 
 
  • Post #272
  • Quote
  • Apr 23, 2008 2:03pm Apr 23, 2008 2:03pm
  •  Schminner
  • | Joined Jun 2007 | Status: Member | 939 Posts
Quoting Rama
Disliked
All the versions were uploaded completely. Not only compilation files. Original Code files too. See on clip icon.

Please, if you can improve it operation, share it.

Regards

Rama
Ignored
Hi Rama, can you tell me where the "clip icon" is located?

I'll also provide feedback for improvements?
 
 
  • Post #273
  • Quote
  • Apr 23, 2008 2:10pm Apr 23, 2008 2:10pm
  •  Rama
  • | Joined Jan 2007 | Status: Member | 134 Posts
Quoting Schminner
Disliked
Hi Rama, can you tell me where the "clip icon" is located?

I'll also provide feedback for improvements?
Ignored
This one:
Attached Image (click to enlarge)
Click to Enlarge

Name: clip.GIF
Size: 11 KB
 
 
  • Post #274
  • Quote
  • Apr 23, 2008 2:12pm Apr 23, 2008 2:12pm
  •  Rama
  • | Joined Jan 2007 | Status: Member | 134 Posts
Quoting fry2010
Disliked
Thanks Rama, the threads answer my questions kind of.
I wondered if somone clever here might want to make an EA to try out. It is simple, basically it is orginal method.
If RSI is above 50 it makes a buy, if under 50 it sells. TP variable e.g. 10, 15, 20 or 30, stop loss also variable. But if the stop loss is hit it opens a trade in the opposite direction with the same stop loss and TP. The RSI might not even be needed if it can just open the first trade either a buy or sell.
So e.g. EA is started up, places a buy but later the stop loss is hit, so it enters a sell, then stop loss hit so enters a buy......untill profit is reached. Also could it be limited only rebound 7 times then if profit is not hit it does not continue. Also could it be made so that it will stop running as soon as there have been 2 winning trades? Also would need to double the lot size if loosing trade made. If it wins a trade it opens a new trade starting from 0.01 lot again in the same direction as the last. E.G. just won 10 pips going long, it immediatly re-opens another long trade, if sl hit reverse, if tp hit ea shuts down.
I would like to make it myself but I have no idea where to look for tutorial so hopefully somone is able to do this?
Or if somone can point me where to look to learn how to code EA?
Ignored
Did you analyze what would happen on ranging days?

Rama
 
 
  • Post #275
  • Quote
  • Apr 23, 2008 2:18pm Apr 23, 2008 2:18pm
  •  Rama
  • | Joined Jan 2007 | Status: Member | 134 Posts
Quoting Xaron
Disliked
Just for info. The EA runs great. I'm up more than 20% this month. Will post the statement by end of april. Thanks Rama!

Regards - Xaron
Ignored
I am up too, 15%.

I think I may increase my balance at least up to 2.500 / 3.000, so profits could be withdraw.

This will give more room also, for simultaneously martingales, and higher TradesCriticQtty number, as you are doing Xaron.

Regards

Rama
 
 
  • Post #276
  • Quote
  • Apr 23, 2008 2:21pm Apr 23, 2008 2:21pm
  •  fry2010
  • | Joined Mar 2008 | Status: Member | 785 Posts
Yeah I have looked back and looked back again just now. It seems fine if you have a low take profit and stop loss, obvoisly not too low say around 15 pip? But sounds like I am missing something. Ill look bak at posts but cudnt see anything on it.
 
 
  • Post #277
  • Quote
  • Apr 23, 2008 2:50pm Apr 23, 2008 2:50pm
  •  Rama
  • | Joined Jan 2007 | Status: Member | 134 Posts
Quoting fry2010
Disliked
Yeah I have looked back and looked back again just now. It seems fine if you have a low take profit and stop loss, obvoisly not too low say around 15 pip? But sounds like I am missing something. Ill look bak at posts but cudnt see anything on it.
Ignored
If you have a low TP you will need a lower PipsStep (stop loss). And martingale money management method showed on back tests and real trading that must support big movements. So 15 TP/SL will blow your account too soon.

In addition, RSI makes zig zag on ranging markets. See it at the end of each day, before Sydney opening. RSI moves continuously up and down. This will make you enter in false, getting worst if you reverse your position.

If you can find a setting for RSI, Stoch or MACD not zig zaging on lateralized markets, please post it and will try the method.

Kind regards

Rama
 
 
  • Post #278
  • Quote
  • Apr 23, 2008 2:52pm Apr 23, 2008 2:52pm
  •  Rama
  • | Joined Jan 2007 | Status: Member | 134 Posts
As I mentioned before, I’m running same EA and settings on same server, in different sessions, one on real, and the other on demo account.

I did it just to see if there could be differences on real vs. demo using exactly the same computer, connection and broker.

The best part of this test is that the log file is the same. So I can see the ticket on real, and immediately the ticket on demo. So it isn’t necessary compare records.

Yesterday, demo account opened two martingales with 5 (2+3) total opened orders on GBPJPY. Closed all of them before swap paid time.

On real account, first martingale was missed because a disconnection at that time. As reconnection occurred a few minutes later, a martingale started in that point. It opened 6 orders, and earned swap (BUY), getting closed today at Asian session.

Another thing I noticed also is that the order execution on demo account has better results than on real. I suppose it is because broker server must confirm your real order (i.e.: free margin), and on demo it is not necessary.

So it is necessary work on reviewing EA orders managing, not only to inform errors, but also to manage them.

For those who are trading real, be careful on this.

Rama
 
 
  • Post #279
  • Quote
  • Apr 23, 2008 3:12pm Apr 23, 2008 3:12pm
  •  Schminner
  • | Joined Jun 2007 | Status: Member | 939 Posts
Quoting Rama
Disliked
For those who are trading real, be careful on this.
Rama
Ignored
I've done some demo and live forward testing on various EA's. The results can be significantly different, especially when it comes to Martingales ... yes, becareful indeed ...
 
 
  • Post #280
  • Quote
  • Apr 23, 2008 3:15pm Apr 23, 2008 3:15pm
  •  fry2010
  • | Joined Mar 2008 | Status: Member | 785 Posts
Thanks for your reply's. The idea I had was to not actually use ANY indicators I only said RSI just in case it needed it to get it started.
Is it not possible to just try and see whether the Buy and then Sell if stop loss is hit untill profit is reached? When you say it has been tested and shows on low volatility it blows the account, I dont see these tests, only tests for the EA you made that will only buy when in a buy signal, and sell when in a sell signal?
Basically forgetting all indicators all together, just an EA that will buy then if stop loss is hit, it will enter a sell, if stop loss is hit then enter a buy again untill take profit is reached?
I hear what your saying about the low volatility and it blowing the account but I dont see it.
 
 
  • Trading Systems
  • /
  • Martingale Baggio Method
  • Reply to Thread
    • 1 1213Page 141516 27
    • 1 13Page 1415 27
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022