Baluda Indicators

Includes an archive of all previous Bob stuff
Post Reply
User avatar
NeoTrader
Trader
Posts: 436
Joined: Wed Apr 04, 2012 2:52 pm
Location: small Village at Lake Chiemsee, Bavaria, Germany

Re: Baluda Indicators

Post by NeoTrader »

hi slowkey,
slowkey wrote:Neo your indicator is a fabulous tool for scalping 15 min - 60 min time frames. :D I am getting spot on trades that actually seem more accurate on the lower time frames. The Diff line gives you good crosses and than good feedback for staying in the trade. You get in early and milk it for all it is worth. Really Cool. Again thanks for your efforts.
Thanks slowkey...I also made this observation in the lower TFs.

It would be interesting to know in which TFs you work and how you use it.

I am not working too much in the lower TFs but if you have a strategy for scalping I'm sure that other members would appreciate your insights.

Thanks in advance,

NeoTrader

P.S. It would be nice if we could discuss this topic in my thread here.

-
User avatar
Baluda
Trader
Posts: 330
Joined: Mon Feb 06, 2012 2:00 pm
Location: An insignificant village in the Netherlands

Re: Baluda Indicators

Post by Baluda »

New version for iExposure, Tickets, v1.0.4, in post 3.
iExposure, screen II.png
Changes:
  • Added option to display information on basket trading, including:
  • High-water mark in cash and pips
  • Low-water mark in cash and pips
  • High-water mark per pair in cash and pips
  • Low-water mark per pair in cash and pips
High- and low-water marks are reset when all trades are closed.

Enjoy!

Paul
You do not have the required permissions to view the files attached to this post.
Check the MQL4 Market for my best EA's and Indicators.
User avatar
NeoTrader
Trader
Posts: 436
Joined: Wed Apr 04, 2012 2:52 pm
Location: small Village at Lake Chiemsee, Bavaria, Germany

Re: Baluda Indicators

Post by NeoTrader »

Thank you Baluda for your fine work here...

happy Trading,

NeoTrader
User avatar
Jemook
Trader
Posts: 1085
Joined: Thu May 10, 2012 10:19 am
Location: Bondi, Sydney, Australia

Re: Baluda Indicators

Post by Jemook »

Baluda!! THANK YOU!! Exactly what I was after :)
Please note I am no longer affiliated with Global Prime. I've moved on to my next adventure with Afterprime.

Catch me here: https://www.afterprime.com
User avatar
lucklogic
Trader
Posts: 85
Joined: Mon Jan 23, 2012 6:26 pm
Location: On The Hoe in Plymouth, UK

Re: Baluda Indicators

Post by lucklogic »

Hi Paul and straight away thank you for this work, brilliant.

I have a problem, please assist when you can.

I want to compare the current and shift 1 values of the TMA using your procedures e.g :

double valsort = GetSlope(CurrentP,PERIOD_M15, 0);
double val1sort = GetSlope(CurrentP,PERIOD_M15, 1);

For some reason this does not return the correct values, the shifted values always seem higher and not correct.

If I use :

double val3sort = iCustom(CurrentP,PERIOD_M15,"10.2 TMA slope true 4.30",eintPeriod,6,1);

then the correct result is returned (but i get unknown subwindow warnings )

Now why is that, the first argument should work ??? :?
User avatar
Baluda
Trader
Posts: 330
Joined: Mon Feb 06, 2012 2:00 pm
Location: An insignificant village in the Netherlands

Re: Baluda Indicators

Post by Baluda »

lucklogic wrote:double valsort = GetSlope(CurrentP,PERIOD_M15, 0);
double val1sort = GetSlope(CurrentP,PERIOD_M15, 1);
Luck,

I take it you have these methods in your code:

Code: Select all

//+------------------------------------------------------------------+
//| GetSlope()                                                       |
//+------------------------------------------------------------------+
double GetSlope(string symbol, int tf, int shift)
{
   double dblTma, dblPrev;
   double atr = iATR(symbol, tf, 100, shift + 10) / 10;
   double gadblSlope = 0.0;
   if ( atr != 0 )
   {
      if ( ignoreFuture )
      {
         dblTma = calcTmaTrue( symbol, tf, shift );
         dblPrev = calcPrevTrue( symbol, tf, shift );
      }
      else
      {   
         dblTma = calcTma( symbol, tf, shift );
         dblPrev = calcTma( symbol, tf, shift + 1 );
      }   
      gadblSlope = ( dblTma - dblPrev ) / atr;
   }
   
   return ( gadblSlope );

}//End double GetSlope(int tf, int shift)

//+------------------------------------------------------------------+
//| calcTma()                                                        |
//+------------------------------------------------------------------+
double calcTma( string symbol, int tf,  int shift )
{
   double dblSum  = iClose( symbol, tf, shift ) * 21;
   double dblSumw = 21;
   int jnx, knx;
         
   for ( jnx = 1, knx = 20; jnx <= 20; jnx++, knx-- )
   {
      dblSum  += iClose(symbol, tf, shift + jnx) * knx;
      dblSumw += knx;

      if ( jnx <= shift )
      {
         dblSum  += iClose(symbol, tf, shift - jnx) * knx;
         dblSumw += knx;
      }
   }
   
   return ( dblSum / dblSumw );
}// End calcTma()


//+------------------------------------------------------------------+
//| calcTmaTrue()                                                    |
//+------------------------------------------------------------------+
double calcTmaTrue( string symbol, int tf, int inx )
{
   return ( iMA( symbol, tf, 21, 0, MODE_LWMA, PRICE_CLOSE, inx ) );
}

//+------------------------------------------------------------------+
//| calcPrevTrue()                                                   |
//+------------------------------------------------------------------+
double calcPrevTrue( string symbol, int tf, int inx )
{
   double dblSum  = iClose( symbol, tf, inx + 1 ) * 21;
   double dblSumw = 21;
   int jnx, knx;
   
   dblSum  += iClose( symbol, tf, inx ) * 20;
   dblSumw += 20;
         
   for ( jnx = 1, knx = 20; jnx <= 20; jnx++, knx-- )
   {
      dblSum  += iClose( symbol, tf, inx + 1 + jnx ) * knx;
      dblSumw += knx;
   }
   
   return ( dblSum / dblSumw );
}
The only thing to consider is if you want the original TMA Slope or the non-repainting version. Set the global variable 'ignoreFuture' to false resp. true beforing calling GetSlope().

Paul
Check the MQL4 Market for my best EA's and Indicators.
User avatar
lucklogic
Trader
Posts: 85
Joined: Mon Jan 23, 2012 6:26 pm
Location: On The Hoe in Plymouth, UK

Re: Baluda Indicators

Post by lucklogic »

Baluda wrote:
lucklogic wrote:double valsort = GetSlope(CurrentP,PERIOD_M15, 0);
double val1sort = GetSlope(CurrentP,PERIOD_M15, 1);
Luck,

I take it you have these methods in your code:

Code: Select all

//+------------------------------------------------------------------+
//| GetSlope()                                                       |
//+------------------------------------------------------------------+
double GetSlope(string symbol, int tf, int shift)
{
   double dblTma, dblPrev;
   double atr = iATR(symbol, tf, 100, shift + 10) / 10;
   double gadblSlope = 0.0;
   if ( atr != 0 )
   {
      if ( ignoreFuture )
      {
         dblTma = calcTmaTrue( symbol, tf, shift );
         dblPrev = calcPrevTrue( symbol, tf, shift );
      }
      else
      {   
         dblTma = calcTma( symbol, tf, shift );
         dblPrev = calcTma( symbol, tf, shift + 1 );
      }   
      gadblSlope = ( dblTma - dblPrev ) / atr;
   }
   
   return ( gadblSlope );

}//End double GetSlope(int tf, int shift)

//+------------------------------------------------------------------+
//| calcTma()                                                        |
//+------------------------------------------------------------------+
double calcTma( string symbol, int tf,  int shift )
{
   double dblSum  = iClose( symbol, tf, shift ) * 21;
   double dblSumw = 21;
   int jnx, knx;
         
   for ( jnx = 1, knx = 20; jnx <= 20; jnx++, knx-- )
   {
      dblSum  += iClose(symbol, tf, shift + jnx) * knx;
      dblSumw += knx;

      if ( jnx <= shift )
      {
         dblSum  += iClose(symbol, tf, shift - jnx) * knx;
         dblSumw += knx;
      }
   }
   
   return ( dblSum / dblSumw );
}// End calcTma()


//+------------------------------------------------------------------+
//| calcTmaTrue()                                                    |
//+------------------------------------------------------------------+
double calcTmaTrue( string symbol, int tf, int inx )
{
   return ( iMA( symbol, tf, 21, 0, MODE_LWMA, PRICE_CLOSE, inx ) );
}

//+------------------------------------------------------------------+
//| calcPrevTrue()                                                   |
//+------------------------------------------------------------------+
double calcPrevTrue( string symbol, int tf, int inx )
{
   double dblSum  = iClose( symbol, tf, inx + 1 ) * 21;
   double dblSumw = 21;
   int jnx, knx;
   
   dblSum  += iClose( symbol, tf, inx ) * 20;
   dblSumw += 20;
         
   for ( jnx = 1, knx = 20; jnx <= 20; jnx++, knx-- )
   {
      dblSum  += iClose( symbol, tf, inx + 1 + jnx ) * knx;
      dblSumw += knx;
   }
   
   return ( dblSum / dblSumw );
}
The only thing to consider is if you want the original TMA Slope or the non-repainting version. Set the global variable 'ignoreFuture' to false resp. true beforing calling GetSlope().

Paul

I did not have all of the code that you included and it now works perfectly. Understood about the bool 'ignoreFuture requirement depending on what values need to be worked on.

Once again, Thank you v.much. :D :D :D
User avatar
Jemook
Trader
Posts: 1085
Joined: Thu May 10, 2012 10:19 am
Location: Bondi, Sydney, Australia

Re: Baluda Indicators

Post by Jemook »

B - version 1.0.4 of Exposure, Tickets is amazing. The only Q I have is with the water marks if a basket is closed when I'm not there the high/low of the watermark resets to 0. Is there a text file it spits out with the final watermark results of the basket somewhere? Or is there any way to view the previous baskets high/low watermark after it's closed?

Thanks maaaaatey.
Please note I am no longer affiliated with Global Prime. I've moved on to my next adventure with Afterprime.

Catch me here: https://www.afterprime.com
garyfritz

Re: Baluda Indicators

Post by garyfritz »

Or have it reset when a NEW basket OPENS?
VirtualFM
Trader
Posts: 84
Joined: Sat Apr 28, 2012 3:45 am

Re: Baluda Indicators

Post by VirtualFM »

MurphyMan wrote:I hate to ask dumb questions, but that has never stopped me in the past. :lol:

When I have the SlopeStrength indicator up the fields overlap, so I am unable to distinguish the trend arrows or dots. Any suggestions how to correct this? BTW, I am using full screen on a 22" monitor.
Isn't that a matter of turning on "Chart Shift", the button next to "Auto Scroll"?!
Post Reply

Return to “Nanningbob's Holy Grail Indicator forum”