How do I apply a Weekly Time Frame override

Optuma Forums Optuma Scripting How do I apply a Weekly Time Frame override

This topic contains 1 reply, has 1 voice, and was last updated by Avatar Lester 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #51975
    Avatar
    Lester
    • Topics: 2
    • Replies: 1
    • Posts: 3

    I have an entry signal that works on both daily and weekly time frame.  I now wish to run this entry on a daily time frame, but still have my entry script use the weekly time frame criteria for entry.  My aim is to be able to use a daily time frame exit signal rather than the weekly one.

    Here is the signal that works

    UpDiff = Close() – Close(OFFSET=1);

    DownDiff = Close(OFFSET=1) – Close();

    UpDay = Acc(IF(UpDiff > 0, UpDiff, 0), RANGE=Look Back Period, BARS=14);

    DownDay = Acc(IF(DownDiff > 0, DownDiff, 0), RANGE=Look Back Period, BARS=14);

    IndexVal=100-(100/(1+(UpDay/(DownDay+0.0001))));

    NZU=IndexVal-55;

    UC=IndexVal-70;

    NeutUp=CLOSE()-(CLOSE()*(NZU/100));

     

    Close() > NeutUp and CLOSE(OFFSET=1) <= OFFSET(NeutUp, OFFSET=1)

    and CLOSE() > WVS()

     

    Unfortunately my time frame over ride using the WEEK() or the CLOSE(Week(PERIODAMOUNT=1)) does not produce any signals.  Does anyone know the correct way to implement a weekly time frame override?

    #52019
    Avatar
    Lester
    • Topics: 2
    • Replies: 1
    • Posts: 3

    Solved

    I have now sorted the problem. It would not work because the ACC() function on line four did not need an override.

    Lester

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close