Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

SWB Stealth (Martinale)

author EAcpu | 2 reads | 0 comments |
Hi, this is basically starting from SWB Martingale in this thread here. Since most of the strategies have already been discussed in this thread, I thought I would use this thread to further develop and improve the EA. And, since I'm the one doing most of the modifications in another thread, and I'd like to continue doing that (time permitting of course), I thought it would be good to move all development stuff here. This way, if there are any new updates for EA, they can be included in the original post, which you can do if you start this thread. So now everything is more centralized and people don't have to look around for the latest version of EA.

Now I'm not saying you can't discuss any strategies further here, on the contrary, just that you might want to peruse the other thread first. OK?

Since the "stealth" feature generated most of the interest in another thread, I decided to remove most of the irrelevant code and will now call it SWB stealth . So far I have included modifications in versions 4.1.0.3 and 4.1.0.6 (setting tp_average to true in the new EA) and am thinking of adding some other modifications, in particular hedging options and some global closing and pause controls. Basically I'm starting from scratch but intending to make a concentrated and consolidated effort from there.

I've also added some new features and fixed an issue where trades weren't closing as expected, which I think was mostly due to having multiple charts open at the same time. I now have it set up to close orders based on specific information for each chart, rather than handling it based on overall account equity.

I also added a Power Lot function, which determines the ratio between account balance and lot size, and increases (or decreases) the lot size and profit target as the account balance grows. It's kind of like compound interest on a savings account, doubling the account size faster. To enable it, set Power Lots to True ... and, to ensure it works properly, set Open Charts to the number chart/pair you open. Set it to any number greater than "1" on any chart. To disable it and set everything back to "1" (default), set OC_RESET to true again, on any chart. I haven't actually checked if the (global) settings and reset functionality works, but it should.

I also added another function, trade_1_factor , which allows you to adjust the first trade tp_in_money target based on a percentage. Typically, you enter a value less than 1.0 because you want it to be smaller (or, maybe not?). For example, if you set it to 0.25 and have tp_in_money set to $5.00, it will set the first trade to $1.25. Does this make any sense?

I've also added another function that allows you to scale the tp_in_money target up and down, depending on the trade level, however, it's not fully incorporated yet and I haven't added the scaling part yet. Maybe within the next day or two?

Oh well, I guess that's it for now. If you're interested in looking at the code, the parts I added and/or modified are followed by two dashes and two asterisks, or... // **

have fun!

ETA: EA not working after adding modifications before release...

appendix
[MQ4] swb Stealth_v1.01.mq4 11 KB | 1,630 downloads


If anyone is interested, there is a new multi-time frame RSI version (below) that includes the indicator. Please click on the link for details.
swb_stealth_rsi.gifswb_stealth_R3.gif
swb_stealth_rsi.gifswb_stealth_R3.gif
swb_stealth_rsi.gifswb_stealth_R3.gif
swb_stealth_rsi.gifswb_stealth_R3.gif
swb_stealth_rsi.gifswb_stealth_R3.gif
swb_stealth_rsi.gifswb_stealth_R3.gif

Attachment to original post (3)

📦 Summary of post attachments (23)

Below are all the files shared in the reply (23).

Verification code Refresh