Jump to content


Next High Impact Market News Event:
Retrieving events...


Toggle shoutbox The Traders Chat Open the Shoutbox in a popup

@  Cookiebrawler : (17 September 2019 - 04:27 PM) MegaMoney 90%
@  aasir : (16 September 2019 - 10:25 PM) Binary Triumph
@  traderpusa : (10 September 2019 - 01:35 AM) that was my bmw lol. E60.
@  Monoaldo : (10 September 2019 - 01:34 AM) E60
@  manfloy : (09 September 2019 - 11:12 AM) well said.
@  traderpusa : (09 September 2019 - 11:07 AM) at least for the moment, china will hold back because of economic conditions. My guess is they want to involve PLA but simply are not in a position to do so for the moment.
@  traderpusa : (09 September 2019 - 11:05 AM) well, regardless of any agreement between uk and europe, there is still nato is trump doesn't blow it up lol
@  manfloy : (09 September 2019 - 11:04 AM) I am really worried about HK if the PLA phase in this can interrupt the entire chain between FX liquidity and current import / export countries. I understand that we have a bunch of corporations exposed to China, now believe that 99 percent of them are stable in HK because they have a high law. If the PLA gets in, they'll substitute this economic centre with a singapore.
@  manfloy : (09 September 2019 - 11:04 AM) Yeah, they're really a very significant player. I am informed that there is also a lot more than economic, for instance there are a number of military agreements agreed between the GB and the EU, which is serious.
@  traderpusa : (09 September 2019 - 11:02 AM) the UK being part of the EU GDP figures, but not part of the Euro only makes things a bit complicated on how to interpret numbers for trading purposes.
@  traderpusa : (09 September 2019 - 11:00 AM) of course one needs to focus on US being the biggest economy but UK is still up there. https://gyazo.com/42...39df1c7c58d9221
@  manfloy : (09 September 2019 - 10:56 AM) I'm focused on the US, so I don't spend so much on the GB, I'm supposed to study it well since 2015, but something has altered worldwide, literally, it's an enormous step in the world's liquidity and global system, modifications are nice, but they're really colorful.
@  manfloy : (09 September 2019 - 10:56 AM) thanks good reading
@  traderpusa : (09 September 2019 - 10:53 AM) As to China, read this over the weekend : https://apnews.com/6...f75f013bf54e6a9
@  manfloy : (09 September 2019 - 10:51 AM) Spectacular indeed lol, this is huge to be honest
@  traderpusa : (09 September 2019 - 10:47 AM) it's gonna be interesting. MP's are leaving the sinking ship and now also Bercow has resigned. Gonna miss this guy lol
@  traderpusa : (09 September 2019 - 10:46 AM) https://gyazo.com/58...16d785753060ff0
@  manfloy : (09 September 2019 - 10:44 AM) I am very concerned about GBP, I have decided to leave until the government is making some definite deals on the Brexit. I'm not a supporter of uncertainty.
@  manfloy : (09 September 2019 - 10:42 AM) US It is expected to rebound until new years, because the season is coming and everyone is ready for new year revenues.
@  manfloy : (09 September 2019 - 10:41 AM) China is underwater now, and I can't even define how starving they are for dollars. Their imports fell significantly last quarter. They're trying to stimulate again, but I don't think it should work out, more than: we're back to the 2014/2015 situation. The issue with the Chinese central bank cutting off the supply of cash, the issue that they are not diversified around the world.

Photo

DIY iCustom Martingale EA

EA code expert advisor martingale binary option iCustom MT4

  • Please log in to reply
334 replies to this topic

#1 jimtang

jimtang

    Member

  • Members
  • PipPipPip
  • 526 posts

Posted 14 February 2016 - 11:00 AM

*
POPULAR

Hey Guys

 

You may have a favourite MT4 indicator that you use.

It maybe a source code ( mq4 file) or it maybe an .ex4 file.

 

You maybe able to code your indicator into an expert advisor using my iCustom Template.

 

I will use BinaryCommodo.ex4 as an iCustom example :

 

iCustom(NULL, 0, "BinaryComodo", first number ,second number)

 

Make sure indi name is surrounded by " and ".

The first number after the indicator name refers to buffer number of indicator which you can find using mt4 data window. For example in the case of BinaryCommodo, the up arrow is Buffer 0. 

The second number after the indicator name refers to trade entry. In the case of BinaryCommodo, we enter trade as soon as arrow

appears so this number is 0. If you enter trade at start of candle following arrow then use 1.

 

So our expression for BUY is

 

iCustom(NULL, 0, "BinaryComodo",0,0)

 

In the case of a SELL data window reveals sell arrow is Buffer 1 , so expression becomes

 

(iCustom(NULL, 0, "BinaryComodo", 1, 0)

 

Attached File  Arrow Buffers.png   50.2KB   154 downloads

 

All you need to do is decide what the two numbers are after the indicator name in the case of buy 

and in the case of sell.

Simply change indicator name and the numbers in the template.

Hopefully the screenshots help to make it clearer.

Each line of code contains indicator name and the two numbers TWICE, so remember to amend both.

Attached File  Amend EA Code Here.png   349.2KB   132 downloads

 

Attached File  iCustom Marty EA Template.mq4   11.15KB   963 downloads

 


  • singu, skyler, green777 and 11 others like this

#2 jimtang

jimtang

    Member

  • Members
  • PipPipPip
  • 526 posts

Posted 14 February 2016 - 11:08 AM

A little bit about EA Settings

 

NextOpenTradeAfterBars :  Set to 5 can help avoid waterfalls. 

Set to 1 means if conditons are met then candle can be traded.

 

MM Martingale Start : This is your lot/bet size. Some brokers use lot some use amount

 

MM Martingale Loss Factor : 2 means double bet size.

You can use fractions too.

 

MM Martingale Restart Losses : VERY IMPORTANT : SET to FALSE to use Martingale.

This means in case of loss, EA will trade next martingale step and not go back to start bet 

size.

VERY IMPORTANT : SET to TRUE to DISABLE Martingale ie using fixed bet sizes.

 

You can pick which days you want to trade. Pro trades especially hate fridays and

some avoid monday mornings too.

 

Please demo first 

 

Attached File  iCustomMarty Ea Settings.png   48.37KB   53 downloads


  • singu, emo, lokopata and 4 others like this

#3 jimtang

jimtang

    Member

  • Members
  • PipPipPip
  • 526 posts

Posted 14 February 2016 - 05:06 PM

Hey Guys

 

iCustom() is a MQ4L function that allows EA to access your Custom Indicators buffers ( arrows ) without having to re-write the indicator code.

EA needs the compiled ( .exe file ) to be in the Indicators folder of MT4.

 

 

 

 


  • singu, emo, lokopata and 1 other like this

#4 lokopata

lokopata

    Member

  • Members
  • PipPip
  • 44 posts

Posted 14 February 2016 - 06:01 PM

 
No words to thank you for your generosity !
 
this is a step forward in the evolution of EA ....
especially for those who is starting , like me!
I can say that from TODAY created my first EA.
 
this is wonderful , thank you for real.

  • singu and jimtang like this

#5 singu

singu

    Member

  • Members
  • PipPip
  • 418 posts

Posted 14 February 2016 - 06:48 PM

Thank you Jimtang. This is awesome. :)


  • jimtang likes this

#6 randy1953

randy1953

    Member

  • Banned
  • PipPipPip
  • 1,263 posts
  • LocationWashingston, USA

Posted 14 February 2016 - 09:21 PM

What a great idea man you are so cool..Mr. Cool man thanks!!

:)


  • jimtang likes this

#7 downtrend

downtrend

    Member

  • Members
  • PipPip
  • 16 posts

Posted 14 February 2016 - 11:03 PM

Jim doesn't replies to the private messages some times , apart from that he is a great man :D just joking :D


  • jimtang likes this

#8 jimtang

jimtang

    Member

  • Members
  • PipPipPip
  • 526 posts

Posted 15 February 2016 - 03:24 AM

Thanks for your comments guys.

David has a strategy tester template where you put in your iCustom() indicator.
This gave me an idea.
What if I could do the same with an EA template ?
So guys I feel I must thank David for an excellent idea!!

The reason I bring this up is because my BO EA template will not backtest in mt4 strategy tester.
To backtest use David's tester.
So guys you now have excellent trading tools to help fight those brokers!!
  • andreatrading likes this

#9 paulhinhobsb

paulhinhobsb

    Member

  • Members
  • PipPip
  • 40 posts
  • LocationBrasil

Posted 15 February 2016 - 07:18 AM

He has not yet opened any order, what should I do?



#10 ktop1800

ktop1800

    Member

  • Members
  • PipPip
  • 93 posts

Posted 15 February 2016 - 08:08 AM

Where should i out this iCustom Marty EA Template.mq4???  in the indicator folder or template???



#11 ktop1800

ktop1800

    Member

  • Members
  • PipPip
  • 93 posts

Posted 15 February 2016 - 08:10 AM

And how can ones make a martingale to follow after a loss of  each candle ?



#12 jimtang

jimtang

    Member

  • Members
  • PipPipPip
  • 526 posts

Posted 15 February 2016 - 08:29 AM

The template is essentially iCustom BinaryCommodo EA, since I used this indicator as an example.

He has not yet opened any order, what should I do?

It does work if you want to trade with BinaryCommodo !

i checked it quickly again on a M1 timeframe.

Recommended use is m5 chart and 15 min expiry.

 

Attached File  USDJPYboM1.png   156.34KB   94 downloads

 

Make sure BinaryCommodo.exe is in indicator folder of mt4.

 

 

Attached File  BinaryComodo.ex4   8.74KB   301 downloads

 



#13 jimtang

jimtang

    Member

  • Members
  • PipPipPip
  • 526 posts

Posted 15 February 2016 - 08:31 AM

Where should i out this iCustom Marty EA Template.mq4???  in the indicator folder or template???

I see name is confusing.

It is an EA so put in Expert Advisers.



#14 jimtang

jimtang

    Member

  • Members
  • PipPipPip
  • 526 posts

Posted 15 February 2016 - 08:32 AM

And how can ones make a martingale to follow after a loss of  each candle ?

NextOpenTradeAfterbars set to 1.



#15 ktop1800

ktop1800

    Member

  • Members
  • PipPip
  • 93 posts

Posted 15 February 2016 - 11:28 AM

Sorry to bother MR Jimtang......... could you please explain how i can make an EA with xb4d  ( attached are the indicator with  using your    iCustom Marty EA Template.mq4 

Attached Files

  • Attached File  Omos.ex4   46.96KB   138 downloads


#16 jimtang

jimtang

    Member

  • Members
  • PipPipPip
  • 526 posts

Posted 15 February 2016 - 11:54 AM

Sorry to bother MR Jimtang......... could you please explain how i can make an EA with xb4d  ( attached are the indicator with  using your    iCustom Marty EA Template.mq4 

cannot open file 'C:\Users\.......................................................................................\MQL4\indicators\xb4d.ex4' [2]

 

I apply your Omos.ex4 indicator to chart.

Error shows up in terminal.

Think xb4d.ex4 file is needed too.



#17 ktop1800

ktop1800

    Member

  • Members
  • PipPip
  • 93 posts

Posted 15 February 2016 - 12:46 PM

jimtang...... attached is the xb4d mq4 file .......use period 5

Attached Files

  • Attached File  xb4d.mq4   3.11KB   148 downloads
  • Attached File  xb4d.ex4   4.23KB   128 downloads


#18 ktop1800

ktop1800

    Member

  • Members
  • PipPip
  • 93 posts

Posted 15 February 2016 - 01:11 PM

trade as to be taken after the super signal channel  arrow appear then wait for xb4d to change color to  lime for  call and red for put at the  beginning of the second bar

Attached Files



#19 jimtang

jimtang

    Member

  • Members
  • PipPipPip
  • 526 posts

Posted 15 February 2016 - 01:13 PM

jimtang...... attached is the xb4d mq4 file .......use period 5

ktop1800  you have so many requests.

Where do you get your indicator, so many !!!!!!!!!!!!!!

Anyway I need more info.

When do you take the trade ?

Shift 1 or Shift 0 ?

 

put it another way, 

 

Do you take trade as soon as arrow appears ( shift 0)

or Do you trade candle immediately candle with signal ( shift 1 ) ???

What expiry do you want ?

How many marty steps ?

Give me this info and I will apply it to my DIY template.



#20 ktop1800

ktop1800

    Member

  • Members
  • PipPip
  • 93 posts

Posted 15 February 2016 - 01:31 PM

RULES:

Call......
1. Super Signal Channel give alert signal
2. Wait until the xb4d change to ( LIME ) bar
3. Place a CALL at the close of the Candle

Put.......
1. Super Signal Channel give alert signal
2. Wait for the xb4d to change to ( BLACK ) bar
3. Place a PUT at the close of the Candle







Also tagged with one or more of these keywords: EA, code, expert advisor, martingale, binary option, iCustom, MT4

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


USA REGULATION NOTICE: There are many binary options companies which are not regulated within the United States. Most of these offshore companies are not supervised, connected or affiliated with any of the regulatory agencies such as the Commodity Futures Trading Commission (CFTC), National Futures Association (NFA), Securities and Exchange Commission (SEC) or the Financial Industry Regulatory Authority (FINRA).

It is our STRONG opinion that you do not operate with any unregulated brokerage firm as they may steal or try to scam you out of every dime you have. Please take notice that any unregulated trading activity by U.S. Citizens should be considered unlawful.

Risk Disclosure: Binary Options Edge does not accept any liability for loss or damage as a result of reliance on the information contained within this website; this includes education material, price quotes and charts, and analysis. Please be aware of the risks associated with trading the financial markets; never invest more money than you can risk losing. The risks involved in trading binary options are high and may not be suitable for all investors. Binary Options Edge doesn't retain responsibility for any trading losses you might face as a result of using the data hosted on this site. The data and quotes contained in this website are not provided by exchanges but rather by market makers. So prices may be different from exchange prices and may not be accurate to real time trading prices. They are supplied as a guide to trading rather than for trading purposes.