Baluda Slope Strength auto-trader

Share your 10.x automated traders here.
Post Reply
User avatar
lucklogic
Trader
Posts: 85
Joined: Mon Jan 23, 2012 6:26 pm
Location: On The Hoe in Plymouth, UK

Re: Baluda Slope Strength auto-trader

Post by lucklogic »

This looks to be fantastic work BUT I have carefully followed ever step in set up of the EA and the indicators (matched the pairs sequence) however the slope values as displayed on screen simply DO NOT MATCH when the EA is run in conjunction with an Indicator :roll:

I have used the current EA from post 1 and June 5th release of Currency Slope Strength

I think that there is some problem in the array tallying

Please somebody have a look as I'm sure that I not the only member who cannot trade these until fixed

Thanks in advance :geek:
harry45
Trader
Posts: 158
Joined: Fri Nov 18, 2011 11:36 am
Location: Russia,St.Petersburg

Re: Baluda Slope Strength auto-trader

Post by harry45 »

lucklogic wrote:This looks to be fantastic work BUT I have carefully followed ever step in set up of the EA and the indicators (matched the pairs sequence) however the slope values as displayed on screen simply DO NOT MATCH when the EA is run in conjunction with an Indicator :roll:

I have used the current EA from post 1 and June 5th release of Currency Slope Strength

I think that there is some problem in the array tallying

Please somebody have a look as I'm sure that I not the only member who cannot trade these until fixed

Thanks in advance :geek:
I am the second
After restarting terminal works ok and shows correct slope strength value
Last edited by harry45 on Tue Jun 05, 2012 1:02 pm, edited 1 time in total.
figgir
Trader
Posts: 12
Joined: Wed May 16, 2012 10:51 am

Re: Baluda Slope Strength auto-trader

Post by figgir »

lucklogic wrote:This looks to be fantastic work BUT I have carefully followed ever step in set up of the EA and the indicators (matched the pairs sequence) however the slope values as displayed on screen simply DO NOT MATCH when the EA is run in conjunction with an Indicator :roll:

I have used the current EA from post 1 and June 5th release of Currency Slope Strength

I think that there is some problem in the array tallying

Please somebody have a look as I'm sure that I not the only member who cannot trade these until fixed

Thanks in advance :geek:
Thank you Paul. However, the same result as above. I have also reduced the number of base pairs against the USD. (USDCAD, GBPUSD, USDJPY, USDCHF, NZDUSD, EURUSD, AUDUSD) for Ea and indis. I tried to find a reason in the ea code also, but without success.
figgir
Trader
Posts: 12
Joined: Wed May 16, 2012 10:51 am

Re: Baluda Slope Strength auto-trader

Post by figgir »

Ok, after re-entering all the pairs into the settings of indis and EA, everything was fine. All the windows gave the same values of the currency strength. After a few minutes EA values ​​were exactly divided by two. After another few minutes, the values ​​of EA window further diminished. This is probably somewhere in the continuous dividing of the new variables.
User avatar
Baluda
Trader
Posts: 330
Joined: Mon Feb 06, 2012 2:00 pm
Location: An insignificant village in the Netherlands

Re: Baluda Slope Strength auto-trader

Post by Baluda »

Steve,

Please add this to the init() procedure:

Code: Select all

   ...
   symbolCount = ArraySize(symbolNames);
   
   ArrayInitialize(currencyOccurrences, 0.0);
   for (int i = 0; i < symbolCount; i++ )
   {
   ...
The currencyOccurrence array has to be set to 0 on every initialization. Otherwise the currency Slope Strengths do not calculate right.

'ArrayInitialization(currencyOccurrences, 0.0);' is the only line to add.

Could you also consider changing the default 'PairsToTrade' extern string to:

Code: Select all

extern string	PairsToTrade = "GBPNZD,EURNZD,GBPAUD,GBPCAD,GBPJPY,GBPCHF,CADJPY,EURCAD,EURAUD,USDCHF,GBPUSD,EURJPY,NZDJPY,AUDCHF,AUDJPY,USDJPY,EURUSD,NZDCHF,CADCHF,AUDNZD,NZDUSD,CHFJPY,AUDCAD,USDCAD,NZDCAD,AUDUSD,EURCHF,EURGBP";
This to keep it in line with the NanningBob 10.2 system (and my indicators).

Paul
Check the MQL4 Market for my best EA's and Indicators.
figgir
Trader
Posts: 12
Joined: Wed May 16, 2012 10:51 am

Re: Baluda Slope Strength auto-trader

Post by figgir »

great job Paul, thank you.
garyfritz

Re: Baluda Slope Strength auto-trader

Post by garyfritz »

Baluda wrote:At the time of the cross both SlopeStrengths were above 0, indicating both were considered to be strong currencies. Should we really trade two strong currencies? It is better to trade a strong currency against a weak one.
Great illustration, Paul!

Certainly trading strong against weak is optimal. But trading "strong against less strong" also works. If visual backtesting works, it looks to me like going long when the first currency is higher and going short when the first currency is lower works VERY well.

TOO well, in fact. Does this indicator repaint?
michaelhryu
Trader
Posts: 33
Joined: Wed May 09, 2012 1:32 pm

Re: Baluda Slope Strength auto-trader

Post by michaelhryu »

Hi Paul,

Thank you very much for the fix as well as your wonderful indis!

I also experienced the above described problems with Baluda EA. It currently has 2 opened trades after restarting the Empty4 terminal: "sell gbpjpy'; "sell gbpusd".

I have the following questions:

1. Does Baluda always enter 2 trades, as it is?
2. Does Baluda close the trades only when the condition is met. i.e., TMA slope above/below 0.4?
3. Does Baluda open 2 new trades as soon as it closes 2 previously opened trades?
User avatar
Baluda
Trader
Posts: 330
Joined: Mon Feb 06, 2012 2:00 pm
Location: An insignificant village in the Netherlands

Re: Baluda Slope Strength auto-trader

Post by Baluda »

garyfritz wrote:If visual backtesting works, it looks to me like going long when the first currency is higher and going short when the first currency is lower works VERY well.

TOO well, in fact. Does this indicator repaint?
Gary,

The SlopeStrength and CurrencySlopeStrength indicator do not repaint.

Paul
Check the MQL4 Market for my best EA's and Indicators.
garyfritz

Re: Baluda Slope Strength auto-trader

Post by garyfritz »

Then that's pretty impressive, considering what I'm seeing just looking at "which currency is stronger" and buying/selling the corresponding pair, always in. It's not perfect but it seems quite prescient sometimes, which is why I wondered about repainting.

I suspect you could do very well holding all 28 pairs open all the time, switching long and short depending on which currency was strongest. But trading only when the pairs are above/below 0.4 might be a better and safer approach.
Post Reply

Return to “10.x EA forum”