Hi All,

would like to share to all of you guys about the "never loss" system (practically), which is PM'ed to me a few days ago. A bro asked me to build EA which is based on martingale series, with the series of BUY and SELL at the upper price and lower price divided by gap. So it will form like a tunnel.

Actually I was building the same martingale series long time before, but it was on different variant and wasn't successful. Then this idea popped out from KanGKunG.

The elements:

- Gaps (in points, not pips)

- Support / Resistance

- Lot as martingale series (0.01, 0.02, 0.04, 0.08....)

- TP as 2x of the gaps (as requested by KanGKunG) or configured fixed value.

- SL as min SL value + Gaps + spread (as requested by KanGKunG), or configured fixed value, or no SL at all.

- Without TP and SL is possible, by take profit as total profit.

In short, it will do as following (in 1 cycle):

- Firstly, it will do BUY 0.01 lot at the current price, then SELL STOP 0.02 lots at the current BUY price - Gaps. This will form a

http://i62.tinypic.com/29ys95c.jpg

- If let us say the price goes up and reaches TP (of the first order), then it will close the cycle and start a new one.

- If not (of course it will go down), once reaches the SELL STOP 0.02, then this time will do BUY STOP 0.04.

- If the price goes down and reaches SL, then the cycle closed and start a new one.

- If the price goes back up, and reaches the first order price, then it will do SELL STOP 0.08.

- If the price ranging much, then cycle most likely will never close and series of BUY STOP or SELL STOP with more and more lots will be placed.

During my observation,

with settings as:

- EUR/USD.

- martingale factor 1, 2, 4.

- Start AnyTime from 12:00:00 - 00:00:00 Singapore / Malaysia time (no Support and Resistance).

- Start with 0.01.

- Start with $5000.

- Take profit at money-based (Total Profit), at $0.10 for each cycle.

- Always BUY first.

I found that:

- The most martingale index used is 9. You'll end up with lot size 2.56, that would be 5.11 lots in total.

- The average martingale will close around the index of 2 (0.3 lots total) - 4 (0.15 lots total).

- Daily profit around $10 - $20.

- Lowest Margin Available ..... I'm still observing this.

- During market sleep time, the most martingale index can be higher, because of the price is ranging.

- During opening of US or Europe time, the least martingale index can be 1. Which means once open, then < 1 min the cycle closed and restarted again.

Below are the configuration screenshot:

Too much configuration, huh?

Yes, I did this just to cater many scenarios.

I will explain it as following (note that RED fonts means not yet implemented!)

There are 4 settings, Start Anytime (within time), Start from Support and Resistance, Start from Daily High and Low, Start at X points from current price.

Line color for Take Profit (if Target is Fixed Points).

The text color.

The color of the upper gap.

The color of the lower gap.

The text size

The magic number to identify this EA. Basically this will be used if you want to run more than 2 different EAs on your account.

as described

if you want to use slippage when closing orders.

the slippage value.

The type of Starting lots. Either Dynamic or Fixed.

If you expect 0.01 as starting, put 0.000002 as the value for $5000 balance. That means, Dynamic Lots = Expected Lots / Balance. This only applies for Start Lots = Dynamic.

Fixed starting lots, that's it. This only applies for Start Lots = Fixed.

Martingale factor of 1, 2, 3 with Martingale Factor Multiplier = 2, and Max Martingale Factor = 25, will produce: 1, 2, 3, 6, 12, 24, 48, ..... until 25 sequences.

Martingale factor of 1, 2, 4 (common martingale) with Martingale Factor Multiplier = 2, and Max Martingale Factor = 25, will produce: 1, 2, 4, 8, 16, ..... until 25 sequences.

The Upper and Lower price gap in

Max cycle per run. Normally 0 is unlimited.

The way I close the cycle, by target.

Dynamic money (Balance x this value) -> means the target in $ (Total Profit

Fixed Money -> target will be only fixed amount of money (Total Profit

Fixed Points -> calculated by points of the first order in 1 cycle.

The target type for

Fixed Points for both TP and SL -> once reaches Points Target (TP), or Points Stop Loss (SL), cycle will close.

Note: Fixed point will

Other options are clearly described.

http://i59.tinypic.com/2rp5zqv.jpg

A cycle will always start from "BUY first", or "SELL first".

Next cycle, will start from, "Follows Start From settings",

or "Follows from last profit direction" -> if your last cycle profit end up in SELL, then it will start SELL.

You want Local Time (your PC, VPS, anything you run this), or Server Time (each broker is having different Server Time with another broker).

Start time and stop time for Start Anytime.

These 2 flags are only for my reference in case any error happens.

......the rest are just colors and some hanky wanky settings.

You're curious, you're interested, download and try it first on your demo account. Then if you are 100% sure with your settings, you can start doing it on your live account (if you wish).

Read this: http://www.investopedia.com/articles...martingale.asp

This EA is

I have attached the .mq4, .ex4, and EA Configuration (.set). Note:

There are 2,

MartingaleKanGKunG.set -> requested by KanGKunG, based on Support and Resistance.

RadityoMART.set -> my setting, start anytime, follow last.

When starting this EA, on the right bottom side there'll be "Load" and "Save" button. Click "Load" and select this file.

http://i62.tinypic.com/23wpldg.jpg

Currently, below are the testing site (if you decided to test, let me know your Trade Explorer URL, I will add it here):

Martingale AnyTime - http://www.forexfactory.com/radityo.ardi/24

Martingale Daily High and Low - http://www.forexfactory.com/radityo.ardi/80

Martingale SNR - http://www.forexfactory.com/radityo.ardi/81

Martingale AnyTime - http://www.forexfactory.com/radityo.ardi/38 (this is for martingale factor 1, 2, 2, 2).

As mentioned by aahmad29, the basic idea of this EA is described as below:

There's an interesting facts I've wrote on this link:

http://www.forexfactory.com/showthre...37#post8067337

However, bugs may still be there, so please test and report if any issues arise.

NOTE: This EA is licensed under Tunnel Martingale License (terms are derived from MsPL). Which means free to use with open source, but there's a limitations and conditions. Please take time to read the license at: https://sites.google.com/site/tunnelmartingalecla/

would like to share to all of you guys about the "never loss" system (practically), which is PM'ed to me a few days ago. A bro asked me to build EA which is based on martingale series, with the series of BUY and SELL at the upper price and lower price divided by gap. So it will form like a tunnel.

Actually I was building the same martingale series long time before, but it was on different variant and wasn't successful. Then this idea popped out from KanGKunG.

The elements:

- Gaps (in points, not pips)

- Support / Resistance

- Lot as martingale series (0.01, 0.02, 0.04, 0.08....)

- TP as 2x of the gaps (as requested by KanGKunG) or configured fixed value.

- SL as min SL value + Gaps + spread (as requested by KanGKunG), or configured fixed value, or no SL at all.

- Without TP and SL is possible, by take profit as total profit.

In short, it will do as following (in 1 cycle):

- Firstly, it will do BUY 0.01 lot at the current price, then SELL STOP 0.02 lots at the current BUY price - Gaps. This will form a

**TUNNEL**, with upper price and lower price.http://i62.tinypic.com/29ys95c.jpg

- If let us say the price goes up and reaches TP (of the first order), then it will close the cycle and start a new one.

- If not (of course it will go down), once reaches the SELL STOP 0.02, then this time will do BUY STOP 0.04.

- If the price goes down and reaches SL, then the cycle closed and start a new one.

- If the price goes back up, and reaches the first order price, then it will do SELL STOP 0.08.

- If the price ranging much, then cycle most likely will never close and series of BUY STOP or SELL STOP with more and more lots will be placed.

During my observation,

with settings as:

- EUR/USD.

- martingale factor 1, 2, 4.

- Start AnyTime from 12:00:00 - 00:00:00 Singapore / Malaysia time (no Support and Resistance).

- Start with 0.01.

- Start with $5000.

- Take profit at money-based (Total Profit), at $0.10 for each cycle.

- Always BUY first.

I found that:

- The most martingale index used is 9. You'll end up with lot size 2.56, that would be 5.11 lots in total.

- The average martingale will close around the index of 2 (0.3 lots total) - 4 (0.15 lots total).

- Daily profit around $10 - $20.

- Lowest Margin Available ..... I'm still observing this.

- During market sleep time, the most martingale index can be higher, because of the price is ranging.

- During opening of US or Europe time, the least martingale index can be 1. Which means once open, then < 1 min the cycle closed and restarted again.

Below are the configuration screenshot:

Too much configuration, huh?

Yes, I did this just to cater many scenarios.

I will explain it as following (note that RED fonts means not yet implemented!)

**Start Type**There are 4 settings, Start Anytime (within time), Start from Support and Resistance, Start from Daily High and Low, Start at X points from current price.

__Start Anytime__will start literally the moment you click OK, but if it is not within time (Start Time and Stop Time), then EA will wait until the time is reached inside.__Start from Support and Resistance__, will start from Support or Resistance point. If it is reaching Support, it will do BUY first. If it is reaching Resistance, it will do SELL first. Support and Resistance (and Pivot) calculated based on http://www.investopedia.com/ask/answ...vot-points.asp.__Start from Daily High and Low__, basically is same as Start from Support and Resistance. But will start from Daily High and Low for today.__Start at X points from current price__.**Take Profit line color**Line color for Take Profit (if Target is Fixed Points).

**Text color**The text color.

**Upper Gap Price color**The color of the upper gap.

**Lower Gap Price color**The color of the lower gap.

**Text size**The text size

**Magic Number**The magic number to identify this EA. Basically this will be used if you want to run more than 2 different EAs on your account.

**Line Style, Line Width, Line Height**as described

**Use Slippage**if you want to use slippage when closing orders.

**Slippage**the slippage value.

**Type of Start Lots**The type of Starting lots. Either Dynamic or Fixed.

**Dynamic Lots**If you expect 0.01 as starting, put 0.000002 as the value for $5000 balance. That means, Dynamic Lots = Expected Lots / Balance. This only applies for Start Lots = Dynamic.

**Fixed Lots**Fixed starting lots, that's it. This only applies for Start Lots = Fixed.

**Martingale Factor, Martingale Factor Multiplier, Max Martingale Factor**Martingale factor of 1, 2, 3 with Martingale Factor Multiplier = 2, and Max Martingale Factor = 25, will produce: 1, 2, 3, 6, 12, 24, 48, ..... until 25 sequences.

Martingale factor of 1, 2, 4 (common martingale) with Martingale Factor Multiplier = 2, and Max Martingale Factor = 25, will produce: 1, 2, 4, 8, 16, ..... until 25 sequences.

**Gaps**The Upper and Lower price gap in

__points__. Points is the lowest unit. In most broker with 5 digits, 10 points = 1 pip. For 4 digits broker, 1 point = 1 pip. Please be careful with your broker. My calculation is calculated with how many digits I have.**Max Cycle**Max cycle per run. Normally 0 is unlimited.

**Target Type, Profit Target, Profit Multiplier**The way I close the cycle, by target.

Dynamic money (Balance x this value) -> means the target in $ (Total Profit

__all orders in 1 cycle__) will be calculated against balance (NOT equity). Linked to**Profit Multiplier**for the value. Profit Multiplier = Your expected target (in $) / your balance. Once the total profit reaches your expected target, then cycle will be closed. This settings normally be used if you want compounding targets.Fixed Money -> target will be only fixed amount of money (Total Profit

__all orders in 1 cycle__). Linked to**Profit Target**for the value. Once the total profit reaches this, then cycle will be closed.Fixed Points -> calculated by points of the first order in 1 cycle.

**Points Target Type**The target type for

**Fixed Points**. Will be calculated based on the first order.Fixed Points for both TP and SL -> once reaches Points Target (TP), or Points Stop Loss (SL), cycle will close.

Note: Fixed point will

__never__put TP and SL explicitly to the first order.__Calculation is done inside EA itself__.Other options are clearly described.

http://i59.tinypic.com/2rp5zqv.jpg

**Start From**A cycle will always start from "BUY first", or "SELL first".

**Next Cycle, start by**Next cycle, will start from, "Follows Start From settings",

or "Follows from last profit direction" -> if your last cycle profit end up in SELL, then it will start SELL.

**Date Time base**You want Local Time (your PC, VPS, anything you run this), or Server Time (each broker is having different Server Time with another broker).

**Start Time, Stop Time**Start time and stop time for Start Anytime.

**Debugging Mode, Development Mode**These 2 flags are only for my reference in case any error happens.

......the rest are just colors and some hanky wanky settings.

**WARNING**: To the one who knows what is martingale, yes, it is almost 100% profitable (practically) I don't deny that, but that depends on how much balance you have, and how big is the lot your broker supports. I don't debate on profitability of this method.You're curious, you're interested, download and try it first on your demo account. Then if you are 100% sure with your settings, you can start doing it on your live account (if you wish).

Read this: http://www.investopedia.com/articles...martingale.asp

**Your profit, depends on your settings and your money management method...**This EA is

**HIGHLY CONFIGURABLE**...I have attached the .mq4, .ex4, and EA Configuration (.set). Note:

__ex4 and mq4 is always the latest published EA__.There are 2,

MartingaleKanGKunG.set -> requested by KanGKunG, based on Support and Resistance.

RadityoMART.set -> my setting, start anytime, follow last.

When starting this EA, on the right bottom side there'll be "Load" and "Save" button. Click "Load" and select this file.

http://i62.tinypic.com/23wpldg.jpg

Currently, below are the testing site (if you decided to test, let me know your Trade Explorer URL, I will add it here):

Martingale AnyTime - http://www.forexfactory.com/radityo.ardi/24

Martingale Daily High and Low - http://www.forexfactory.com/radityo.ardi/80

Martingale SNR - http://www.forexfactory.com/radityo.ardi/81

Martingale AnyTime - http://www.forexfactory.com/radityo.ardi/38 (this is for martingale factor 1, 2, 2, 2).

As mentioned by aahmad29, the basic idea of this EA is described as below:

There's an interesting facts I've wrote on this link:

http://www.forexfactory.com/showthre...37#post8067337

However, bugs may still be there, so please test and report if any issues arise.

NOTE: This EA is licensed under Tunnel Martingale License (terms are derived from MsPL). Which means free to use with open source, but there's a limitations and conditions. Please take time to read the license at: https://sites.google.com/site/tunnelmartingalecla/

Attached Files

EAConfiguration.zip 1 KB | 3,695 downloads

Martingale SNR.set.txt 1 KB | 2,038 downloads | Uploaded Feb 12, 2015 11:38pm

Martingale Anytime AUDUSD.set.txt < 1 KB | 1,852 download | Uploaded Feb 13, 2015 12:22am

Martingale Anytime EURUSD.set.txt < 1 KB | 2,763 downloads | Uploaded Feb 13, 2015 12:22am

TunnelMartingale.mq4 50 KB | 4,100 downloads | Uploaded Mar 28, 2015 2:05am

TunnelMartingale.ex4 86 KB | 2,526 downloads | Uploaded Apr 20, 2015 10:20am

I'm a lazy trader... please don't follow me for no reason...