I am concerned with the question of how investor behaviour behaves.
In a simple code below, I have found with the 4H timebase that Monday morning investor behavior is different than Tuesday morning, compare the attachments.
If I set the time base to 4H, the result is much better.
I have the assumption that on certain weekdays and weekdays people have different investor behaviour at certain times.
I’d like to use that in trading.
So I wanted to ask whether someone here, or someone else, has an indicator or is able to program an indicator that, similar to the seasonal patterns from the Pathfinder system, reflects the timebased patterns during the week in investor behavior.
P. S. The main code is the “negative”, i. e. the short version of the “DailyOpenLong”, which lives from the RepulseStop in a way that is not generally recognized.
First : Storm with timebase, german time, gmt +1, Dax 1 Euro 4H
Second (next post): Storm without timebase, german time, gmt +1, Dax 1 Euro 4H
Please check it yourself.
//-------------------------------------------------------------------------
// Maincodce STORM ... ShorT On Rising Markets
// 4H Short Repulse Timebased
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
// Haupttode : 4H Short Repulse
//-------------------------------------------------------------------------
// Dax 1 Euro Mini
// TimeFrame 4H
// maincode: 4H Short with Repulse-Stop
// created by JohnScher
//
defparam flatafter = 210000
defparam cumulateorders = true
Once position = 1
c1 = cci [21] (close) >-95 // to get out some special situations
c2 = TR (close) >24 // nice condition
c3 = repulse [3] (close) <0.1 // mine
t1 = dayofweek = 1 and time = 130000 // timebase
t2 = dayofweek = 1 and time = 170000 // timebase
t3 = dayofweek = 2 and time = 090000 // timebase
t4 = dayofweek = 2 and time = 130000 // timebase
t5 = dayofweek = 3 and time = 130000 // timebase
t6 = dayofweek = 4 and time = 090000 // timebase
t7 = dayofweek = 4 and time = 130000 // timebase
t8 = dayofweek = 5 and time = 090000 // timebase
TradingTimeShort = t1 or t2 or t3 or t4 or t5 or t6 or t7 or t8
IF TradingTimeShort Then
IF c1 and c2 and c3 Then
IF Exponentialaverage [1] (close) < ExponentialAverage [4] (close) THEN
sellshort position CONTRACTS AT MARKET
Endif
Endif
Endif
If repulse [3] (close) >0.1 then
Exitshort at market
Endif
// not tested
// on other major indizes
// with Seasonalpatternmultipler from Pathfinder-Systems
// with some Re-invest-Stategies
// greets JohnScher
Translated with http://www.DeepL.com/Translator