CCI_Flat_Extreme_Alert

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

CCI_Flat_Extreme_Alert

Postby Apprentice » Fri Sep 15, 2017 3:49 pm

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
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: CCI_Flat_Extreme_Alert

Postby 7510109079 » Mon Sep 18, 2017 5:02 am

awesome, many thx Apprentice
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby 7510109079 » Mon Sep 18, 2017 5:55 am

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
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby Apprentice » Tue Sep 19, 2017 4:31 am

Your request is added to the development list, Under Id Number 3898
If someone is interested to do this task, please contact me.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: CCI_Flat_Extreme_Alert

Postby Apprentice » Wed Sep 27, 2017 4:59 am

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
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: CCI_Flat_Extreme_Alert

Postby 7510109079 » Wed Oct 04, 2017 11:22 am

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
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby 7510109079 » Wed Oct 04, 2017 11:44 am

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
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby Apprentice » Thu Oct 05, 2017 4:23 am

CCI_Flat_Extreme_Alert.lua
(14.14 KiB) Downloaded 736 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: CCI_Flat_Extreme_Alert

Postby 7510109079 » Thu Oct 05, 2017 4:39 am

many thx. I am starting testing
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby 7510109079 » Thu Oct 05, 2017 5:19 am

Excellent programming. It catches both pos and neg gradient flat tops/bottoms

Many thx indeed apprentice
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Next

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 57 guests