There are anomalies, you can fix them in time, here’s one of them.
// Timebased Strategies
// created by JohnScher
// europe, berlin-time
TradingDay = Opendayofweek = 1
TradingTime = time = 080000
position = 1
// maincode
If TradingDay and TradingTime then
IF Exponentialaverage [1] (close) < Exponentialaverage [100] (close) and close < close [10] Then
buy position contracts at market
Endif
Endif
IF Longonmarket and barindex - tradeindex = 2 Then
sell at market
Endif
// sl tp more than 1 per cent pls
// that´s all
bluetime6– Please use the ‘Insert PRT Code’ button when putting code in your posts as it makes it easier for everyone else to read. I have tidied up your post for you! 🙂
What anomalies are you talking about please?
Anomaly:
Exponentialaverage [1](close)
CLOSE is more concise.
I mean anomalies like gold on Friday afternoon. Gold falls and rises as it pleases. Nowhere a constancy. Except on Friday afternoon, when it usually rises. Compare here: https://www.prorealcode.com/prorealtime-trading-strategies/xauusd-gold-trading-strategy-friday/
The ordinary is therefore a-normal.
And a similar thing happens on Monday morning in the Dax. It usually rises, especially if it is below stronger moving averages and/or closing prices.
// Timebased Strategies
// created by JohnScher
// europe, berlin-time
TradingDay = Opendayofweek = 1
TradingTime = time = 080000
position = 1
// maincode
If TradingDay and TradingTime then
IF Exponentialaverage [1] (close) < Exponentialaverage [100] (close) and close < close [10] Then
buy position contracts at market
Endif
Endif
IF Longonmarket and barindex - tradeindex = 2 Then
sell at market
Endif
// sl tp more than 1 per cent pls
// that´s all
There are still more of these anomalies that one can fix in a temporal relation. Also in the Dax. So my question is whether someone has observed something similar, if so in which index or forex and which time periods?
kind regards
addendum
The code is for 1H.
The exit can also be written like this
IF Longonmarket and time = 110000 Then
sell at market
Endif
It’s not anomalies, it’s just that each asset has its own time cycles. Historically Best period for index is more or less from november to january for exemple. And during the day, there are also cycle, for the dax 9h-11h30, 11h30-15h30, 15h30-16h, 16h-17h30…don’t forget also that most important statistics or meetings are scheduled at fixed days of the week (like fed/bce meetings, non farm payroll etc)