Written pn the English Forum to try to get more answers.
The screener,as far as I understood, is limited to an history of 256 bars. Any inquiry exceeding that history will give bad results or retrun an error.
MultiTimeFrame is possible in the screener.
I would like to know how many bars can be used in other time frames that the one of the main window. For example,
main timeframe daily
with the Timeframe instruction, can I also use 256 bars in the weekly mode
Are there any specific conditions to be used on teh chart windows
I give you here an example of a screener code
Screener example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
TimeFrame(weekly)
foriweekly=0to250do
$Highweekly[iweekly]=high[iweekly+1]
next
TimeFrame(daily)
// Initialisation de la condition C à False
C=0
i=0
WhilenotCandi<250
c=closecrosses over$Highweekly[i]
i=i+1
Wend
Screener[C]
Will the above screener give me the actions where the actual dailclose has been crossing over one of the weekly highest of the las 250 weeks, which woudl give me a much larger history for my analysis that the daily 250 bars.
Hope my english is clear to everybody and awaiting your answers…
That’s right, 256 bars history and for the PRT premium version 1024 bars.
So, you can indeed use these 250 weeks in your screener…
Pay attention because 250 weeks is almost five years, and I don’t know if you will get many results when the current price has to be higher than the “highest high” of the past 5 years… 😉
You are fully right, but in fact I am not looking at the timeframe of 250 bars (weeks) but only if one of the highest has been crossed over. In other words, if the close crosses over highest[72](high) calculated in weekly, I want it to be reported by the screener… For this I intend to store the values of the HighestWeekly in an array, and have a loop with tests all the 250 values… as well as makes sure that the Highest reported is a local Maximum.
Thanks for your answer in any case, enjoy simulating and hopefully also trading.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue