Announcement

Collapse
No announcement yet.

Exponential Volume EFS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exponential Volume EFS

    I have recently searched file sharing for EXPONENTIAL VOLUME and the only thing that looked like it was

    " ema_vm.efs" in "TSSUPPORT"

    However, it doesnt plot it WITH the volume (so the lines go on top of the volume bars)....

    is there a study that plots it actually on volume??
    Attached Files

  • #2
    KuJax
    Not quite sure of what you are asking.

    If you want to plot Volume and an EMA of Volume then click here and download VolumeMA.efs.
    Through Edit Studies you can set the length, type of MA (Simple, Exponential, Weighted, Volume Weighted) and how the Volume bars are colored ie if based on price or Volume (see first image below)

    If instead you want to use the efs from TS Support and also plot the Volume bars then the attached revision of that efs should do what you want (see second image below).
    Alex



    Attached Files

    Comment


    • #3
      Alexis,

      The top picture is exactly what i'm talking about. I downloaded the EFS that you said. Thanks a lot! Exact!

      Comment


      • #4
        Alexis,

        We may have a little problem after going through it.

        I have gone in and edited line 17 to

        Code:
        setDefaultBarFgColor(Color.yellow, 1);
        This has made the color of the MA yellow. However, what the problem is, is that I want the volume bars RED for selling and GREEN for buying. The way it is setup it has BLUE for buying and RED for selling. I cannot find in the coding anything to edit that.

        Comment


        • #5
          KuJax
          The code that colors the volume bar is set up depending on what you select as the Source in Edit Studies and is contained in the following lines of the script.
          If you select "Price" as the Source then (see lines 52-59)

          PHP Code:
          if(Source=="Price"){
                  if (
          close() < open())
                      
          setBarFgColor(Color.RGB(255,0,0));//RGB value is for red
                  
          else if (close() > open())
                      
          setBarFgColor(Color.RGB(0,0,255));//RGB value is for blue
                  
          else if (close() == open())
                      
          setBarFgColor(Color.RGB(0,0,0)); //RGB value is for black  
              

          The same happens when Volume is the Source (lines 60-67)

          PHP Code:
          if(Source=="Volume"){
                  if (
          volume() < volume(-1))
                      
          setBarFgColor(Color.RGB(255,0,0));
                  else if (
          volume() > volume(-1))
                      
          setBarFgColor(Color.RGB(0,0,255));
                  else if (
          volume() == volume(-1))
                      
          setBarFgColor(Color.RGB(0,0,0));
              } 
          Instead of Color.RGB(255,0,0) you can also write Color.red
          In the EFS Help Center & Library you can find a list of the basic colors under EFS Function Reference->Colors, Constants and Flags->Colors
          Alex

          Comment


          • #6
            Okay, cool got it setup. Thanks a lot! This is a lot of help.

            Comment

            Working...
            X