Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 02-02-2009, 11:20 AM   #9

Join Date: Feb 2009
Posts: 5
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Re: OEC Indicators

No problem ... thanks for trying ... actually I just (2 minutes ago) got a reply from OEC which said much the same thing ...

Unfortunately, at this time, we do not offer the ability to overlay indicators on top of each other.


Thanks again for checking into it Trader .....
spideysteve is offline  
Reply With Quote
Old 02-08-2009, 07:36 AM   #10

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: OEC Indicators

give this a try.
you can massage the TRIX range with TRIX.multiplier.

p.s. I have not tried it in OEC. I merely combined the EasyLanguage code.
if the individual indicator works in OEC, then this combined version should work too.

HTML Code:
inputs:
	TRIX.multiplier(5),
	Price( Close ),
	Length( 9 ),
	ColorNormLength( 14 ),                                                       
	UpColor( Yellow ),                                                             
	DnColor( Red );
	 
variables:
	var1( 0 ),
	var2( 0 ) ;


var1 = TRIX( Price, Length ) * TRIX.multiplier +50 ;

Plot1( var1, "TRIX" ) ;
Plot2( 50, "ZeroLine" ) ;

condition1 = UpColor >= 0 and DnColor >= 0 ;                     
if condition1 then
begin
	var2 = NormGradientColor( var1, true, ColorNormLength, UpColor,
	 DnColor ) ;
	SetPlotColor( 1, var2 );
end;
 
condition1 = var1 crosses over 0 ;                  
if condition1 then
	Alert( "Indicator turning positive" )
else
begin 
condition1 = var1 crosses under 0 ;
 if condition1 then
	Alert( "Indicator turning negative" ) ;
end;


{---------------------}
inputs: 
	R.Length( 14 ), 
	R.OverSold( 20 ), 
	R.OverBought( 80 ), 
	R.OverSColor( blue ), 
	R.OverBColor( Red ) ;

variables:
	var0.R( 0 ) ;

var0.R = PercentR( R.Length ) ;

Plot3( var0.R, "%R" ) ;
Plot4( R.OverBought, "OverBot" ) ;
Plot5( R.OverSold, "OverSld" ) ;

                  
if var0.R > R.OverBought then 
	SetPlotColor( 3, R.OverBColor ) 
else if var0.R < R.OverSold then 
	SetPlotColor( 3, R.OverSColor ) ;

condition1 = var0.R crosses over R.OverSold ;
if condition1 then
	Alert( "Indicator exiting oversold zone" )
else 
begin
condition1 = var0.R crosses under R.OverBought ; 
if condition1 then
	Alert( "Indicator exiting overbought zone" ) ;
end;

Last edited by Tams; 02-08-2009 at 08:14 AM.
Tams is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Divergences: Indicators? newtrader Technical Analysis 34 03-03-2012 02:23 PM
TTM Indicators for CQG? bathrobe Coding Forum 3 01-03-2011 06:01 AM
Need Some Help with Indicators sharky2372 Introduce Yourself 2 11-30-2008 02:20 AM
Locking Indicators BigEd Coding Forum 1 02-04-2008 01:27 PM
where are all the MP indicators gone? tradewiz Market Profile 3 01-12-2008 12:21 PM

All times are GMT -4. The time now is 12:24 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.