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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

SWB Martingale EA 1,026 replies

Martingale, Reverse Martingale, Modified Martingale, Maths 1 reply

SWB Martingale EA (with best setting) 63 replies

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

SWB Super Trend 77 replies

  • Trading Systems
  • /
  • Reply to Thread
  • Subscribe
  • 28
Attachments: SWB Stealth (Martingale)
Exit Attachments

SWB Stealth (Martingale)

  • Last Post
  •  
  • 1 Page 234 5
  • 1 Page 234 5
  •  
  • Post #21
  • Quote
  • Nov 12, 2010 9:56pm Nov 12, 2010 9:56pm
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
You can always go with IBFX if you live in the States. They are FIFO compliant (or so they say), but everything is done on their side, so whenever you go to close a trade, you can't tell the difference. You don't know that you're not trading LIFO. Neither do your EA's.
 
 
  • Post #22
  • Quote
  • Nov 13, 2010 1:42am Nov 13, 2010 1:42am
  •  ChicagoRob
  • | Joined Mar 2008 | Status: Member | 953 Posts
Quoting ecTrade
Disliked
You can always go with IBFX if you live in the States. They are FIFO compliant (or so they say), but everything is done on their side, so whenever you go to close a trade, you can't tell the difference. You don't know that you're not trading LIFO. Neither do your EA's.
Ignored
My experience, exactly. Both of my live accounts use non-FIFO compliant EAs and they trade perfectly with IBFX.

Rob
 
 
  • Post #23
  • Quote
  • Edited at 6:00pm Nov 13, 2010 7:51am | Edited at 6:00pm
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Okay, it looks like I got the hedge together on the stealth version, on both tp_averaging verson and non-tp_averaging version. It wasn't nearly as difficult this time, as the EA is laid out better. Both versions seem to be working okay, except I'm not sure about the final calculations. I still need some time to look at it. You are free to try it out, however.

As for how to set it up, set hedge to true, hedge_start to level you want to start, h_lot_factor to lot value you want, based upon percentage of current trade, and h_tp_factor to tp value, based upon percentage of range. There's also a secondary_hedge which, when set to true, continues to place hedges if first hedge closes out before next level opens. You can also specify at what point it opens with secondary_factor which, like h_tp_factor, is based upon percentage of range.

Currently I already have these values set, but there is nothing to say they have to stay that way. They are more for illustration at this point. I will also probably post this on the original post, when I get the chance.

Any questions, or bugs to report? Feel free to let me know, Okay?

Thanks.

ETA: Had to modify because it wasn't working with tp_averaging set to false ...
Attached File
File Type: mq4 swb stealth_v1.01_h.mq4   14 KB | 443 downloads
 
 
  • Post #24
  • Quote
  • Nov 13, 2010 8:25am Nov 13, 2010 8:25am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Quoting ecTrade
Disliked
Well, hopefully I'll have a few more to add before I'm through. I was looking at this thread here, and the indicator which I also modified here, and thought maybe we could get it to open particular pairs based upon their relative strength. I still need to get the indicator to work properly though, because it's not refreshing at the opening of a new bar. Thus far, nobody's even attempted to offer a solution....
Ignored
Oh, I'm going to post this one more time, and ask if anyone knows how to set this indicator so it will update when new a bar opens. It would also be nice to know how to access currency prices when they are updated, so I can possibly use them with this EA.

I said before, I modified the indicator on this thread here.
Attached File
File Type: mq4 CCFp_v1.0.2.1vert.mq4   23 KB | 339 downloads
 
 
  • Post #25
  • Quote
  • Nov 14, 2010 2:41pm Nov 14, 2010 2:41pm
  •  carolco
  • | Joined Jan 2010 | Status: Member | 178 Posts
Dear Ec and other thread followers!

I backtest and forwardtest this robot for a long time. Since then I didnt realize how to avoid death trade. At theese days it is not a problem to go 10 levels deep with 25 pip range.

now im forwardtestng on IBFX demo platform v4103 with Steve Hopwoods MPTM set to 50, 100, 200 shirt protection. SWB is running at 22 pairs all the time. This week Shirt protection was hit 2 times (50, 100) and one time (200) So all 3 demo accounts are in loss.

What about recode SWB to be a trend follower (so where SWB originaly opens Buy would open Sell and vice versa). All the next rules would be the same except one: If the trade goes with trend to L2 and deeper it will be closed at BE instead of a loss (originaly at profit, the difference is only few pips). Then we will wait till all the pairs with SWB would make overal profit with huge trend movement.

So the robot should trade like this:
SWB opens a trade at ALL Available pairs with trend (which is determined in my case by RSI period 12 LL45 HL55). And the trade of each pair ends only in 3 cases:

1.If it goes against us we lost 25 pips (hard SL)
2.If it goes 25 pips (or whatever) our direction (with trend) robot places next doulble lot trade (same like original but with trend). From L2 and deeper if the movement changes its direction whole martingale sequence will be closed at BE.
3. If the overal floating profit reach predefined Profit Target (lets say from 10-200 USD ((IBFX nanilots - 1pip 1 cent)

So with this rule our SWB will produce some BE and L1 -25 pips lossing trade which will slowly loose money for the time of ranging markets. But when trend happend there should be huge profit.

To get as much trades as possible I use theese settings:
BB - False
Stoch- False
RSI - period 12 Low Level 45 High level 55

For last month I Have original SWB runing on demo which produces average 35 USD (L1 winning trades are about 40% of overal profit) per day but I see all the time DD 10 - 20 USD..

That way we do not need huge capital like with original SWB. The death trade in original is something we are waiting for with this system. It wont blow up your account in a day or two. We are still in and we never miss any larger movement from which we will have a profit.

Time filter for pairs out of its session would improve loosing trades..
 
 
  • Post #26
  • Quote
  • Edited at 6:54pm Nov 14, 2010 6:21pm | Edited at 6:54pm
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Quoting carolco
Disliked
What about recode SWB to be a trend follower (so where SWB originaly opens Buy would open Sell and vice versa). All the next rules would be the same except one: If the trade goes with trend to L2 and deeper it will be closed at BE instead of a loss (originaly at profit, the difference is only few pips). Then we will wait till all the pairs with SWB would make overal profit with huge trend movement.
Ignored
Are you saying to reverse the inputs? I think that would probably be easy enough. Also, I think I tried this once before, but couldn't get it to work. But, now that I have a better understanding of the code and have it laid out better, although I still don't have a good grasp on the indicators, I might be able to get it to work.

Or, if I modify it and it doesn't work because the indicator settings are wrong, perhaps you could help me out there?
 
 
  • Post #27
  • Quote
  • Nov 14, 2010 7:33pm Nov 14, 2010 7:33pm
  •  carolco
  • | Joined Jan 2010 | Status: Member | 178 Posts
Yes it was me who was asking You to reverse opening trades..:-)

I would love to help You but I have no idea about coding..
Maybe it could be easier to code whole new EA for this idea?

A professional trader with nick Scooby-Doo has a simple idea how to determine trend and range:
IF RSI20 DAILY TF is above 55 its LONG
IF RSI20 DAILY TF is below 45 its SHORT
If RSI20 is between 45-55 its a ranging market..(So in ranging market according to this idea we do not trade, but still I think we need to be in the market continually..)

I am posting an indy which coded Steve Hopwood. It is showing Daily RSI on any TF chart. I hope this helps..
Attached File
File Type: mq4 #MTF_RSI.mq4   4 KB | 292 downloads
 
 
  • Post #28
  • Quote
  • Nov 14, 2010 9:35pm Nov 14, 2010 9:35pm
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Okay, it was easy enough to reverse the inputs and open trades in opposite direction, but it still reaches pretty high limit levels, almost from the start. I tried adding 25 point hard sl, which I assume you want all levels set to (or, last order?), but I'm having problems doing that. Of course once it's set, it won't open the next level ... or, is this what you had in mind?

Will need some more clarification on this before I can go any further ... and possibly consider some of these other ideas.
 
 
  • Post #29
  • Quote
  • Nov 15, 2010 2:39am Nov 15, 2010 2:39am
  •  carolco
  • | Joined Jan 2010 | Status: Member | 178 Posts
Yes. I meant 25 (variable) pips hard SL. If SL is hit the RSI settings should point to opposite direction of the previous trade so right after closing in loss there should be a new reversing trade..

Right now I cen see slightly positive floating PL on SWB account which is unusual..:-) I think something huge is comming...
 
 
  • Post #30
  • Quote
  • Nov 15, 2010 2:45am Nov 15, 2010 2:45am
  •  carolco
  • | Joined Jan 2010 | Status: Member | 178 Posts
Oh I wanted 25 SL hard stop loss for every L1 trade goes against trend (our direction). Then if it goes Our direction (with trend) we add every 25 pips (our range for now) additional trades (L2 and deep, same way like with original SWB, this time with positive floating PL). If it reaches L2 and deeper and then goes against us we close trades at BE. Not with the loss according to original rules..

I hope this helps.. Thank You.
 
 
  • Post #31
  • Quote
  • Edited Nov 16, 2010 9:51am Nov 15, 2010 6:35pm | Edited Nov 16, 2010 9:51am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Quoting carolco
Disliked
Oh I wanted 25 SL hard stop loss for every L1 trade goes against trend (our direction). Then if it goes Our direction (with trend) we add every 25 pips (our range for now) additional trades (L2 and deep, same way like with original SWB, this time with positive floating PL). If it reaches L2 and deeper and then goes against us we close trades at BE. Not with the loss according to original rules..

I hope this helps.. Thank You.
Ignored
You can go ahead and try this. I believe it's roughly set up the way you are asking. It's a little bit buggy, but I think it can be fixed if I decide to pursue it. And here, although tp_averaging is set to true, and needs to be set to true (don't set it to false), I disabled it because it won't work that way. But, if you set it to false, it won't work that way either. This is the only major bug I'm aware of.

I just added an input to set break even level. However, to set SL for first trade, you have to calculate it using trade_1_factor. For example, if you want it set to 25, you take the start_lot, which is currently set to 0.1, and multiply it by 25, which is -2.50. Now, if tp_in_money is set to 5.00, you want to multiply that by -0.5 to get -2.50. This is how it's set up currently.

Right now it's not making any money, although it's not losing much either. You will probably need to dinker with the indicator settings, or possibly change indicators, for better results. I just did this more to see if I could get it to work, and possibly get more input from you.

Thanks.

ETA: Modified to include updates below, as well as indicator.
Attached Files
File Type: mq4 swb stealth_v1.01_R.mq4   13 KB | 352 downloads
File Type: mq4 #MTF_RSI.mq4   4 KB | 313 downloads
 
 
  • Post #32
  • Quote
  • Edited at 10:04am Nov 16, 2010 9:41am | Edited at 10:04am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Okay, have modified EA to include #MTF_RSI indicator. Also added first trade SL, which only works when set to value greater than 0. Otherwise it goes with value determined by trade_1_factor.

I also figured out it doesn't close trades properly when using either tp_averaging and non-tp_averaging scenarios, and have bypassed it altogether, at least for now. Instead I'm setting it to do a close-all through trade limit level. For example, if set to level 4, it opens up to 4 trades and, when it goes to open the 5th (or reaches that threshold) it won't, but closes everything out at that point. It actually works quite well, and I may wind up adopting it. In fact, if you want to figure out the overall TP level, just multiply the range by the number of trades or trade level.

The break-even feature doesn't appear to work right either, so I've disabled it for now (set it to higher value than trade level) but, it definitely needs to be addressed, and I should have it incorporated in the next and/or final version.

After that, we can begin discussing strategies and perhaps the more subtle modifications. This EA looks pretty promising! I modified it in the post above and included the indicator as well, which you'll need to put in your indicator folder.
 
 
  • Post #33
  • Quote
  • Nov 16, 2010 4:59pm Nov 16, 2010 4:59pm
  •  carolco
  • | Joined Jan 2010 | Status: Member | 178 Posts
Hello EC! It is nice to hear You ike my idea.. Please do not bother yourself with Global closure feature. I will use MPTM for it.

Believe me I am thinking about this EA all the time.. The question for me right now is if the positive martingaling with BE feature will bring desired perfomance.
In other words if BE is a good idea for this kind of "basket trading".
Follow me:

0.01 L1 trade is opened and after 25 pips 0.02 L2 is opened then the price needs to go about 7 pips against the trade to BE..
but..
If we start Martingale after L4 (first three or whatever levels would be 0.01) we would give the market more space.. Or we can set up SL @ -25pips permanently (with first tree levels @ 0.01, the loss factor will increase but we would have more chance to let the trade go deeper into levels exactly like in original SWB)

Theese are just thoughts that I would like to test.

I think the RSI would work fine and keep us from ranging market. Or we can use original combination of BB, Stoch and RSI built in the original SWB. But I think we should be still in the market so the inputs is not so important for me right now. I think the strength of this system is that we use almost all pairs which will give us positive result alltogether the same way as I am permanently in DD with original SWB with inputs that allow you to have a trade on the pair permanently..

So generaly I would love to have ability to set up user defined multiplier manualy (0.01, 0.01, 0.01, 0.02, 0.03, 0.04, 0.06, etc.) and if it is too hard to code so would be nice to have one lot size (user definable) for all levels
and to have variable SL in money. The global closure feature can be handled by MPTM.

But this is totaly different EA. I wish I could help You with it..
 
 
  • Post #34
  • Quote
  • Edited at 9:45pm Nov 16, 2010 9:07pm | Edited at 9:45pm
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Quoting carolco
Disliked
0.01 L1 trade is opened and after 25 pips 0.02 L2 is opened then the price needs to go about 7 pips against the trade to BE..
but..
If we start Martingale after L4 (first three or whatever levels would be 0.01) we would give the market more space.. Or we can set up SL @ -25pips permanently (with first tree levels @ 0.01, the loss factor will increase but we would have more chance to let the trade go deeper into levels exactly like in original SWB)
Ignored
This actually is a good idea. I was thinking of something similar, except only setting the first trade to 0.01, before ramping up to higher lot levels. I even tried it, but it didn't appear to work too well. Now, if we set the first three levels to 0.01, it gives us a better chance to establish a trend and, hopefully hit a higher target. Or, maybe not if it retraces too much? We won't know until we actually try it though.

And no, it shouldn't be too difficult to set it up with variable lot sizes like that ... either that or, make it user definable at each level as you suggest.

Quote
Disliked
The global closure feature can be handled by MPTM.
And by this, are you talking about across all charts when using multiple charts? Because the close-all feature should be easy enough to program on the local level anyway. I was just having problems with it after reversing the inputs and something got botched up in the code. It was working fine before, although I'll probably have to modify it or come up with something a bit different here.
 
 
  • Post #35
  • Quote
  • Nov 17, 2010 2:26am Nov 17, 2010 2:26am
  •  carolco
  • | Joined Jan 2010 | Status: Member | 178 Posts
yes. MPTM can be set to handle all open trades across all charts in MT4 including global closure but if it is not difficult to code global closure to the SWB, then of course it would be better..

I just wanted you do not have too much work with it..:-)

Lookin forward to your updates..
 
 
  • Post #36
  • Quote
  • Nov 17, 2010 6:05am Nov 17, 2010 6:05am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Quoting carolco
Disliked
I think the strength of this system is that we use almost all pairs which will give us positive result alltogether the same way as I am permanently in DD with original SWB with inputs that allow you to have a trade on the pair permanently..
Ignored
Would like to see how that works.
 
 
  • Post #37
  • Quote
  • Nov 17, 2010 2:08pm Nov 17, 2010 2:08pm
  •  Atlas1
  • | Joined Sep 2009 | Status: Member | 43 Posts
Quoting ecTrade
Disliked
Would like to see how that works.
Ignored
I agree with ecTrade.....like to see how that works!

What method does one use to rate the pairs into complimentary baskets
where the aggregate net result to the operating basket is gain or BE?

http://www.forexfactory.com/showthread.php?t=265350

This thread by O'l Dog has much merit in describing a method for aggregating
multiple pairs into either ranging or trending "combined" results. Essentially if this method were operable one could have a constantly trending, or conversly, a constantly ranging combined pair result!

Other than the above, what other methods do you recommend to constantly be managing a multiple pair basket efficiently and to a profitable result?

Atlas1
 
 
  • Post #38
  • Quote
  • Nov 17, 2010 2:16pm Nov 17, 2010 2:16pm
  •  Atlas1
  • | Joined Sep 2009 | Status: Member | 43 Posts
Quoting ecTrade
Disliked
Okay, have modified EA to include #MTF_RSI indicator. Also added first trade SL, which only works when set to value greater than 0. Otherwise it goes with value determined by trade_1_factor.

I also figured out it doesn't close trades properly when using either tp_averaging and non-tp_averaging scenarios, and have bypassed it...
Ignored
ecTrade: Thank you for all the diligent work you have shared with your issue of this modified SW Martingale EA. Two items: how are you coming with the BE mod as this is viewed by me as very important to the overall performance, and (2) could you share the newest set files you have arrived at to start testing which would include your latest code mods? Perhaps it is the time to repost a summary incorporating all the changes, etc.?

Thanks again for your hard and continuing effort,
Atlas1
 
 
  • Post #39
  • Quote
  • Nov 17, 2010 5:36pm Nov 17, 2010 5:36pm
  •  carolco
  • | Joined Jan 2010 | Status: Member | 178 Posts
Quoting ecTrade
Disliked
Would like to see how that works.
Ignored
Me too..
 
 
  • Post #40
  • Quote
  • Edited Nov 18, 2010 8:55am Nov 17, 2010 6:28pm | Edited Nov 18, 2010 8:55am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Okay, it looks like I have something here. Everything seems to be working fine, except for the break even feature, unfortunately. It too appears to be working, except I'm not getting very good results. Maybe it's my settings, I don't know? I was trying something different (current defaults) from what carolco suggested. Since he/she has a better idea of what they're looking for, maybe they can make the required adjustments?

As per carolco's request, I've set it up with variable lot (versus range) configuration. There are two lot sizes and two ranges, the initial lot size and range (start_lot_1 and range_1) for the first trade, and secondary lot size and range (start_lot_2 and range_2) which works with lot multiplier and increment settings. And, where carolco suggested three 0.01 trades, at 25 pips, I thought I should first try one trade at 0.01, and vary the range to say, 75 pips (or whatever). And from there, if trend is strong enough, you can start ramping up lot sizes by entering secondary trades. Oh well, this section seems to be fully functional, which I verified by checking the results tab on the backtester. If necessary, can add start_lot_3 and start_lot_4 though.

Also, there are three options for closing out trades: tp_in_money, based upon currency value or, tp_top_level, which closes trades based upon top_level you set. The third option is tp_hard, which is set when tp_top_level is set, and sets actual TP values, instead of "stealth."

There is also sl_1 for first trade (currently set to 50), which will either close out trade when it's hit or, gets deleted when second trade opens and break even feature is enabled. Which brings us to where we're at now. On top of break_even level (which should be set at 2), I added b_e_loss (set to 1.0) which lowers break_even target. This is one way to verify whether it's working or not. Initially, when set to 0, it kept opening and closing trades right away and nothing happened. So I set it to -1.0 (no need to add "-" sign) and started getting some action, except it was closing out too many times at a loss. But, at least it appeared to be working.

Also, if you set b_e_loss to a large value, say -25.0 (again, no need to add "-" sign), it basically disables it, which gives you a chance to evaluate other parts of the EA and see whether it's working or not.

That's about it for now I guess.

Thanks

ETA: Set tp_in_money as closing option ... added mods in post #42.
Attached File
File Type: mq4 swb stealth_v1.01_R1.mq4   14 KB | 386 downloads
 
 
  • Trading Systems
  • /
  • SWB Stealth (Martingale)
  • Reply to Thread
    • 1 Page 234 5
    • 1 Page 234 5
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