Jump to content

Recommended Posts

Posted
Do you let the BT complete? Mine runs for a long time even on my **** data before ever taking a trade.

 

EDIT: Just ran the same BT on sig's 4 digit and 5 digit feed and got no errors and a few trades.

I don't have the time to test out the dukas data on this. I'm not one that is big on BT. I am more about fwd test on demo or live cent account.

 

EDIT2: Looking through the code and not seeing many division with variables in there. One place has to do with accounts that are not USD accounts. By any chance does your account fall under this category?

double GetAccCurrToUSD() {
  double l_bid_0;
  if (gs_180 == "USD") return (1);
  if (gs_180 == "EUR") return (MarketInfo("EURUSD", MODE_BID));
  if (gs_180 == "RUR") {
     l_bid_0 = MarketInfo("USDRUR", MODE_BID);
     if (l_bid_0 == 0.0) return (1 / gd_152);
     return (1 / l_bid_0);

 

Here is another area that could cause this error

 

double Get_RAVI(int a_timeframe_0, int a_period_4, int a_period_8, int a_ma_method_12, int a_applied_price_16, int ai_20) {
  double l_ima_24 = iMA(NULL, a_timeframe_0, a_period_4, 0, a_ma_method_12, a_applied_price_16, ai_20);
  double l_ima_32 = iMA(NULL, a_timeframe_0, a_period_8, 0, a_ma_method_12, a_applied_price_16, ai_20);
  double ld_ret_40 = 100.0 * ((l_ima_24 - l_ima_32) / l_ima_32);
  return (ld_ret_40);

 

If the iMA returns a 0 then l_ima_32=0 and ld_ret_40 will create a zero divide error. Like I mentioned before, this would be caused by lack of data to calculate the iMA.

 

Perhaps your dukas data was only created for 1 TF and this is using a diff TF to calculate the iMA. This would cause your error. To test, create the tick data for EVERY tf for EU and not just the M15. Then run the BT on M15 and see if you still get the error.

 

I see...Yup, the tick data is only on M15. I will try the method you suggested. Thanks so much for your advice and time.

  • Replies 125
  • Created
  • Last Reply

Top Posters In This Topic

Posted
Yes capella..Dont waste your time with it..I use it live but i do like Money..It will only place trades around whole numbers so if you want more then look elsewhere
Posted

As I go over the thread, I can say that certain brokers have positive result and I am also grateful that my broker offer the same result. I am happy with what I have right now.

http://imagicon.info/cat/3-4/1.gifhttp://imagicon.info/cat/3-8/1.gifhttp://imagicon.info/cat/3-5/1.gifhttp://imagicon.info/cat/3-1/1.gifhttp://imagicon.info/cat/3-6/1.gifhttp://imagicon.info/cat/3-2/1.gifhttp://imagicon.info/cat/3-3/1.gif

Posted

50pips,

I have a question about Baila. When I do the backtesting, EA closes TP = 18 and SL = 210

However, when I trade (forward test), EA actually put TP = 66 and SL = 210

Can you tell me why that is?

Posted

About the zero divide: if you look at calcTrend() you see the timeframes used in SMA calculation: H1, H4 and D1. Without those, it can not backtest.

 

It seems not completed, CheckExitCondition() function is empty :)

Posted

Under the Experts tab, I get the error 2011.05.11 12:30:49 Baila~ EURUSD,M15: Baila : Error opening BuyLIMIT order [baila : 2103 : EURUSD_PERIOD_M15]: (147) expirations are denied by broker /// for 1.4195 BAL :62.00000000 RAVI0_2_24_H4_0 :-0.59665063 RAVI0_2_24_H1 :-0.67038475

 

This is demo on broker MBTrading. Anyone know a fix?

Guest Jayman007
Posted

To test if your broker supports order "expiration" function just place a pending order and check the expiration box and see if the order is accepted or not.

 

I think that if you even have the ability to set the expiration in mt4 that your broker supports it. But place a pending order with expiration to test it.

Guest Jayman007
Posted

By all means we have to work together in order to beat the brokers ;)

 

TBH, this is why I hang out in this forum because I know there are plenty of good people that want to help make trading more profitable for all of us. When I just see all the taking and very little giving (even just basic info) I get a little dismayed. I'm sure everyone here has some info that others don't have. If we just share it all we will have a better stance to trade with.

 

Thanks for your sharing of these EA's to the community. Maybe have come forward with surprise that you posted these gems. I for one am very happy that you did.

Posted

Just FYI. I am using Oanda and it execute perfectly. 240 pips 3 days trading (May 9th, 10th 12th) I didn't trade on May 11th (PC was down and MT4 was not on) 3 orders, 3 winners - awesome trading so far! :)

Thanks again for sharing, 50pips!

Posted
Thanks for the help, I checked on my MBTrading demo and the box was all grayed out, not letting me set an expiration, even after I filled in the rest of the info. This also happened on my real MBTrading account, so it looks like they don't support expirations on pending orders.
Posted
Just FYI. I am using Oanda and it execute perfectly. 240 pips 3 days trading (May 9th, 10th 12th) I didn't trade on May 11th (PC was down and MT4 was not on) 3 orders, 3 winners - awesome trading so far! :)

Thanks again for sharing, 50pips!

 

 

Thanks for the feedback..I told you you would love this one..My pleasure..Enjoy!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...