- Search Energy EXCH
-
kennyhubbard replied Aug 31, 2010Yentrader2, It is possible that your problem doesn't lie with the code you posted. Try posting the whole thing and maybe we can find the problem.
Help with iLowest() and iLow()
-
kennyhubbard replied Aug 30, 2010Presumably because most people are not interested in the losing results of the optimisation. If you really feel the need to see them, then right click on the optimisation tab(only visible if you have run an optimisation) and un-tick the 'Skip ...
Why does strategy tester discard results?
-
kennyhubbard replied Aug 29, 2010Ah, welcome to the world of programming.......lol. I am tryiing to get my head around adding a bollinger band to an On Balance Volume indicator

More help w/ Indicator for EA please
-
kennyhubbard replied Aug 29, 2010Hi Gil, There is no difference between Close[0] and Bid. The Close[0] price of the current bar is alway the ruling price since the bar cannot detect when it will receive its last tick before close therefore it always = bid. you are probably looking ...
More help w/ Indicator for EA please
-
kennyhubbard replied Aug 29, 2010Hi there, Just off the top of my head, have you downloaded the D1 data. Without it, iHighest & iLowest on the D1 TF will return zero.
Help with iLowest() and iLow()
-
kennyhubbard replied Aug 28, 2010Justin, Thanks for you response......and I do apologise for my tone. I just get so annoyed at wasting my life chasing housekeeping matters of things that breakdown. Now that said............ I know full well that communication breakdowns ...
MB Trading Futures - Introduction
-
kennyhubbard replied Aug 28, 2010Black Box VPS hosting — Justin, Why is it that I must always haul out a sledge hammer when dealing with MB Trading??? I have an issue again.......I have signed up for your 'free' Black Box VPS hosting. Just over a month ago I upgraded to the ...
MB Trading Futures - Introduction
-
kennyhubbard replied Aug 27, 2010Lol, at least now you understand why the need to count down. Knowing to count down is not quite the same as understanding why you should do it that way. MFB == Myfxbook

OrderClose() issue on EA
-
kennyhubbard replied Aug 27, 2010Hi Gil, So you discovered why they always tell you to count the orders down and not up........lol. Anyway, here is a nice simple routine I use to close all. It is brute force and does not bother with the touchy feely error reports etc.....it will ...
OrderClose() issue on EA
-
kennyhubbard replied Aug 19, 2010Actually, spikes like this at rollover seem to be more common than you would like to believe. Also seems specific to Citi Bank who is their liquidity provider. Just had a look at the chart on Jade and it seems they had the same spike of around 160 ...
NASTY Spike on ... thecollectivefx.com
-
kennyhubbard replied Aug 18, 2010Mmmmm, ok, that is strange. The logic and layout of your code is solid, so the problem is not there. Perhaps try printing out the profit(ie profit + swap + commission) for each order individually. This should provide some clues as to where the ...
Calculating Profit, etc
-
kennyhubbard replied Aug 18, 2010Add in the OrderCommission() and you are good to go..............
Calculating Profit, etc
-
kennyhubbard replied Aug 18, 2010Hi Gil, Have a look at the code in your very first post. Look for this line near the beginning :- SetIndexBuffer(0, TrendUp); There is a similar line for TrendDown. This is where the creator has linked the buffers to the array that it is going to ...
How to reference Custom Indicator (SuperTrend)
-
kennyhubbard replied Aug 17, 2010Hi Gil, You are welcome mate. On second thoughts, it may be better to stick with the iCustom. Transferring the code of an indicator to an EA is way more efficient, but it is not nearly as simple as I made it out to be. It would be an excellent ...
How to reference Custom Indicator (SuperTrend)
-
kennyhubbard replied Aug 17, 2010Hi there, I know this if off-topic from what you are seeking, but have you considered the fact that the only difference between hedging the trade and closing it, is that it costs you far more in commission and swap to hedge the trade? Please ignore ...
Hedging existing orders
-
kennyhubbard replied Aug 17, 2010Hi Gil, You pass the parameter to the indicator as you did in an earlier post(but without naming them). They must be in the order of extern variables as defined at the start of the indicator. The next digit you send is the buffer that you wish to ...
How to reference Custom Indicator (SuperTrend)
-
kennyhubbard replied Aug 17, 2010Hi there, Nah, not really. I pick little projects here and there to work on.
help with mql rsx1 = iCustom(
-
kennyhubbard replied Aug 16, 2010You can always dynamically resize later in the program using ArrayResize.
help with mql rsx1 = iCustom(
-
kennyhubbard replied Aug 16, 2010Hi there, Yup, the array needs to know the size.......not sure why, but my tests show zeros if the array size is not defined. If you using a fixed loop, then set the size to [101].
help with mql rsx1 = iCustom(
-
kennyhubbard replied Aug 16, 2010Did you declare it as size [101] or did you leave the size out ie []
help with mql rsx1 = iCustom(