• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 2:21am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 2:21am
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,027 replies

SWB Stealth (Martingale) 95 replies

SWB Martingale EA (with best setting) 63 replies

Super trend system fellowship 53 replies

How do I use the Super Trend Indicator in my EA? 7 replies

  • Trading Systems
  • /
  • Reply to Thread
  • Subscribe
  • 20
Attachments: SWB Super Trend
Exit Attachments
Tags: SWB Super Trend
Cancel

SWB Super Trend

  • Last Post
  •  
  • Page 1 23 4
  • Page 1 23 4
  •  
  • Post #1
  • Quote
  • First Post: Edited Jan 7, 2011 9:46am Dec 22, 2010 8:26am | Edited Jan 7, 2011 9:46am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Hello,

This EA is loosely based upon the SWB Martingale EA in this thread here. There are enough changes though, that are worth considering.

First of all, I've incorporated the SuperTrend indicator (from this thread) and am basing all the timing upon that. In other words this is the only indicator being used.

I'm also opening pending trades (buystop and sellstop) instead of straight buy and sell orders, where the pending offset (p1_offset and p2_offset) is adjustable. You also have the option to go with straight buy and sell orders by setting the offset to 0 or, less than 5.

I also have it setup in increment mode, instead of using the lot multiplier, plus, each level is setup with its own TP which, once it is hit, it resets, and opens a new trade, and will continue doing so, so long as it's still in range and, how the indicator is used. If, however, you set it to stealth mode, it won't behave this way, and pretty much behave like the original SWB.

Also, with original SWB, the indicator(s) only determined the opening of the first trade. Here, it's determining the opening of all trades on all levels ... although it can be restricted to the first level by setting tier2_sig to false.

That pretty much explains it for now I think, except everything is setup the way I'm currently using it. You can scale it up or down depending upon your preferences. If you wish to use the same settings, I recommend an initial deposit of at least $500 or, whatever currency you're using. I also have the indicator and chart(s) set to M1 time frame and, thus far, it doesn't adversely seem to affect anything. This is something only time will tell though.

It's also setup so you can run multiple instances on more than one pair and chart (adjust lot sizes and profit targets accordingly), plus, I've added the Close_on_Profit EA that I developed here, that will do a global closeall when a specific profit target is reached. It works quite well for this particular application in fact.

Oh, don't forget to put the SuperTrend indicator (SuperTrend.mq4) in indicator folder!


ETA:

  1. 12/23/10 .. Added deviation_reset and changed p_target to $3.00 on SWB_SuperTrend EA .... post #11.
  2. 12/23/10 .. Included update to Close_on_Profit EA .... post #16.
  3. 12/23/10 .. Fixed deviation_reset, which wasn't working right .... post #17.
  4. 12/23/10 .. Modified deviation_reset to include first trade only plus added reset_level .... post #28.
  5. 12/24/10 .. Added shutoff_level to stealth mode .... post #34.
  6. 12/26/10 .. Changed shutoff_level to curb_level on SWB_SuperTrend EA .... post #44.
  7. 12/26/10 .. Added manual closeall to Close_on_Profit EA .... post #45.
  8. 12/29/10 .. Added pend_delete timeout to SWB SuperTrend EA .... post #47.
  9. 01/07/11 .. Added SWB SuperTrend EA version with manual options .... post #51.

Attached File(s)
File Type: mq4 SWB_SuperTrend_V1.01.mq4   11 KB | 3,320 downloads | Uploaded Dec 29, 2010 9:11am
File Type: mq4 Close_on_Profit.mq4   3 KB | 2,206 downloads | Uploaded Dec 27, 2010 2:20am
File Type: mq4 SuperTrend.mq4   4 KB | 2,806 downloads | Uploaded Dec 27, 2010 2:20am
File Type: mq4 SWB_SuperTrend_V1.01_Man.mq4   13 KB | 2,964 downloads | Uploaded Jan 7, 2011 9:46am
  • Post #2
  • Quote
  • Dec 22, 2010 9:29am Dec 22, 2010 9:29am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Hey, I noticed that p_target (profit target) is kind of low for these particular settings. That's because I was setting it up and preparing to go live using different settings and forgot to change it back. I think $3 to $5 would be a more reasonable setting here. I will probably incorporate this the next time I update the EA.
 
 
  • Post #3
  • Quote
  • Dec 22, 2010 4:26pm Dec 22, 2010 4:26pm
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
So, did anybody get a chance to take a look at this yet? It's not quite the full blown Martingale like the original SWB. In fact, I'm not sure it can be called a Martingale the way it's being applied. It's still a grid arrangement, involving successive levels (or tiers), where trades are added at each level, and the lot sizes increased. However, I'm only increasing it by increments, instead of doubling it each time, and hoping and praying for a retrace. Plus, I've added the buystop and sellstop pending orders (with market order option) so, that if all of a sudden the trend reverses or switches back (depending on the offset), it won't necessarily open anything, and proceed to the next level. At which point it opens a new pending order that's presented with the same criteria.

So, conceivably you can get up to 6 or 7 levels deep (or more), and yet, only have one or two orders open. On top of that, you have the indicator determining the entry point (I think M15 time frame might be better?), which makes it even more dynamic and responsive to market changes. And, while it may take longer to close everything out, at least you're not always in immediate danger of blowing the whole account (although with new 50:1 leverage rule, it is less likely). This is the general idea behind what I'm trying to do anyway.

Of course there are other nuances and features involved, for example, the power lots feature, but we can discuss this later.

Thanks.
 
 
  • Post #4
  • Quote
  • Dec 22, 2010 4:46pm Dec 22, 2010 4:46pm
  •  ChicagoRob
  • Joined Mar 2008 | Status: Member | 953 Posts
Quoting ecTrade
Disliked
So, did anybody get a chance to take a look at this yet? It's not quite the full blown Martingale like the original SWB.
Ignored
Thanks, EC, for your contribution. As a long time grid trader with Blessing, this caught my eye. Can you post a couple of set files you feel are good starting points? Here's to a profitable 2011.

Rob
 
 
  • Post #5
  • Quote
  • Dec 22, 2010 5:02pm Dec 22, 2010 5:02pm
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Hey Rob,

No I don't have any set files. I haven't had time to do any extensive testing, besides taking the time to insure the code works properly. As I said in the original post though, it's pretty much setup to start the way it is, although I recommend at least a $500 initial deposit. This will at least give you some idea how it works.

And yeah, there are plenty of scenarios (or options) built into it, but I thought perhaps others might be interested in exploring this, and possibly I might add some set files later.

Thanks.

Quote
Disliked
Here's to a profitable 2011.
Hey hey!
 
 
  • Post #6
  • Quote
  • Dec 23, 2010 1:22am Dec 23, 2010 1:22am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Here is a backtest that I ran on EURUSD from 6-17-09 to 1-17-10 using the same parameters described above, except using M15 time frame and profit target set to $3.00. I started with an initial deposit of $500 and at the time of the snapshot (test is still running, but is painstakingly slow), I had about $900 in the account, which was down about $45, with a "deviation" point of 200 (below opening price of first trade) and, it had just opened a 3rd level trade. It has since dropped another 200 points, as of 1-20-10 (400 total), and is down another $110 (balance about $790) so, it may be ready to crap out, I don't know?

Of course this was when the Euro took a nose-dive back in early December, and didn't begin to recover until March or April I believe. It's funny, because I didn't have any difficulties in December (around trade #289), which is where I normally do. But, that's because I didn't have any open buy positions right where the Euro peaked before taking a nose-dive. Instead, I was 2 or 3 levels deep on the sell side so, I guess I lucked out in this particular instance. Am not sure what or if it means anything though? Also, the only other time I experienced any trouble was back in September, between trades #150 and 165.
Attached Image (click to enlarge)
Click to Enlarge

Name: swb_super_trend.gif
Size: 6 KB
 
 
  • Post #7
  • Quote
  • Dec 23, 2010 2:02am Dec 23, 2010 2:02am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Here is another snapshot as of January 28th, where it had dropped down to over 650 points with balance around $630 and a 6th level trade. While it had just successfully completed 3 or 4 level 5 trades, which is why the balance hadn't gone down lower. In fact, it may pull out if it recovers enough before early February, when the Euro took another relatively sharp dive I believe.

Of course at this point it's taking forever to recover what you lost so, it may be a good idea to create a reset point say, between 300 and 500 points deviation and start over. Or, if you happen to have enough money in your account, you could choose to ride it out, as I'm sure it could go several levels lower than that ... although I think I'm pushing it with a $630 balance.
Attached Image (click to enlarge)
Click to Enlarge

Name: swb_super_trend_2.gif
Size: 7 KB
 
 
  • Post #8
  • Quote
  • Dec 23, 2010 2:43am Dec 23, 2010 2:43am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
By the way, mine is not the same Super Trend system as described here. They're not even using the same indicators I believe. While his/hers appears to be manual and mine is automated.

It's funny, because I started my thread about 9 hours before they did so, I don't know whether it's just a coincidence or what? It's just strange ...
 
 
  • Post #9
  • Quote
  • Dec 23, 2010 3:00am Dec 23, 2010 3:00am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
So, here it is an hour and 40 minutes later, on February 4th. Wow, just to go another two-and-a-half weeks! It's now down about 740 points with a $500 balance and sitting at level 7. While it had just cleared two level 8 trades so, it's still hanging in there!

However, I'm afraid the end is near if it doesn't pull out soon.
Attached Image (click to enlarge)
Click to Enlarge

Name: swb_super_trend_3.gif
Size: 6 KB
 
 
  • Post #10
  • Quote
  • Edited 3:53am Dec 23, 2010 3:31am | Edited 3:53am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Okay, it looks like it crashed just a few hours later, on February 4th. However, it got as low as 800 points down with a balance of $415 at level 7, and absolute drawdown of $83.28. Of course it lost more than $500 altogether considering where it had peaked.

Now, am I recommending one should hold on this long? No, I don't think so. More than anything, I think it helps to show the dynamics involved ... which from here, I think looks pretty good.
Attached Image (click to enlarge)
Click to Enlarge

Name: swb_super_trend_4.gif
Size: 7 KB
 
 
  • Post #11
  • Quote
  • Dec 23, 2010 4:19am Dec 23, 2010 4:19am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Okay, I just added deviation_reset to SWB_SuperTrend (in original post). It's set to 0 by default so, in order to enable it, set to any number greater than 0. Like I said before, I think it would be good to start with a number say, between 300 and 500. I haven't tested it yet, although I think it should work. While I'm sure somebody will let me know if it doesn't.
 
 
  • Post #12
  • Quote
  • Dec 23, 2010 4:48am Dec 23, 2010 4:48am
  •  ajentha
  • | Joined Jan 2009 | Status: Member | 291 Posts
I am very much interested your new concept, Today only I saw your post,

Really happy about your new concept

I will testing your new EA, Then clarify ups and down

Have a nice day to U

bye
ajentha
 
 
  • Post #13
  • Quote
  • Dec 23, 2010 4:50am Dec 23, 2010 4:50am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Hey, thanks.
 
 
  • Post #14
  • Quote
  • Dec 23, 2010 6:27am Dec 23, 2010 6:27am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Hey, check this out! All you need to do is set time frame to H1 and set tier2_sig to false. It was really kicking ass at first! I will have to cut it off here at December 17th though, because I really have to go to bed. While here there is only one pending sell open, with a deviation of 0 and account balance of $900, which I think is pretty decent.

Oh, I also tried setting p2_offset to 0 and left tier2_sig set to true, but there appears to be a bug and it's not working properly. Will have to look into that.
Attached Image (click to enlarge)
Click to Enlarge

Name: swb_super_trend_5.gif
Size: 7 KB
 
 
  • Post #15
  • Quote
  • Edited 7:56am Dec 23, 2010 7:45am | Edited 7:56am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Oh well, it finally crapped out after a margin call on January 28th at level 9 with a deviation of 565 points. It was still $165 in the black, however, which I guess is good. The account balance also peaked at $995 (almost doubled).

Okay, I really have to go to bed now. Good bye!
Attached Image (click to enlarge)
Click to Enlarge

Name: swb_super_trend_6.gif
Size: 7 KB
 
 
  • Post #16
  • Quote
  • Dec 23, 2010 9:19am Dec 23, 2010 9:19am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Okay, I had to modify Close_on_Profit EA to keep track of equity target with global variable, as it kept getting reset (and closing trades out early) whenever I reset the EA ... which is no fun. I think it's fixed now, although I haven't tested it fully. Have included the update in original post.
 
 
  • Post #17
  • Quote
  • Dec 23, 2010 10:32am Dec 23, 2010 10:32am
  •  ecTrade
  • | Joined Jul 2009 | Status: Member | 1,163 Posts
Okay, I had to fix deviation_reset on SWB_SuperTrend, as it wasn't fixed correctly. It appears to be working now though ...
 
 
  • Post #18
  • Quote
  • Dec 23, 2010 10:52am Dec 23, 2010 10:52am
  •  ajentha
  • | Joined Jan 2009 | Status: Member | 291 Posts
I have started demo,
my setting

Pair: EURUSD
range: 10
level: 10
P1_offset: 0
P2_offset: 6
P_target: 3
Stealth : false
tier2_sig: true
lot-multiplier: false
increase: 0.02
power lot: true

but price is move above the level of 10, not open another trade
but profit reach 3$ or more immediately close the order, then open new order,

what is the purpose of close on profit EA, I have attached this EA in separate chat, also it have another p_target option is their, so can you explain more details about each option has available in your EA, each option has doing what function, please

bye
ajentha
 
 
  • Post #19
  • Quote
  • Dec 23, 2010 10:58am Dec 23, 2010 10:58am
  •  ajentha
  • | Joined Jan 2009 | Status: Member | 291 Posts
I have attached screen shot, can you look in this, please

thank you

bye

ajentha
Attached File(s)
File Type: doc SWBSuper.doc   253 KB | 1,521 downloads
 
 
  • Post #20
  • Quote
  • Dec 23, 2010 11:02am Dec 23, 2010 11:02am
  •  ajentha
  • | Joined Jan 2009 | Status: Member | 291 Posts
So,

I will download updated indicator, then I will check, ok
 
 
  • Trading Systems
  • /
  • SWB Super Trend
  • Reply to Thread
    • Page 1 23 4
    • Page 1 23 4
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 / ©2023