Multitimeframe execution order

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20696 quote
    ck1066
    Participant
    Average

    Hi,

    Is there an order to how multitimeframe statements are executed i.e. Higher time frame down to lower time frame, or simply in the order listed?

    For example if I had the following screener code below, will it be executed in the order coded?

    TIMEFRAME(15 minutes)
    ma1=Average[50](close)
    stochk=Stochastic[8,3](close)
    stochd = Average[3](Stochastic[8,3](close))
    a1=close>ma1
    a2=(stochk>stochd)
    
    TIMEFRAME(5 minutes)
    ma2=Average[50](close)
    stochk1=Stochastic[8,3](close)
    id1= CALL "MyIndicator(priceaction-stoch)"
    b1= close>ma2
    b2=(id1=1) or (stochk1 crosses over 20) 
    
    screener (a1 and a2 and b1 and b2)
    #20948 quote
    random45689
    Member
    New

    As far as I know code is always executed in the order written which is what I am seeing happening in strategies I am creating/testing (big differences in outcome depending on the order/placement of code!) so not sure the TIMEFRAME term would change anything but I could be wrong/hopefully someone else can confirm!

    #22121 quote
    ck1066
    Participant
    Average

    Can anyone else contribute to this question, ideally PRT?

    #22141 quote
    Nicolas
    Keymaster
    Master

    I would say it is read and executed in the order listed. Why is it so important to you? You are not using any of the boolean conditions from the other timeframe into the other one.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Multitimeframe execution order


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
ck1066 @ck1066 Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Nicolas
9 years, 1 month ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 01/11/2017
Status: Active
Attachments: No files
Logo Logo
Loading...