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

Re: CCI_Flat_Extreme_Alert

Postby 7510109079 » Fri Oct 06, 2017 11:24 am

Hi Apprentice, how easy is it to include a Live Alert option?
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby Apprentice » Fri Oct 06, 2017 12:24 pm

Execution parameter is already available.
Can you clarify?
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 » Tue Oct 10, 2017 7:28 am

Image
Nice example of a 5min reversal
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby 7510109079 » Tue Oct 10, 2017 9:16 am

Apprentice wrote:Execution parameter is already available.
Can you clarify?


My apologies. I am not sure what happened. I must be using an older version. If I look at the code of the one i am using (attached), the Live code lines are there but commented out (not active).

You are right, the current version does have the LIVE option. I notice you have also fixed the direction so only maximums going toward centre zero-line are shown.

However some legitimate alerts are missed by the updated version. See image for example. Can this be looked into, thx
Attachments
2017-10-10 13 15 49.png
settings 6/20/140
CCI_Flat_Extreme_Arrow.lua
older version i was using without the live alert
(14.15 KiB) Downloaded 757 times
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby 7510109079 » Tue Oct 10, 2017 9:55 am

I had another look at the current lua again: seems to only recognise alerts where the CCI line is actually crossing the OBOS line
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby Apprentice » Wed Oct 11, 2017 3:52 am

For the second version,
alert will be given every time,
we are in OB or OS Zone and the CCI change is smaller than Maximum.

A)
if CCI[period] > OB
and math.abs(CCI[period]-CCI[period-1])<= Maximum

B)
if CCI[period] < OS
and math.abs(CCI[period]-CCI[period-1])<= Maximum
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 11, 2017 5:02 am

If i look at the code I see 4 instances similar to below:

if CCI[period] > OB
and CCI[period-1] <= OB
and math.abs(CCI[period]-CCI[period-1])<= Maximum
then
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby 7510109079 » Wed Oct 11, 2017 5:11 am

following on from last post (pressed Submit button early):

We are not concerned with the current CCI value in relation to OB/OS

We only need to know that previous CCI value was above OB (or below OS)
and
That current CCI value fulfils Maximum condition
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby 7510109079 » Fri Oct 13, 2017 5:48 am

ok , dont worry about this. It works alright
7510109079
FXCodeBase: Graduate
 
Posts: 410
Joined: Wed May 18, 2011 7:23 am

Re: CCI_Flat_Extreme_Alert

Postby Apprentice » Fri Aug 17, 2018 6:35 am

The Indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Previous

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot] and 59 guests