Recent content by Vaib12345

  1. V

    I'm not able to run code in AFL where I need to satisfy 2 timeranges in short...please help ..

    I also tried this "Day()!=Ref(Day(), -1)" with Trend2...but still not working
  2. V

    I'm not able to run code in AFL where I need to satisfy 2 timeranges in short...please help ..

    No ..This is also not working... I think the issue is that system is getting confused while reading 2 timeranges.. I mean..whether it should read Timerange first and then Timerange1 or the other way round.. Can we tell system to read the timerange on current day only..it might be reading one...
  3. V

    I'm not able to run code in AFL where I need to satisfy 2 timeranges in short...please help ..

    This is because.."Trend" is a buy indicator and Trend2 is for shorting only those stocks which were buy earlier.. so..my expression for short is that is stock was trading above x in "timerange" and later on in "timrange1" it came below Y then it should shortsell my stock. As it will...
  4. V

    I'm not able to run code in AFL where I need to satisfy 2 timeranges in short...please help ..

    Below is snapshot what I have created : Timerange = TimeNum() > 091500 AND TimeNum() < 094500 ; Timerange1 = TimeNum() > 133000 AND TimeNum() < 143000 ; Timeout = TimeNum() > 151500; Range = LLV(L,5) ; Range2 = HHV(H,5) ; X = one of the resistance level Y = one of the support level Trend =...
  5. V

    Need coding help in amibroker afl

    Thanks for your reply mickey !! It is not sell, it is buy..and that is the catch. Short = {Buy condition} and {(If timerange is between 133000 to 143000) and price < Y} What I'm trying to do is to create a trend following indicator. Stock will be bought if price is above certain level-say X...
  6. V

    Need coding help in amibroker afl

    Hi, I'm trying to code following strategy but unable to code for "short" because it includes buy condition as well. I have coded Buy,Sell & Cover but not able to code "Short". Please help. As in short, it is including 2 timeranges : between 091500 to 094500 between 133000 to 143000 afl is...
Back
Top