First of all, please forgive my bad English. . . This is my first post,and is to use google translation.
Last month, I read the post in forexfactory, The Coin-Flip Theory. http://www.forexfactory.com/showthread.php?t=495083. Before continuing next step, please read the post, and understand the rules of the strategy.
I think this strategy has potential, so I took two weeks to write this EA. I would like to share this robot with someone here, and hope to provide constructive comments and publish backtesting results.
Coin-Flip EA v2.0
-
zhengzuodong
- Trader
- Posts: 59
- Joined: Sat Aug 02, 2014 8:38 am
Coin-Flip EA v2.0
Rules:(Rule were a little changed to : ahead of one hour, in the closed position and the
open orders. Of course, you can easily set the time. you need by adjust the parameters of LondonOpenTime)
TimeFrame: H1
London opening: 9:00 (London DST,GMT+1)
1st Candle 9:00-10:00 (At the beginning of the candle we close the trade of yesterday)
2st Candle 10:00-11:00 (At the beginning of the candle we open the new trade)
Buy if 1st candle is bullish
Sell if 1st candle is bearish
the original post
Coin-Flip EA v2.0 Parameter Description:
extern int LocalGMTOffset = 8; //setting Local Time Zone
extern int BrokerGMTOffset = 2; //settine your Broker Time Zone
extern string LondonOpenTime = "9:00"; //setting London Session Start Time
extern double EquityPercent = 0.2; //Risk of per trade. 50% in the original post
extern double HardSL = 45.0; //Stopless. 34pips in the original post
extern bool DynamicLots = true; //Automatic calculation lots
extern double FixedLots = 0.1;
extern int MagicNumber = 777;
//+-------------------------------------------------------------------------
Good luck to all.
Version Update
Version Update--
Version Update---
-Updated the version from 2.2 to 2.4
-Added 5 digit broker capability
-Added a HardTP input (if set to 0 no TP will be set in order)
-Added ATR calculation for SL and TP values (input Use_ATR)
-Added TradeCandle input ( default is set to 2nd candle after open, as from original trade instructions)
EDIT:
-Added an EmergencyStop feature. If an order or placement of TP/SL does not work, EA will immediately stop and close any open trades. A comment will appear indicating this state.
-Added SL/TP placement for ECN type broker. Version 2.3 will not work if u are using a ECN type broker.
User can now pick which candle after the LondonOpen Candle to trade from. In addition user can pick any Market Open time (Asian, etc ) and place it in the LondonOpenTime input. Just make sure to take into consideration the GMTOffset.
--Update to version v2.61
1 adds MinFreeMarginRatio parameters. Default setting is 500%, is used to control large Lots.
2 adds ProfitPercent parameters, when profit is equal to the balance * ProfitPercent, close orders.
3. Modify MagicNumber automatically adapt to eight pairs of major currency pairs, correspond as follows:
pairs [8] = {"AUDUSD", "EURUSD", "GBPUSD", "NZDUSD", "USDCAD", "USDCHF", "USDJPY", "EURJPY"};
magic [8] = {111, 222, 333, 444, 555, 666, 777, 888};
The rest of the currency pair is set to 999.
4. adds orders closing and opening time display, and were labeled as "C" and "O" in the candles chart.
5. Some other minor amendments.
open orders. Of course, you can easily set the time. you need by adjust the parameters of LondonOpenTime)
TimeFrame: H1
London opening: 9:00 (London DST,GMT+1)
1st Candle 9:00-10:00 (At the beginning of the candle we close the trade of yesterday)
2st Candle 10:00-11:00 (At the beginning of the candle we open the new trade)
Buy if 1st candle is bullish
Sell if 1st candle is bearish
the original post
Coin-Flip EA v2.0 Parameter Description:
extern int LocalGMTOffset = 8; //setting Local Time Zone
extern int BrokerGMTOffset = 2; //settine your Broker Time Zone
extern string LondonOpenTime = "9:00"; //setting London Session Start Time
extern double EquityPercent = 0.2; //Risk of per trade. 50% in the original post
extern double HardSL = 45.0; //Stopless. 34pips in the original post
extern bool DynamicLots = true; //Automatic calculation lots
extern double FixedLots = 0.1;
extern int MagicNumber = 777;
//+-------------------------------------------------------------------------
Good luck to all.
Version Update
Version Update--
Version Update---
-Updated the version from 2.2 to 2.4
-Added 5 digit broker capability
-Added a HardTP input (if set to 0 no TP will be set in order)
-Added ATR calculation for SL and TP values (input Use_ATR)
-Added TradeCandle input ( default is set to 2nd candle after open, as from original trade instructions)
EDIT:
-Added an EmergencyStop feature. If an order or placement of TP/SL does not work, EA will immediately stop and close any open trades. A comment will appear indicating this state.
-Added SL/TP placement for ECN type broker. Version 2.3 will not work if u are using a ECN type broker.
User can now pick which candle after the LondonOpen Candle to trade from. In addition user can pick any Market Open time (Asian, etc ) and place it in the LondonOpenTime input. Just make sure to take into consideration the GMTOffset.
--Update to version v2.61
1 adds MinFreeMarginRatio parameters. Default setting is 500%, is used to control large Lots.
2 adds ProfitPercent parameters, when profit is equal to the balance * ProfitPercent, close orders.
3. Modify MagicNumber automatically adapt to eight pairs of major currency pairs, correspond as follows:
pairs [8] = {"AUDUSD", "EURUSD", "GBPUSD", "NZDUSD", "USDCAD", "USDCHF", "USDJPY", "EURJPY"};
magic [8] = {111, 222, 333, 444, 555, 666, 777, 888};
The rest of the currency pair is set to 999.
4. adds orders closing and opening time display, and were labeled as "C" and "O" in the candles chart.
5. Some other minor amendments.
You do not have the required permissions to view the files attached to this post.
Last edited by zhengzuodong on Fri Aug 15, 2014 12:30 am, edited 4 times in total.
-
zhengzuodong
- Trader
- Posts: 59
- Joined: Sat Aug 02, 2014 8:38 am
Coin-Flip EA v2.0
Hi, Steve, Why would my post here, but not in Automated Trading System? 
- fxozgirl
- Trader
- Posts: 1176
- Joined: Wed Nov 16, 2011 9:16 am
- Location: Melbourne, Australia
Coin-Flip EA v2.0
Because your first post did not include an Ea but only a link to Forex Factory.zhengzuodong » Sun Aug 03, 2014 3:25 pm wrote:Hi, Steve, Why would my post here, but not in Automated Trading System?
I see now you have added the EA to your 2nd post (some time after your first), perhaps Tommaso will move it back for you now.
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Coin-Flip EA v2.0
donefxozgirl » Sun Aug 03, 2014 7:57 am wrote:Because your first post did not include an Ea but only a link to Forex Factory.zhengzuodong » Sun Aug 03, 2014 3:25 pm wrote:Hi, Steve, Why would my post here, but not in Automated Trading System?
I see now you have added the EA to your 2nd post (some time after your first), perhaps Tommaso will move it back for you now.
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
-
AGT
- Trader
- Posts: 889
- Joined: Thu Nov 17, 2011 7:20 pm
- Location: Germany
Coin-Flip EA v2.0
@zhengzuodong
As I understand this thingy will run fully automatically ? That's the plan ?
So switch on a MyFXBook acc + put the link here. Let's see how this baby will do the job in a longer run. :hi:
As I understand this thingy will run fully automatically ? That's the plan ?
So switch on a MyFXBook acc + put the link here. Let's see how this baby will do the job in a longer run. :hi:
AGT's EA portfolio: http://www.stevehopwoodforex.com/phpBB3 ... =36&t=1374
- patmontes
- Trader
- Posts: 367
- Joined: Wed Apr 23, 2014 10:42 pm
Coin-Flip EA v2.0
Downloaded and will test it out as well...
On the original thread, the methid with with TP SL and ATr seem to be doing really well
On the original thread, the methid with with TP SL and ATr seem to be doing really well
-
Kruspe
- Trader
- Posts: 121
- Joined: Sat May 19, 2012 3:34 pm
- Location: Prague, Czech Republic
Coin-Flip EA v2.0
Hi Z,
Thx for this EA. I've quickly read the original ff thread and I really like the concept. I'm curious about your EA and looking forward to see a results.
Btw is there any reason why you don't share it on ff?
Thx, K :hi:
Thx for this EA. I've quickly read the original ff thread and I really like the concept. I'm curious about your EA and looking forward to see a results.
Btw is there any reason why you don't share it on ff?
Thx, K :hi:
Once you "see", you can not unsee. CJ
-
Kruspe
- Trader
- Posts: 121
- Joined: Sat May 19, 2012 3:34 pm
- Location: Prague, Czech Republic
Coin-Flip EA v2.0
Btw Z, have you already tried to backtest it, or optimise somehow?
Thx
Thx
Once you "see", you can not unsee. CJ
-
AGT
- Trader
- Posts: 889
- Joined: Thu Nov 17, 2011 7:20 pm
- Location: Germany
Coin-Flip EA v2.0
I'm curious about the results of this bot, bcz the strategy is pretty simple ... may be to simple ? Usually systems like these didn't gave any satisfying results in a long term run ... :youknow:
But who knows ... may be this attempt here will end with better outcome ?
But who knows ... may be this attempt here will end with better outcome ?
AGT's EA portfolio: http://www.stevehopwoodforex.com/phpBB3 ... =36&t=1374