Baluda Indicators
-
arskay
- Posts: 2
- Joined: Sat Aug 11, 2012 10:45 am
Re: Baluda Indicators
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
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.arskay wrote:Hi Spotdespot,thanks for help I trying to use Currency Slope Strength and CSSDiff,which are on the first page.
- jako
- Trader
- Posts: 105
- Joined: Wed Jun 20, 2012 6:07 pm
- Location: Slovensko
Re: Baluda Indicators
Me too please add alerts.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
- jako
- Trader
- Posts: 105
- Joined: Wed Jun 20, 2012 6:07 pm
- Location: Slovensko
-
Frenetic
- Posts: 7
- Joined: Tue Sep 04, 2012 1:32 am
Re: Baluda Indicators
Hi Paul,Baluda wrote:New version DWMPivots v1.0.9 in post 2.
Changes: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.
- 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
Enjoy,
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): Chart with no Sunday bars showing 'correct' Week Pivot: 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 );
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
Alright, to prevent Empty4 recognising a week as
Mon,Tue,Wed,Thu,Fri,Sun instead of Sun,Mon,Tue,Wed,Thu,Fri
Replace this:
With this:
Broker with no sunday bars showing Weekly Pivot correctly as expected:
Broker with sunday bars showing Weekly Pivot correctly now:
Instead of pre-edit:
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 );
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 );
}You do not have the required permissions to view the files attached to this post.
- KevinT
- Trader
- Posts: 113
- Joined: Fri Jan 06, 2012 4:23 am
Re: Baluda Indicators
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
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.
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.
- KevinT
- Trader
- Posts: 113
- Joined: Fri Jan 06, 2012 4:23 am
Re: Baluda Indicators
These compile warnings are OK right?KevinT wrote:Awesome frenetic, well spotted as well as solved, kudos to you and all the "brain trust" guys here...
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
Yes, they are non-accessed functions in the original.