Monday morning on day
Forums › ProRealTime English forum › ProBuilder support › Monday morning on day
- This topic has 6 replies, 2 voices, and was last updated 6 years ago by bluetime6.
-
-
01/14/2018 at 6:57 PM #59464
Is it possible to display the exact course of the last 100 mondays at 09.00 o´clock in the morning for example in the form of a graph? If so, in best case can we use the tick data? And how far does the tick data go back to PRT for a backtest?
kind regards
01/14/2018 at 8:01 PM #59468You do not need tick data.
12345If dayofweek = 1 and Time = 090000 thenclose090000 = closeendifreturn close090000 as "Kurs Montag 9:00"In a 1h or 4h chart, this may go back up to 10 years, I think.
close090000 does not yield the opening price at 9:00, but the last closing price the tick before. Both will be almost identical in most cases.
01/14/2018 at 8:40 PM #5946901/14/2018 at 9:05 PM #5947001/14/2018 at 9:12 PM #59471to graph the difference as a line only :
1234567891011121314If dayofweek = 1 thenIf Time = 090000 thenclose090000 = closeendifIf Time = 100000 thenclose100000 = closeendifendifIf TIME >= 100000 thendiff = close100000 - close090000endifreturn diff as "Differenz Kurs 10:00 - Kurs 9:00"You can change this in the chart manually to a histogram, I think, or look it up in the manual how to code this.
01/14/2018 at 10:14 PM #59475So let’s give it a shot.
Due to the historical prices of Monday 9 a. m. I want to take a position which corresponds to the average development of the last 1000 assembly, for example.
If it is possible to reproduce this in PRT, you can reproduce it for all other time periods, e. g. Tuesday 11:00.
And more precisely:
When I open a long position with this code on Monday 9:00 a. m., I can “see” that this position is growing due to the historical data.
I would like to use this indicator to determine whether the opening of the position is “worthwhile” under these conditions.Do you understand everything? Did I put it right?
kind
Translated with http://www.DeepL.com/Translator
Monday Morning on Dax1234567891011121314151617181920212223//-------------------------------------------------------------------------// maincode : Monday Morning om Dax// created by bluetime//-------------------------------------------------------------------------once Position = 1c1 = Opendayofweek = 1c2 = time = 090000c3 = close> openIF c1 and c2 and c3 Thenbuy Position contract at marketEndifSet Stop pLoss 40Set target pprofit 4001/14/2018 at 10:23 PM #59477addendum
So I want to know nothing more than whether opening a position on the basis of historical data is worthwhile at this point in time. With a fixed SL and TP or by closing the position at a certain time.
Because i open a postion with the same code on tuesday 09.00 the result ist this
-
AuthorPosts
Find exclusive trading pro-tools on