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)
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!
Can anyone else contribute to this question, ideally PRT?
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.