Baluda Indicators

Includes an archive of all previous Bob stuff
Post Reply
arskay
Posts: 2
Joined: Sat Aug 11, 2012 10:45 am

Re: Baluda Indicators

Post by arskay »

Hi Spotdespot,thanks for help I trying to use Currency Slope Strength and CSSDiff,which are on the first page.
spotdespot
Trader
Posts: 768
Joined: Sun Jan 22, 2012 11:38 pm

Re: Baluda Indicators

Post by spotdespot »

arskay wrote:Hi Spotdespot,thanks for help I trying to use Currency Slope Strength and CSSDiff,which are on the first page.
That's what it will be then - the maxBars - change it to something other than 0 - I use 400 and only increase it when I want to check something specific in the past.
User avatar
jako
Trader
Posts: 105
Joined: Wed Jun 20, 2012 6:07 pm
Location: Slovensko

Re: Baluda Indicators

Post by jako »

calvin1006 wrote:Dear all,

I really like the CSSDiff indicator, but anyhow, can someone kindly add the alert option into this indicator?

Alert message, box and email when CSSDiff cross above 0.8 or below -0.8.

i am very appreciate if someone can do me a favour!!!!!

Regards,
Calvin
Me too please add alerts.
User avatar
jako
Trader
Posts: 105
Joined: Wed Jun 20, 2012 6:07 pm
Location: Slovensko

Re: Baluda Indicators

Post by jako »

Frenetic
Posts: 7
Joined: Tue Sep 04, 2012 1:32 am

Re: Baluda Indicators

Post by Frenetic »

Baluda wrote:New version DWMPivots v1.0.9 in post 2.
Changes:
  • Added order label with background for 10.2a
  • Some more color changes and arrow directions by NaningBob
  • Introduced hour shift for pivot calculation, defaults to GMT+2
  • Added 'shiftTextFibs' user setting
  • Added user setting 'show10.x' to display NB 10.x features, deafults to true
The 'hoursFromGMT', default 2, sets the day change for calculation of the daily pivot and daily open to GMT+2. There is no need to adjust this for your b*roker, DWMPivots will make the change for you.

Enjoy,

Paul
Hi Paul,

First off, excellent indicator.

I've noticed with this week's EUR gap, that the week pivot logic polls the nearest Sunday instead of the past Sunday for the previous week's high/low/close for the calculation of the current Week Pivot.

Chart with Sunday bar showing lower current Week Pivot because it included the most recent Sunday's prices (for low and close):
2013-02-19%20week%20pivot%20_%20sunday%20bars%20_%20near%20sunday%20low+close%20used%20for%20calcs.gif
Chart with no Sunday bars showing 'correct' Week Pivot:
2013-02-19%20week%20pivot%20_%20no%20sunday%20bars.gif
The immediate thing that comes to mind is to replace:

Code: Select all

lastLow = iLow ( NULL, PERIOD_W1, pivotBar + 1 );
lastHigh = iHigh ( NULL, PERIOD_W1, pivotBar + 1 );
lastClose = iClose ( NULL, PERIOD_W1, pivotBar + 1 );
with a brute count-back of current day to the first Friday up to Sunday (for Sunday bars present) and Friday up to Monday (for Sunday bars absent), polling their iLowest & iHighest (MathMin & MathMax along the way) & Friday iClose.

There's got to be a more elegant way though. Would be interested in anyone's idea(s).
You do not have the required permissions to view the files attached to this post.
Frenetic
Posts: 7
Joined: Tue Sep 04, 2012 1:32 am

Re: Baluda Indicators

Post by Frenetic »

Alright, to prevent Empty4 recognising a week as
Mon,Tue,Wed,Thu,Fri,Sun instead of Sun,Mon,Tue,Wed,Thu,Fri

Replace this:

Code: Select all

// Weekly
lastLow = iLow ( NULL, PERIOD_W1, pivotBar + 1 );
lastHigh = iHigh ( NULL, PERIOD_W1, pivotBar + 1 );
lastClose = iClose ( NULL, PERIOD_W1, pivotBar + 1 );
With this:

Code: Select all

// Weekly
int day = TimeDayOfWeek(iTime(Symbol(),PERIOD_D1,0)); //current day
if ( sundayCandlesDetected ){
   lastHigh = iHigh ( Symbol(), PERIOD_D1, iHighest ( Symbol(), PERIOD_D1, MODE_HIGH, 6, day+1+pivotBar*6 ) );
   lastLow = iLow ( Symbol(), PERIOD_D1, iLowest ( Symbol(), PERIOD_D1, MODE_LOW, 6, day+1+pivotBar*6 ) );
   lastClose = iClose ( Symbol(), PERIOD_D1, day+1+pivotBar*6 );
}
else {
   lastHigh = iHigh ( Symbol(), PERIOD_D1, iHighest ( Symbol(), PERIOD_D1, MODE_HIGH, 5, day+pivotBar*5 ) );
   lastLow = iLow ( Symbol(), PERIOD_D1, iLowest ( Symbol(), PERIOD_D1, MODE_LOW, 5, day+pivotBar*5 ) );
   lastClose = iClose ( Symbol(), PERIOD_D1, day+pivotBar*5 );
}
Broker with no sunday bars showing Weekly Pivot correctly as expected:
2013-02-19 week pivot _ 3 _ no sunday bars.gif
Broker with sunday bars showing Weekly Pivot correctly now:
2013-02-19 week pivot _ 4 _ sunday bars _ corrected.gif
Instead of pre-edit:
2013-02-19 week pivot _ 5 _ sunday bars _ uncorrected.gif
You do not have the required permissions to view the files attached to this post.
User avatar
KevinT
Trader
Posts: 113
Joined: Fri Jan 06, 2012 4:23 am

Re: Baluda Indicators

Post by KevinT »

Awesome frenetic, well spotted as well as solved, kudos to you and all the "brain trust" guys here...
Last edited by KevinT on Mon Mar 25, 2013 12:36 am, edited 1 time in total.
Frenetic
Posts: 7
Joined: Tue Sep 04, 2012 1:32 am

Re: Baluda Indicators

Post by Frenetic »

Thanks, wouldn't count myself in the same league as Baluda and the others but thought I'd contribute where I can.

That said, this might be useful.
I initially used High[iHighest(Symbol(),timeframe,MODE_HIGH,barcount,startbar)] to get the highest of a range of bars, as indicated by http://docs.mql4.com/series/iHighest, but I found that the timeframe parameter defaults to 0 (the current chart's timeframe) regardless of the setting.

Had to work around with this instead:
iHigh(Symbol(),timeframe,iHighest(Symbol(),timeframe,MODE_HIGH,barcount,startbar));

With hindsight (as with everything else), it's apparent why, but at the juncture it was a little puzzling.
User avatar
KevinT
Trader
Posts: 113
Joined: Fri Jan 06, 2012 4:23 am

Re: Baluda Indicators

Post by KevinT »

KevinT wrote:Awesome frenetic, well spotted as well as solved, kudos to you and all the "brain trust" guys here...
These compile warnings are OK right?
You do not have the required permissions to view the files attached to this post.
Frenetic
Posts: 7
Joined: Tue Sep 04, 2012 1:32 am

Re: Baluda Indicators

Post by Frenetic »

Yes, they are non-accessed functions in the original.
Post Reply

Return to “Nanningbob's Holy Grail Indicator forum”