stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Baluda Slope Strength auto-trader
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=603
Page 3 of 27
Author:  forexripper [ Sun Jun 03, 2012 9:43 pm ]
Post subject:  Re: Baluda Slope Strength auto-trader

SteveHopwood wrote:
forexripper wrote:My 2cents here:

Can we have the slope indi instead of using average for a currency (not pair) use the relative increase and decrease against each (say in last 5 days etc.) so we know if e.g. JPY overall is increasing or decreasing and that may hint us on retracements / pull backs etc. and accordingly we can use Shelley and other gr8 EAs on this forum.

Thanks
Currency Slope Strength shows this. Find it in the manual tools thread.

:D
Yes it does.

Thanks for directing me.
Author:  bedul [ Sun Jun 03, 2012 11:57 pm ]
Post subject: 

hai steve,
this is my first post here
I was directed by Caillou to learn about NB's trading system at FF and to look here for its related development. and I glad I listened to his suggestion :D

I try to demo this new toys of yours with default settings
but the problem is it open trades and close it in a matter of seconds (about 47 trades in the last 30 minutes).
by looking at the slope strength, i'd say that the EA has already made the right entry in terms of trend direction (such as sell GBPUSD, buy USDCAD, buy USDCHF, etc)
just curious what I am missing here?

thank you for your response.

PS: sorry for my english, its not my native language
Author:  winsteadglenn [ Mon Jun 04, 2012 12:40 am ]
Post subject:  Re: Baluda Slope Strength auto-trader

Getting the same thing as Bedul.
Author:  Armen [ Mon Jun 04, 2012 5:18 am ]
Post subject:  Re: Baluda Slope Strength auto-trader

Dears,

I have the same problem with *Baluda* EA as Shelley. It sent orders then closes them after couple of seconds. May be I am doing something wrong.
Author:  stimpy [ Mon Jun 04, 2012 6:55 am ]
Post subject:  Re: Baluda Slope Strength auto-trader

no i get the same too...
Author:  SteveHopwood [ Mon Jun 04, 2012 7:29 am ]
Post subject:  Re: Baluda Slope Strength auto-trader

stimpy wrote:no i get the same too...
Anyone using this will have the same problem. It is a bug and I will sort it out later. For now, all B will do is drain the account.

:D
Author:  Baluda [ Mon Jun 04, 2012 9:19 am ]
Post subject:  Re: Baluda Slope Strength auto-trader

SteveHopwood wrote:Anyone using this will have the same problem. It is a bug and I will sort it out later. For now, all B will do is drain the account.
Steve,

Here is the debugged code (from LookForTradeClosures()):

Code: Select all

      //Find the *original* indexes for the two currencies
      int Index1;
      int Index2;
      
      for ( int i = 0; i < CURRENCYCOUNT; i++ )
      {
         if ( currencyValues[i][1] == GetCurrencyIndex(ccy1) )
         {  
            Index1 = i;
         }   
         if ( currencyValues[i][1] == GetCurrencyIndex(ccy2) )
         {  
            Index2 = i;
         }   
      }

      //Close trade if either strength is the wrong side of the user's chosen level
      if (OrderType() == OP_BUY)
      {
         if (currencyValues[Index1][0] <= HtfBuyCloseLevel || currencyValues[Index2][0] >= HtfSellCloseLevel ) CloseThisTrade = true;
      }//if (OrderType() == OP_BUY)
      
      if (OrderType() == OP_SELL)
      {
         if (currencyValues[Index1][0] >= HtfSellCloseLevel || currencyValues[Index2][0] <= HtfBuyCloseLevel ) CloseThisTrade = true;
      }//if (OrderType() == OP_SELL)

      rest of code ...
If we have found the index of the currency through GetCurrencyIndex(), the next step is to find the index of the sorted currencyValues array by comparing the original index (2nd dimension) to the currencyIndex found. At that point we can get to the CurrencySlopeStrength in the first dimension of the same array.

Confused? :shock:

Paul
Author:  SteveHopwood [ Mon Jun 04, 2012 10:01 am ]
Post subject:  Re: Baluda Slope Strength auto-trader

Baluda wrote:Confused? :shock:

Paul
Paul, I spend my entire life confused.

V1a is in post one. The trades stay put.

Cheers Paul.

:D
Author:  SWG123 [ Mon Jun 04, 2012 5:00 pm ]
Post subject:  Re: Baluda Slope Strength auto-trader

First Baluda trade closed successfully +28 pips long on UCAD. :D

Also have open GJ and GU shorts.
Author:  michaelhryu [ Mon Jun 04, 2012 6:25 pm ]
Post subject:  Re: Baluda Slope Strength auto-trader

Hi Baluda,

Thanks a lot for the indis!

Would you please explain the differnences beteen SlopeStrength and CurrencySlopeStrength? Perhaps, how they are calculated, in simple terms. That is, the values of the two indis are different though slight.
All times are UTC Page 3 of 27