Question from TS EasyLanguage newbie

Discussion in 'Automated Trading' started by SonnyPlunger, Oct 2, 2008.

  1. THANKS!

    I will use the code tomorrow and see how it works.

    I appreciate it.
     
    #11     Oct 2, 2008
  2. That did it. Works only when the RSI drops below and not at any other time. Exactly what I wanted

    THANKS!
     
    #12     Oct 3, 2008
  3. Tums

    Tums

    yw
     
    #13     Oct 3, 2008
  4. Hi there, I'm in trouble ... again. This time I'm trying to make a ShowMe for a 1-bar VOLUME-divergence with a price-high.

    I want a dot on the current bar if the current bar is higher (or equally high) as the previous bar, and volume is lower than (or equal to) the previous volume-value.

    Something very simple like this:

    Code:
    If High >= High[1] AND Volume < Volume[1]
    	then Plot1(High, "Vol")
    	Else NoPlot(1) ;
    
    
    This works on most of the bars ... but a few errors creep in ... for some reason.

    In the enclosed example for Microsoft, 60-minute in September, most of the divergences are correct (the green vertical lines showing the correct ones) ... but with 2 errors (the two red vertical lines).

    Can anybody help me one this one?

    Many thanks from SonnyPlunger :cool
     
    #14     Oct 8, 2008
  5. Tums

    Tums

    That's because of a legacy issue...

    in EasyLanguage, the keyword VOLUME has a different meaning than what we used to...

    in EasyLanguage, VOLUME means Up Tick trades. (i.e. you are getting approx half the volume.)

    If you want volume in the traditional sense, you will need to use the keyword TICKS.




    Don't ask me why ticks is NOT ticks. ;-)>
     
    #15     Oct 8, 2008
  6. Hi Tums,

    That worked like a charm. Thanks a lot !!!

    Regards from SonnyPlunger :cool:
     
    #16     Oct 8, 2008