EasyLanguage Treasure Chest

Discussion in 'Trading Software' started by Tums, Nov 24, 2008.

Thread Status:
Not open for further replies.
  1. Tums

    Tums

  2. harsh

    harsh

    Tums;
    I have downloaded { _SHME_Dynamic_SR - draw dynamic s/rlines indicator from Anek thread. Since I am using MC , i am missing function = _fPushPeriods(xInterval); and can not compile. Can any one post this function?
    harsh
     
    #152     Jan 30, 2009
  3. Tums

    Tums

    you can check with www.kreslik.com.
    have you tried Google?
     
    #153     Jan 30, 2009
  4. harsh

    harsh

    Tums;
    yes, ih ave tried , looks like they removed the indicator
    harsh
     
    #154     Jan 30, 2009
  5. Tums

    Tums

    Probably the indicator is no good, that's why they removed it.
     
    #155     Jan 31, 2009
  6. Tums

    Tums

    Updated
    Awesome Oscillator with Accelerator/Decelerator
    Bill Williams


    <img src=http://www.elitetrader.com/vb/attachment.php?s=&postid=2284264>
     
    #156     Jan 31, 2009
  7. Tums

    Tums

    code for Awesome Oscillator with Accelerator/Decelerator
     
    #157     Jan 31, 2009
  8. Here is Blau's True Strength Index. It double smooths momentum and then presents a signal line.

    Blau was fascinated by double, triple smoothing changes in momentum and how a system could be built around them.


    Basically, if the TSI is above zero and rising (above signal line) then the market is up. If the TSI is above zero but stepping down and below the signal line then you can't tell if the trend has changed or its just a consolation.

    Same on the down side. Just reversed.

    So in his deal you only trade when the TSI was > 0 and above the signal line or when the TSI < 0 and below the signal line. He says that is the only time when you have a clear sense of what the market is(has) doing(done).

    John


    First: Create the Function TSI:

    Code:
    [color=blue]
    // Function: TSI
    
    [LegacyColorValue = true]; 
    
    inputs: 
    	Price(NumericSeries), 
    	Raw(NumericSimple), 
    	Smooth(NumericSimple),
    	U(NumericSimple);
    
    vars: 
    	NetChg(0);
    
    	NetChg = Price - Price[1];
    
    Value1 = 100 * XAverage(XAverage(XAverage(NetChg,Raw),Smooth),U);
    Value2 = XAverage(XAverage(XAverage(AbsValue(NetChg),Raw),Smooth),U);
    
    if Value2 <> 0 then
    	TSI = Value1 / Value2
    else
    	TSI = 0;
    [/color]
    
    Then create the TSI indicator.

    Code:
    [color=blue]
    // Indicator: TSI
    
    [LegacyColorValue = true]; 
    [SameTickOpt = True];
    
    inputs: 
    	Price(Close), 
    	Raw(26), 
    	Smoothed(12),
    	Signal(5),
    	OB(20),
    	OS(-20);
     
    Plot1(TSI(Price, Raw, Smoothed,1), "TSI");
    Plot2(XAverage(Plot1,signal),"XAvg ");
    Plot3(OB,"Overbought");
    Plot4(OS,"Oversold");
    [/color]
    


    PS. The colors are set for grey charts.
     
    #158     Jan 31, 2009
  9. Hi Tums,
    How would you create the SMI as a straight ribbon instead of the usual presentation? The reason I ask is I have it that way on Amibroker and would like to have the same presentation in Easylanguage. Thank you.


    Tim
     
    #159     Jan 31, 2009
  10. Tums

    Tums

    Do you mean it like this?

    <img src=http://www.elitetrader.com/vb/attachment.php?s=&postid=2284919>


    you need to include the SMI function from the above post.

    Code:
    [color=blue]
    // SMI in line format
    
    Input:
    Length1(13),
    Length2(25),
    Length3(2),
    UpColor(green), 
    DnColor(magenta);
    
    Value1 = SMI(length1,length2,length3);
    plot1( 0, "SMI" );
    
    If value1>value1[1] then 
    SetPlotColor[1](1,upcolor)
    else 
    SetPlotColor[1](1,dncolor);
    [/color]
    

    p.s. to set the line at the bottom of the pane,
    Go to Format> Study> Scaling
    under Scale Range, select User Defined:
    set Maximum to 50, Minimum to -1

    .
     
    #160     Jan 31, 2009
Thread Status:
Not open for further replies.