Formula for intraday High Low

Discussion in 'AmiBroker' started by wahabdeen, Nov 22, 2009.

  1. wahabdeen

    wahabdeen Member

    Joined:
    Dec 18, 2007
    Messages:
    45
    Likes Received:
    15
    Trophy Points:
    8
    Dear sir
    I am giving Metastock Formula for Intraday High low signal. Can it be written in AFL. If so kindly do so.

    Formula for intraday High Low
    ----------------------------
    { Time Inputs }
    StHour:=Input("start Hour",0,23,6);
    StMin:=Input("start Minute",0,59,0);
    EnHour:=Input("last Hour",0,23,9);
    EnMin:=Input("last Minute",0,59,0);

    { Time period }
    start:=Hour()>StHour
    OR Hour()=StHour AND Minute()>=StMin;
    end:=Hour()<EnHour
    OR Hour()=EnHour AND Minute()<=EnMin;
    filter:=
    start AND (end OR (start AND Alert(start=0,2)));

    { Start/End time signals }
    start:=filter AND Alert(filter=0,2);
    end:=filter=0 AND Alert(filter,2);

    { Hi/Lo values }
    Hi:=ValueWhen(1,filter,HighestSince(1,start,H));
    Lo:=ValueWhen(1,filter,LowestSince(1,start,L));

    { Plot on price chart }

    =======End======
    Thanks in advance.
     
  2. vkunisetty

    vkunisetty Active Member

    Joined:
    Mar 20, 2008
    Messages:
    81
    Likes Received:
    113
    Trophy Points:
    33
    wahabdeen,
    here is the code for Day"s Hi Lo
     
    rajeabc, santoshkj and wahabdeen like this.
  3. niklravi

    niklravi Banned

    Joined:
    Nov 24, 2006
    Messages:
    91
    Likes Received:
    13
    Trophy Points:
    8
    [sir
    what u r going to do with this how low?pl explain


    ravi
     
  4. Karanm

    Karanm Active Member

    Joined:
    Oct 18, 2009
    Messages:
    410
    Likes Received:
    192
    Trophy Points:
    43
    Kindly explain in detail how and where to feed this formula in Metastock and find Intraday High & Low.
     
  5. shripad1206

    shripad1206 New Member

    Joined:
    Oct 20, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    how to upload on pc sir let me know
     
  6. rkkarnani

    rkkarnani Well-Known Member

    Joined:
    Sep 10, 2004
    Messages:
    4,580
    Likes Received:
    4,439
    Trophy Points:
    113
    Did not work on my version of MS!! Seems have erred somewhere!
     

  7. shrividhya srinivasan

    shrividhya srinivasan Active Member

    Joined:
    Jul 2, 2012
    Messages:
    101
    Likes Received:
    44
    Trophy Points:
    28
    Location:
    Jamshedpur
    Hi,

    Can u please let me know how to get this done in EXCELL format.

    Thanks & regards... vidhya
     

Share This Page