Even / Odd decomposition
Forums › ProRealTime English forum › General trading discussions › Even / Odd decomposition
- This topic has 21 replies, 4 voices, and was last updated 2 years ago by JS.
-
-
08/25/2021 at 3:05 PM #176215
Most systems are not lineair, a simple example is a system based on a EMA…
Try your system with 1 contract and than with 10 contracts and you will see that your profit is also 10 times higher because it is lineair.
Or try your system in a other timeframe, for example current timeframe = 5 min and your period (x) = 1000 (5 x 1000 = 5000) then use a timeframe of 10 min and a period (x) of 500 (10 x 500 = 5000) and you will see that the characteristics of the system don’t change (because it is lineair)
08/25/2021 at 4:46 PM #17622808/25/2021 at 5:13 PM #17623008/26/2021 at 8:48 AM #176260Try your system with 1 contract and than with 10 contracts and you will see that your profit is also 10 times higher because it is lineair.
I still don’t get what you are saying here … profit is directly (linearly) related to number of Contracts traded with all / any system.
- 1 Contract @ £1 per point and price moves 100 points … profit = £100.
- 10 Contacts @ £1 per point and price moves 100 points … profit = £1000.
08/26/2021 at 9:36 AM #176267Or try your system in a other timeframe, for example current timeframe = 5 min and your period (x) = 1000 (5 x 1000 = 5000) then use a timeframe of 10 min and a period (x) of 500 (10 x 500 = 5000) and you will see that the characteristics of the system don’t change (because it is lineair)
JS, I tend to say : Prove it. I mean, by means of a backtest of your choice. Just change the time frame as per your suggestion – use 5 min, 10 min and 15 min – don’t change anything else. Both are allowed to start at the same second.
I think you won’t succeed …the characteristics of the system don’t change
In theory and with math, yes. But in practice you won’t be able to show double and triple results. It is not even so that the longer the period of sampling, the more close all will be. Try it. It could be fun.
08/26/2021 at 1:11 PM #176295@GraHal: this is not true for all / any system but only for lineair systems (including lineair MM)
@PeterSt: see https://www.prorealcode.com/topic/digital-signal-processing-defining-using-the-difference-equation/06/25/2022 at 6:39 PM #196099The equations are correct, but after progressive insight, I should have used arrays here as well.
The most important point here is that you can dissect a signal into components, even- and odd, and this decomposition is valid when the addition (superposition) of the components forms the original signal.
When we look in the x-y plane, a signal has an “Even symmetry” when it can be mirrored around the y-axis and an “odd symmetry” when it can be mirrored around the x-axis AND its values is opposite to the original signal.
You can also view this as a rotation around point zero (decomposition is part of the concept of circular symmetry).Even Odd12345678910111213141516171819202122DefParam DrawOnLastBarOnly = trueUnSet($Xe)UnSet($Xo)UnSet($Xn)DrawHLine(Close[N/2])DrawVLine(BarIndex[N/2])$Xe[0]=Close[0]$Xo[0]=0$Xn[0]=Close[0]N=1000For i = 1 to N-1$Xe[LastSet($Xe)+1] = (Close[i] + Close[N-i])/2$Xo[LastSet($Xo)+1] = (Close[i] - Close[N-i])/2$Xn[LastSet($Xn)+1] = $Xe[i] + $Xo[i]DrawPoint(BarIndex[i],$Xe[i],2) Coloured(0,255,0)DrawPoint(BarIndex[i],$Xo[i]+Close[N/2],2) Coloured(255,0,0)DrawSegment(BarIndex[i-1],$Xn[i-1],BarIndex[i],$Xn[i]) Coloured(0,0,255)NextReturn -
AuthorPosts
Find exclusive trading pro-tools on