Attached is a replacement for FXSniper's Ergodic CCI and Trigger indicator that some of you might use. The reason for the rewrite, is twofold. One, I'm not sure why it had the name "CCI" in it as it didn't seem to have anything to do with CCI at all. Secondly, at least the copy I had was very processor intensive by rewriting the entire indicator on every new tick which is completely unnecessary. This is a calculation intensive indicator as it stands and having to do those calculations thousands of times for each tick could really cause your MT4 to take a bit performance hit.
Should display the same information, though the levels will indicate lower than the original.
A couple new things you can change:
BarDiff (default 1). Usually when doing the calculations, the difference between the current close and the previous bar close are used. This parameter lets you choose a bar further back if you like, so the calculations might be from the current bar close minus the 5th bar back close instead.
PriceType (default 0). Usually calculations are done on the closing prices. Here you can adjust them to be one of the following:
0=Close, 1=Open, 2=High, 3=Low, 4=Median, 5=Typical, 6=Weighted
Bruce
Should display the same information, though the levels will indicate lower than the original.
A couple new things you can change:
BarDiff (default 1). Usually when doing the calculations, the difference between the current close and the previous bar close are used. This parameter lets you choose a bar further back if you like, so the calculations might be from the current bar close minus the 5th bar back close instead.
PriceType (default 0). Usually calculations are done on the closing prices. Here you can adjust them to be one of the following:
0=Close, 1=Open, 2=High, 3=Low, 4=Median, 5=Typical, 6=Weighted
Bruce
Attached File(s)
BH-Ergodic.mq4
6 KB
|
4,670 downloads