OEC Indicators Treasure Chest

Discussion in 'Trading Software' started by veggen, Oct 14, 2008.

  1. Tums

    Tums

  2. veggen

    veggen

    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]
    
     
    #12     Jan 22, 2009
  3. #13     Jan 22, 2009
  4. 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.
     
    #14     Jan 30, 2009
  5. veggen

    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.
     
    #15     Feb 2, 2009
  6. rickf

    rickf

    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?
     
    #16     Feb 2, 2009
  7. agreed. you could do what you want with %R and TRIX in two seconds in SierraChart.
     
    #17     Feb 2, 2009
  8. Thanks everyone ... I'll check it out.
     
    #18     Feb 2, 2009
  9. 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.
     
    #19     Feb 3, 2009
  10. ^ it plays for me now.

    Not sure what happened before.

    Thanks.
     
    #20     Feb 3, 2009