TMA+CG+Martingale EA

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

TMA+CG+Martingale EA

Postby ericcky » Mon Nov 04, 2019 10:49 am

Hi Kind Sir,

Can you kindly help me develop an EA base on this Indicator (attached) with the additional features that can be enabled or disabled in the "INPUTS" tab of the EA.

Here are the additional feature:
1. Able to Set TP & SL
2. Multiplier (Martingale): x1 to x2
3. Max Trade: 1 to 99
4. Able to choose how many TF to compare (e.g. D1 & H1, meaning if D1 is BUY condition and H1 is also BUY, trigger BUY). Can be 'disabled' if I just want 1 TF only.
5. Able to set lots 0.01 - 1000.
6. Pip Step / Pips distance from previous trade before opening a new trade - can be set in pips. (e.g. if I set 5pips, and the next trade can only open if it has a distance of more than 5 pips from my previous trade that has opened)

Here are the BUY ENTRY conditions:
1. When price touches (wick/tail)/closes below the lower band. Do a BUY trade (base on starting lot) immediately when the first bar closes below/touches the lower band(that means BUY on second bar).
2. If next bar closes below the first bar (base on close price and not the wick), check the 'Pip Step/Distance'
2a. if it is less than the number set then Ignore. OR
2b. if it is more than the number set then BUY (base on starting lot x multiplier)
3. Repeat step 2 until price closes above the lowest closing bar.

SELL condition is oppsite of the BUY.
1. When price touches (wick/tail)/closes above the upper band. Do a SELL trade (base on starting lot) immediately when the first bar closes above/touches the upperband (that means SELL on second bar)
2. If next bar closes above the first bar (entry bar), check the 'Pip Step/Distance'
2a. if it is less than the number set then Ignore. OR
2b. if it is more than the number set then sell (base on starting lot x multiplier)
3. Repeat step 2 until price closes above the highest closing bar.
Attachments
TMA+CG mladen.mq4
(10.37 KiB) Downloaded 1205 times
ericcky
 
Posts: 30
Joined: Tue Sep 17, 2019 9:51 am

Re: TMA+CG+Martingale EA

Postby Apprentice » Mon Nov 04, 2019 1:18 pm

Your request is added to the development list.
Development reference 279.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TMA+CG+Martingale EA

Postby Apprentice » Wed Nov 06, 2019 9:18 am

TMA+CG+Martingale_EA.mq4
(125.38 KiB) Downloaded 1055 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TMA+CG+Martingale EA

Postby ericcky » Wed Nov 06, 2019 10:44 am

Thank you Mr. Apprentice!!!

I will put it up to test! :)
ericcky
 
Posts: 30
Joined: Tue Sep 17, 2019 9:51 am

Re: TMA+CG+Martingale EA

Postby ericcky » Wed Nov 06, 2019 11:31 am

Hi,

I'm getting this alarm and no trades are opened:

2019.11.06 22:30:00.414 TMA+CG+Martingale_EA GBPCHF,M5: invalid pointer access in 'TMA+CG+Martingale_EA.mq4' (1485,7)
2019.11.06 22:26:00.407 TMA+CG+Martingale_EA CADJPY,M5: invalid pointer access in 'TMA+CG+Martingale_EA.mq4' (1485,7)
2019.11.06 22:25:02.661 TMA+CG+Martingale_EA EURGBP,M5: invalid pointer access in 'TMA+CG+Martingale_EA.mq4' (1485,7)
2019.11.06 22:25:01.803 TMA+CG+Martingale_EA CADCHF,M5: invalid pointer access in 'TMA+CG+Martingale_EA.mq4' (1485,7)

So basically, I want the BUY (green) / SELL (pink) to be done when the arrow appears (the indicator was included previously). You can see the picture attached. Any time a second green or pink arrow appears, do a martingale and enter another BUY / SELL base on the arrow color.
Attachments
TMA.png
Indicator with Arrows
ericcky
 
Posts: 30
Joined: Tue Sep 17, 2019 9:51 am

Re: TMA+CG+Martingale EA

Postby Apprentice » Thu Nov 07, 2019 8:47 am

Your request is added to the development list.
Development reference 291.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TMA+CG+Martingale EA

Postby Apprentice » Fri Nov 08, 2019 4:59 am

TMA+CG+Martingale_EA.mq4
(126.41 KiB) Downloaded 718 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TMA+CG+Martingale EA

Postby ericcky » Fri Nov 08, 2019 8:07 am

Thank you for the quick response.

I've tried it out, and found that it kept opening trades. Please see the attached screenshot. That is within 15s when i turned on the AutoTrading function.

Please help me look into it.

Like previously stated for BUY:
1. If price A closes below or on the lower band, send an immediate BUY (base on the lots stated) when price B opens.
2. If price B closes still below the lower band and is lower than the Price B open price, Send another immediate BUY (base on the lots stated multiply with the martingale multiplier variable (1.2/1.3/1.4...) when Price C opens.
3. Repeat step 2 if price continues to CLOSE lower.
4. STOP, when price goes back above the lower band.

SELL Situation:
1. If price A closes above or on the upper band, send an immediate SELL(base on the lots stated) when price B opens.
2. If price B closes still above the upper band and is higher than the Price B open price, Send another immediate SELL (base on the lots stated multiply with the martingale multiplier variable (1.2/1.3/1.4...) when Price C opens.
3. Repeat step 2 if price continues to CLOSE higher.
4. STOP, when price goes back below the upper band.

Please also add in a basket trading feature for individual pair. Example: if the EA enters 5 trades of EURGBP, I only need 6 pips, so if all 5 trades goes the right way:
Trade 1: -100
Trade2: -50
Trade3: +6
Trade 4: +50
Trade 5:+100
Total: 6 pips.
EA Close all 5 EURGBP trades
Attachments
TMA2.jpg
ericcky
 
Posts: 30
Joined: Tue Sep 17, 2019 9:51 am

Re: TMA+CG+Martingale EA

Postby Apprentice » Mon Nov 11, 2019 6:22 am

Your request is added to the development list.
Development reference 302.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TMA+CG+Martingale EA

Postby Apprentice » Tue Nov 12, 2019 5:38 am

TMA+CG+Martingale_EA.mq4
(126.52 KiB) Downloaded 937 times

Net take profit added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 15 guests