Announcement

Collapse
No announcement yet.

Hi/Lo of Pervious Bar

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

  • Hi/Lo of Pervious Bar

    I have searched both file share and the forums to find a study that will return the value of the previous bar high and previous bar close..

    Looking for something is actually shown as a numeric value either in the price pane or the value pane to the righthand side..

    Currently using a 133T chart together with a 3 min chart..Would make entries and exits easier if I could see the prices..

    Thanks!!

    Racer

  • #2
    Tacer
    The enclosed script should do what you asked
    Alex

    PHP Code:
    function preMain() {
        
    setPriceStudy(true);
        
    setStudyTitle("PrevHilo");
        
    setShowCursorLabel(false); 
    }

    function 
    main() {

    var 
    vH formatPriceNumber(high(-1));
    var 
    vL formatPriceNumber(low(-1));

    drawTextRelative(2vHvHColor.bluenullText.LEFT|Text.BOTTOM"Arial"10,"Hi");
    drawTextRelative(2vLvLColor.rednullText.LEFT|Text.TOP"Arial"10,"Lo");

    return;

    Comment


    • #3
      Thank You Alex!!!

      Perfection, as always!!

      Racer

      Comment

      Working...
      X