Composite Indicator

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

Composite Indicator

Postby Apprentice » Sun Aug 08, 2010 9:37 am

combi.png


This indicator is calculated based on 23 indicators.

Individual indicator gives an indication of +1 or -1.
Indicator is the sum of individual indications.

His range is from -23 to +23.

zzzcomposite.lua
(16.05 KiB) Downloaded 2011 times


If you do not already have, you must install the following nonstandard indicators,

One advice, related to the installation of inaccessible indicators.
When you install some or all inaccessible indicators.
Restart Platform

Momentum
http://fxcodebase.com/code/viewtopic.php?f=17&t=896&start=0&hilit=Momentum

TRIX
http://fxcodebase.com/code/viewtopic.php?f=17&t=1022&start=0&hilit=TRIX

Wilders MA
http://fxcodebase.com/code/viewtopic.php?f=17&t=248&start=0&hilit=Wilders+MA

DeMarker
http://fxcodebase.com/code/viewtopic.php?f=17&t=22&start=0&hilit=DeMarker

Forecast
http://fxcodebase.com/code/viewtopic.php?f=17&t=693&start=0&hilit=Forecast

FRAMA
http://fxcodebase.com/code/viewtopic.php?f=17&t=1355&start=0&hilit=FRAMA

Slope Direction Line
http://fxcodebase.com/code/viewtopic.php?f=17&t=949&start=0&hilit=Slope+Direction+Line

Supertrend
http://fxcodebase.com/code/viewtopic.php?f=17&t=605&start=0&hilit=Supertrend

VORTEX
http://fxcodebase.com/code/viewtopic.php?f=17&t=277&start=0&hilit=VORTEX


Composite.png


I made a few modifications.

I have Add ROC indicator. Request.

Now you have the choice which indicator will be in the composite indicator.
So you can specify the maximum number of indicators .

For those who do not want to know know the value of an indicator, but only its indication,
You can use only one indicator.

The indicator will now work even when you do not have installed all the indicators.
See the Selector parameter group to see the indicators that you are missing.

ADX
IF ADX > Level AND Composite > 0 +
IF ADX > Level AND Composite < 0 -

DMI 2
DIP > DMI Level +
DIM > DMI Level -
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Composite Indicator

Postby gregg1 » Thu Oct 07, 2010 6:27 am

I've tested the newly updated Composite Indicator with ROC and have reviewed an number of parameters to maximize results.

In the past two days, I've had good execution withthe following parameters.

(quick note: Update Marketscope with the latest patch)

EURUSD

10-6-2010: 6:35 am; 26.4 PIPs
10-7-2010: 2:35 am: 31.2 PIPS

The revised parameters are:
5M Chart
Composite Signal Level: 20
ROC Signal Level: .14
All Composite Parameters (ones that have default settings at 10) have been reset to: 7 periods
Time Frame: Five Minutes

I have manually executed the trades. I'm testing the 'auto trade' function now and will report as it progresses.
gregg1
FXCodeBase: Confirmed User
 
Posts: 3
Joined: Tue Sep 07, 2010 4:44 am

Re: Composite Strategy

Postby gregg1 » Fri Oct 08, 2010 6:18 am

Update to the Composite Strategy using ZZZcomposite Indicator

Tweak to the settings:
5M Chart
Composite Signal Level: changed to: 16
ROC: .14 [no change]
Periods: 7 [no change]
TimeFrame: Five Minutes [no change]
Limit: 30 pips
Stop: 30 pips
Updated results: Events Alerts worked as designed in manual mode [not yet successfully tested auto trade yet]

10/8/2010: Sell EURUSD @ 1.39133 4:15am
10/8/2010: Buy EURUSD @ 1.38794 6:05 am
gregg1
FXCodeBase: Confirmed User
 
Posts: 3
Joined: Tue Sep 07, 2010 4:44 am

Re: Composite Indicator

Postby Nikolay.Gekht » Mon Oct 11, 2010 11:18 pm

1) The first thing to check is whether ALL the indicators required (listed in the first topic) are installed.
2) When (Error) appears in the indicator label - please go to the Chart->Indicators Log and tell us at least the line number where error appears.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Composite Indicator

Postby bonnevie » Wed Nov 10, 2010 1:25 pm

Hi Apprentice,

Thanks for the response. Does "Update" mean a new version of the indicator has replaced the one at the beginning of the thread? Or is the update located elsewhere?

Or should the default parameters be adjusted in any way?

I downloaded the indicator from the beginning of the thread today (assuming it was a corrected version) and I'm still getting pretty much the same error message when I try to attach it to my charts - except now the number after '[string “zzzcompsite.lua”]' is 388 instead of 365 like the last time:

"An error occurred during the calculation of the indicator ‘ZZZ COMPOSITE’. The error details: [string “zzzcompsite.lua”]: 388: [string “Slope_Direction_Line.lua”]: 48: [string “mva.lua”]: 41: The first parameter must be a price stream."

Your help would be appreciated.

Thanks,
bonnevie
bonnevie
 
Posts: 12
Joined: Mon Jun 07, 2010 2:15 am

Re: Composite Indicator

Postby Apprentice » Wed Nov 10, 2010 3:24 pm

Sorry for the inconvenience.

I am to blame.
Yesterday I update Slope_Direction_Line, but I forgot to do this here.

Error corrected.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Composite Indicator

Postby fabfxcm » Fri Feb 25, 2011 2:37 am

Dear Apprentice,
I installed all the indicators requested but each time I try to open the zzzcomposite indicator this text appear: [string "zzzcomposite.lua"]:506: attempt to index field 'UP' (a nil value).
How can I solve the problem??
fabfxcm
 
Posts: 23
Joined: Mon Jan 17, 2011 5:50 am

Re: Composite Indicator

Postby Apprentice » Fri Feb 25, 2011 6:07 am

Use Top Most Version of SuperTrend Indicator.
(Not Single Stream Version)
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Composite Indicator

Postby nookie » Sat May 09, 2015 2:23 am

Hi Apprentice, is it possible to include alert and real values to be reached for example below:

I am sure it has mistakes but this is the idea

6. DMI(10) Di+ > 10 = +1 Di+ < 10 = -1
Di- > 10 = +1 Di- < 10 = -1
if ON[5] then
DMI:update(mode);
if DMI.DIP:hasData(period) and DMI.DIM:hasData(period) then
if DMI.DIP[period] > 10 then
Plus(5);
if DMI.DIM[period] > 10 then
Plus(5);
elseif Minus(5);
end

and similar and awsome if we add ADX to this indicator.. tried to add it but got the following error:

The error details: TESTzzzcomposite.lua:515: attempt to index field 'UP' (a nil value).
nookie
FXCodeBase: Graduate
 
Posts: 203
Joined: Tue May 24, 2011 12:50 pm

Re: Composite Indicator

Postby Apprentice » Mon May 11, 2015 4:24 am

Additional ADX and DMI filters added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 75 guests