- Joined
- 8 June 2008
- Posts
- 13,228
- Reactions
- 19,518
And to be clear, i have always had a SL embedded among the causes for exit, but it is only checked at the EOW so the not so bright idea to try to merge an intraday SL during the week.Just following system as designed without adding SL , and if exit based on friday data, i sell on Monday at open as per the whole of last year
a question for AB users:
I was going thru Skate Bolinger bands results and noticed average # bar helds on winners and losers were very small compared to mine, then realised weird figures on my weekly backtest results
, a share purchased 01/09/18 and sold 01/04/19 was quoted as being held more than 200 bars...actually realised in my results: 1 bar is day whereas Skate bar is as expected a week bar
Has anyone faced that issue, I obviously would like 1 bar= 1 weekly
I use amibroker 6.30.0
both in code:I haven't noticed this problem. Are you forcing things into weekly or using the settings set to weekly?
I've noticed that too and meant to ask but as I have no experience coding daily systems, it slipped my mind. When I set Periodicity to weekly and look at the backtest results it shows daily bars, e.g. 21 bars = 3 weeks. I'm still on Version 6.20 but I don't think that is it. There may be a setting somewhere.
Talking of settings, where do you select the day that shows on the weekly chart as Monday or Friday? It was mentioned here not long ago.
my initial guess would be if you are forcing sections of the code to be weekly then the report will give you bars based on the settings. but if you have the settings also in weekly then I'm not too sure.both in code:
TimeFrameSet( inWeekly );
and in setting weekly
I can try removing the weekly forced in the code..
Interesting, will check!!!Have you got "Pad and Align all data to reference signal $XAO" Ticked?
Toggling this on/off changes bar numbers in my weekly backtest report.
Did not work,, a 6 months holding is listed as 119 bars (roughly the number of open days)Have you got "Pad and Align all data to reference signal $XAO" Ticked?
Toggling this on/off changes bar numbers in my weekly backtest report.
Did not work,, a 6 months holding is listed as 119 bars (roughly the number of open days)
Is your second screen shot supposed to be daily?Strange. I have Periodicity set to Weekly and nothing in my code other than
if( Interval() != inWeekly )
{
Title = EncodeColor( colorRed ) + " Weekly Only";
}
if( Interval() == inWeekly )
{
My code.
just as a visual reminder that this is a weekly system.
View attachment 100769 View attachment 100770
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?