Page 1 of 2

CCI_Flat_Extreme_Alert

PostPosted: Fri Sep 15, 2017 3:49 pm
by Apprentice
AUDNZD m1 (09-15-2017 2058).png

Based on the request.
viewtopic.php?f=27&t=65087
For overbought scenarios, alert only generated if CCI decreases by 5 or less
For oversold scenarios, alert only generated if CCI increases by 5 or less
CCI_Flat_Extreme_Alert.lua
(15.5 KiB) Downloaded 748 times

Re: CCI_Flat_Extreme_Alert

PostPosted: Mon Sep 18, 2017 5:02 am
by 7510109079
awesome, many thx Apprentice

Re: CCI_Flat_Extreme_Alert

PostPosted: Mon Sep 18, 2017 5:55 am
by 7510109079
heads up - It misses certain signals

Looks like if conditions are correct for a signal BUT BOTH start and end values are still above/below the overbought/oversold levels respectively at close then no alert is given. My fault i think as i was not clear in my specification

N.B. CCI line does not have to cross over the OB/OS line for signal to be valid. Even if line stays outside OB/OS lines its still a valid signal (actually more valid)

So it would be good to distinguish between the two types: outer and crossover alerts.

Once the code acknowledges the outer signals, could you add "outside/cross/both" filter option so we can choose to display alerts that are completely in the OB/OS zones, alerts that are crossing OB/OS zone, or to display both types

many thx in advance

Re: CCI_Flat_Extreme_Alert

PostPosted: Tue Sep 19, 2017 4:31 am
by Apprentice
Your request is added to the development list, Under Id Number 3898
If someone is interested to do this task, please contact me.

Re: CCI_Flat_Extreme_Alert

PostPosted: Wed Sep 27, 2017 4:59 am
by Apprentice
can you explain it
alert will be given in we have "Maximum change"
inner will be given if cci < OB and cci > OS
we will have other if cci > OB or cci < OS

Re: CCI_Flat_Extreme_Alert

PostPosted: Wed Oct 04, 2017 11:22 am
by 7510109079
My apologies Apprentice for the delayed reply.

I will try and clarify:

User specifies CCI OB value (X1) Will be a pos value
User specifies CCI OS value (X2) Will be a neg value
User specifies CCI Maximum Change value (Y)
At any time on the chart, the indicator compares CCI of Current bar (C) with Previous bar (P)

For a OB scenario:
IF P>X1 AND (P-C)<Y THEN DOWN Alert

For a OS scenario:
IF P<X2 AND (C-P)<Y THEN UP Alert
N.B. we use (C-P) because we are dealing with neg values of CCI

To avoid confusion, once CCI has crossed into OB/OS territory, we no longer care about it re-crossing the OB/OS line. Instead we focus on whether delta Y fits the criteria

I hope this clarifies. If not I can post some graphics to illustrate further

many thx

Re: CCI_Flat_Extreme_Alert

PostPosted: Wed Oct 04, 2017 11:44 am
by 7510109079
The theory behind this indicator is that flat values of CCI indicate that momentum has vanished and this can (at the proper TF and CCI period) alert to a next candle reversal

Re: CCI_Flat_Extreme_Alert

PostPosted: Thu Oct 05, 2017 4:23 am
by Apprentice
CCI_Flat_Extreme_Alert.lua
(14.14 KiB) Downloaded 736 times

Try this version.

Re: CCI_Flat_Extreme_Alert

PostPosted: Thu Oct 05, 2017 4:39 am
by 7510109079
many thx. I am starting testing

Re: CCI_Flat_Extreme_Alert

PostPosted: Thu Oct 05, 2017 5:19 am
by 7510109079
Excellent programming. It catches both pos and neg gradient flat tops/bottoms

Many thx indeed apprentice