OEC Indicators Treasure Chest

dynamic S/R

Code:
[color=blue]
inputs:
	
	
	iMode("No"),	{ if "auto" code sets xPeriods, if not "auto" code uses iPeriods}

	iPeriods(05),
	HighColor(  red), 
	LowColor(  blue) ;

variables:
	
xPeriods(60),
xInterval(0),
sFirstPass(true),
	HavePrevLines( false ), 
	TLHigh( 0 ), 
	TLLow( 0 ), 
	PushHigh( 0 ), 
	PushLow( 0 ),
	OldPushHigh( 0 ), 
	OldPushLow( 0 ),
	PrevPushHigh( 0 ), 
	PrevPushLow( 0 ) ;


{first time through}

if sFirstPass
then begin
	
sFirstPass = false;

{bar test}

If bartype = 4
	then xInterval = 94
else
If bartype = 3
	then xInterval = 93
else
If bartype = 2
	then xInterval = 92
else
If bartype = 1
then begin
	xInterval = BarInterval;
end; { If bartype = 1  }

{mode test}

If iMode <> "Auto" and iMode <> "auto" and iMode <> "AUTO"
    then xPeriods = iPeriods
	else xPeriods = _fPushPeriods(xInterval);

end; {if sFirstPass}

{save old values}
	
If PushHigh <> PrevPushHigh
	then OldPushHigh = PrevPushHigh;
		
If PushLow <> PrevPushLow 
	then OldPushLow  = PrevPushLow ;
	
OldPushHigh = PrevPushHigh ;
OldPushLow = PrevPushLow ;

PrevPushHigh = PushHigh ;
PrevPushLow = PushLow ;

{ high / low for period }
	
PushHigh = Highest( H, xPeriods);
PushLow  = Lowest( L, xPeriods) ;

If PushHigh <> H
and PushHigh < PrevPushHigh
	then PushHigh = PrevPushHigh;
	
If PushLow <> L
and PushLow > PrevPushLow
	then PushLow = PrevPushLow;

plot1(PushLow, "PushLow", LowColor);
		
plot2(PushHigh, "PushHigh", HighColor);

#function _fPushPeriods
inputs: iInterval(NumericSimple); 
variables: xPeriods(60); 
{ calculations } 
If iInterval < 5 then xPeriods = 60 else 
If iInterval < 10 then xPeriods = 45 else 
If iInterval = 10 then xPeriods = 6 else 
If iInterval = 15 then xPeriods = 12 else 
If iInterval = 30 then xPeriods = 4 else 
If iInterval = 60 then xPeriods = 6 else 
If iInterval > 60 then xPeriods = 10; 
_fPushPeriods = xPeriods; 
{==END: _fPushPeriods ==} 
[/color]
 
Ummm ...

this stinks because this is my 1st post here, but I have to ask for help ...

I've been trying to create an indicator for OEC but for whatever reason I just can't get it to work ...

What I want to do is have Williams %R and TRIX in the same window so that the WR is overlapping the TRIX ...

Can OEC do this?

Thanks for the replies.
 
Quote from spideysteve:

Ummm ...

this stinks because this is my 1st post here, but I have to ask for help ...

I've been trying to create an indicator for OEC but for whatever reason I just can't get it to work ...

What I want to do is have Williams %R and TRIX in the same window so that the WR is overlapping the TRIX ...

Can OEC do this?

Thanks for the replies.

this I do not know, but OEC like explained earlier in this thread is quite limited when it comes to indicators. I would really recommend you to try out sierra charting. They have a 2 week trial I think it is, and if you have an account with OEC you can use their data feed. Very shortly it will also be possible for OEC customers to trade of the chart with sierra.
 
Speaking of OEC does anyone know if EL code for Linear Regression Channels can be coded or imported into OEC trader, or is that too complicated a formula for the platform?
 
Quote from veggen:

this I do not know, but OEC like explained earlier in this thread is quite limited when it comes to indicators. I would really recommend you to try out sierra charting. They have a 2 week trial I think it is, and if you have an account with OEC you can use their data feed. Very shortly it will also be possible for OEC customers to trade of the chart with sierra.

agreed. you could do what you want with %R and TRIX in two seconds in SierraChart.
 
Quote from IronFist:

vid isn't on youtube anymore but i watched it on the site:

http://www.vstraderllc.com/DayTrading_ZigZag_Indicator_1.html

Any idea how that indicator works? Is it just a superimposed Renko chart or something?
Hmmmm.....the video just worked fine for me. The indicator is a custom built modified indicator created by ViperSpeedTrader from what is known as the Zig-Zag indicator. It is more like a very smart realtime trendline tool that adapts to price action.
 
Back
Top