Shartingale v1.2

Hello Traders.

This is an attempt of mine at a martingale EA. I hope you will give it a try and leave me some feedback.Shartingale v1.2.zip (4.35 KB)

1 Like

There’s a SET file within the ZIP, but would you mind kindly giving me a brief rundown of the operating parameters of your EA right here on the thread?

The name made me think of a movie line:

“Shart; it’s what happens when you trust a fart.”
"Gas followed by mass."
Urbandictionary has this habit of opening my eyes to some amazing methods of description.

Sure Ill give you a rundown of the less obvious ones… (from the top)…

[B]GridSpace: [/B] Determines the size of the grids that will be used .
[B]StartLot: [/B] The size of the starting lot.
[B]TradesPerLevel:[/B] How many trades the EA can make at each grid level, once it reaches the max that you define it will no longer open new trades till a new sequence has started.
[B]SL/TP:[/B] The EA manually closes trades when they reach the right grid levels. [B]SL/TP[/B] is set deliberately high so that it can be used more as a safety net in case there is a network or system failure. The set file I included had TP set to 5 but that was only cause I found the results interesting because it still produced somewhat positive results despite it not being the intended use.
[B]LotIncrement:[/B] This is a dollar value of your balance. When the EA makes the set value it will add the value of [B]StartLotIncr[/B] to the value of [B]StartLot[/B] everytime it makes 1000$.
[B]MultIncrement:[/B] Does the same thing as the one above. It is very risky so set [B]StartMultIncr [/B]to “0.0” to disable it.
[B]CloseProfitFriday: [/B] Performs a price check on friday to try and end a sequence prematurely if there is some profit.
[B]ClosProfitEOD:[/B] Same as above but on a daily basis.

I have my reasons for naming it what I did and i know very well what a “shart” is :smiley:

Another question, because I’m old and slow… where does the martingale come into play on this?

Its a grid style EA (but it does not actually hedge like a traditional grid EA). It places a trade in one direction but if the price moves against you it will open a trade at the next grid level and place it in the opposite direction.

If it continues going against you it will double (or use the multiplier) for the next trade that is in the same direction. If it retraces to the start point it will make a trade in the opposite direction of the last trade that was placed on that grid level for double (or the value of the multiplier).

All longs and all shorts have a separate count so the value of the longs do not affect the shorts and viceversa.

That is it in a nutshell. I added you on my skype if you want a more detailed explanation.

Is anyone using this EA? What is your result like, please share your experience.

Someone should post the result of the EA :smiley:

Yes please post results. I have done backtest and it looks impresive.:33:


Zip contains the statement, the set file used and the ex4 for version 1.6. I will release the mq4 source as soon as possible.

Test was From Jan 1st to Sept 30th of this year.

shartingale 1.6.zip (76.4 KB)

UPDATE

The Zip now contains the mq4.

shartingale 1.6.mq4.zip (59.2 KB)

Has anyone had succesful forward testing on a demo or live account ?

I think its just me so far but my setup is a little different and Im running semi manual with a “close all orders” and “delete all pending orders” scripts.

I have 9 EAs on 9 EURJPY charts each set to m15.

Each EA uses the same set file that I included with 1.6 but they each have a different magic number, “gridspace” and “startlot” settings…

Just start at gridspace 50 and startlot 0.01 and add 25 to each gridspace till you get 250 and 0.01 to each startlot till you get 0.09…

  1. gridspace 50, startlot 0.01
  2. gridspace 75, startlot 0.02
  3. gridspace 100, startlot 0.03
    …
    …
    …
    …
    …
  4. gridspace 250, startlot 0.09

I loosely monitor it throughout the day and when I see that its made about 1%-5% I close all orders, delete all pending orders and then restart the EA. Its been a good week so far but I want to see how things pan out on a slow or crappy trading week/month.

This is all I got so far…


forward test 1.zip (10.7 KB)

Me thinks your on to a great EA Plork!!! Im testing it now, will let you know how it behaves in my house :slight_smile:

How does the EA perform if you leave it running fully automated compared to semi-automated, can it be trusted to be left to run on its own?

:18: Thanks! I hope you get good results, I lurk this forum often to answer questions about it. Please try the set file that I include with it since the defaults are not optimal.

I have one test where I dont interfere but in that one all 9 instances are using the same lot size and its been running all of last week and this week with no issues. If you want to take the “set it and forget it” route then I recommend running less than 3 with more modest lot sizes. Otherwise I like to think of it as a manual system that only martingales if you are not around to take the small profits before the price moves against you.

:53:took a live account from $100 depot to $330 using the above 9 chart setup:53:. Plork, so on your 9 chart setup you just let run on auto or manually intervene from time to time?? I find myself intervening sometimes.

FXBoogie

how risky is this system and how long did you manually trade it before making it into an EA ?

That sounds about right, I take profits whenever I see them. What pair are you trading on?

I also have another test which is the EA trading 4 different pairs with grid size of 50 and 0.01 lots to start and its doing well without the need to intervene.

Can you post a statement or chart? BTW my plan is to double up the lot sizes every time I double the account.

Its very risky and I tried running it manually but it just got toooo confusing.