Plotting lines on yesterday's first candle

Discussion in 'AmiBroker' started by Lakshmi Prasad N, Nov 14, 2017 at 11:42 AM.

  1. Lakshmi Prasad N

    Lakshmi Prasad N New Member

    Joined:
    Sep 16, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Need help from experts in identifying and plotting lines on yesterday's first candle (opening range) on today's chart.
    Thanks in advance
     
  2. PUCHU_2500

    PUCHU_2500 Well-Known Member

    Joined:
    Mar 25, 2014
    Messages:
    680
    Likes Received:
    1,192
    Trophy Points:
    93
    Location:
    India
    Abhi issi se kaam chala lo, baad me expert will give you nice afl........

    BT = ParamTime ("YDAY OR", "09:29:59");
    NewDay = Day()!= Ref(Day(), -1);
    highestoftheday = HighestSince(newday,H,1);
    Lowestoftheday =LowestSince(newday,L,1);
    Closeoftheday=ValueWhen(TimeNum()==092959,C);
    DayH = TimeFrameGetPrice("H", inDaily, -1); DayHI = LastValue (DayH,1);// yesterdays high
    DayL = TimeFrameGetPrice("L", inDaily, -1); DayLI = LastValue (DayL,1); // yesterdays low
    DayC = TimeFrameGetPrice("C", inDaily, -1); // yesterdays close
    DayO = TimeFrameGetPrice("O", inDaily); // current day open

    do1=TimeFrameGetPrice( "O", inDaily, -1);

    Plot(do1,"",colorGreen,styleDots);




    _SECTION_END();
     
    LOVEENAJYOTHI likes this.
  3. LOVEENAJYOTHI

    LOVEENAJYOTHI Active Member

    Joined:
    Aug 26, 2015
    Messages:
    174
    Likes Received:
    126
    Trophy Points:
    43
    @PUCHU_2500 ji,
    above Afl thoda confused lag raha hai, matlab it looks like today's & yesterday's values ultapulta hogaya hain shaayad.
    lm outside now, aap agar inconvenience na ho toh zara ek baar chart pe check karenge please ?
    Thanks n Regards
     
  4. PUCHU_2500

    PUCHU_2500 Well-Known Member

    Joined:
    Mar 25, 2014
    Messages:
    680
    Likes Received:
    1,192
    Trophy Points:
    93
    Location:
    India
    BHAI,
    Mei coding me anari hoon, zero knowledge in afl, trying to help him with copied & edited afl.......pls, loveena, pls, help him.......
    [​IMG]
     
    Last edited: Nov 15, 2017 at 11:52 AM
Loading...

Share This Page