From theory to practice - page 432

 
Evgeniy Chumakov:


Maybe ticks at a certain reading interval will work, but who knows, we'll see Alexander's results.


He tested it last week and everything was fine, but on the minutes this week is also good, but on the long term it is worse.

Is it a grail, which has been described in 430 pages?

There are better signals in the trading books.

You know, like MAs and stuff like that....

I advise you to reread the thread. You've got the wrong code.
 
Renat Akhtyamov:
I suggest you reread the thread. That's not what you put into the code.


Well, Alexander looked, as he said, so he did.

 
Evgeniy Chumakov:


The formula has already been written here many times.



Here is the code. This is what Alexander has from the second graph. I will not publish what is on the third graph without Alexander's permission, as he has not written anything about it here.

I did not see a modulus before addition in your formulas (Alexander's formula had SUMM(ABS(return)), you have SUMM(return). In addition, I did not understand why the timeframe was a minute one, while Alexander's was about one second step.

 
bas:

Then it should still be called a process with memory. Unfortunately, this is the accepted terminology, although I don't like it either.

For processes with "partial" memory, it seems, simply there are no terms, because the academic science has not yet grasped such phenomena) By the way, precisely for this reason all "Nobel laureates" etc. -physicists-mathematicians and can't earn anything :)

In random process theory, so-called memory is a consequence of stochastic dependence between process values (random variables) at different points in time. It does not make much difference how far apart these moments are. A random process is said to be given if all possible finite dimensional distributions are given and hence we can always calculate the dependencies between its values at any given time and easily see what and when it remembers. This is in theory. When it comes to practice (statistics on random processes) we always find that we have much less data than we need to reconstruct distributions. Therefore we always have to resort to all sorts of simplifications and assumptions, and avoid desirable but unsubstantiated conclusions. Besides any well working theory will sooner or later change the market in such a way that it becomes unprofitable (there are famous examples).

I think that laureate physicists, like other people, do not earn anything (or sometimes do) for roughly the same reasons :)

 
Vladimir:

I didn't see your formulas taking a modulus before adding (Alexander had SUMM(ABS(return)), you have SUMM(return).

double SummaReturn = 0;   // Сумма приращений в окне 240 минут
double SummaReturnAbs = 0;

for(int i = 0; i < 240; i++){
SummaReturn = SummaReturn + ( iOpen(NULL,PERIOD_M1,i) - iOpen(NULL,PERIOD_M1,i + 1) );
SummaReturnAbs = SummaReturnAbs + ( MathAbs( iOpen(NULL,PERIOD_M1,i) - iOpen(NULL,PERIOD_M1,i + 1) ) );
}


double Interval_Upper = (3 * (SummaReturnAbs/MathSqrt(240))); // верхний доверительный интервал
double Interval_Lower = -(3 * (SummaReturnAbs/MathSqrt(240)));  // нижний доверительный интервал
 
Evgeniy Chumakov:

Sorry, I overlooked it.

But still... Did Alexander start working on minute steps? You do understand that Abs (Open(i)-Open(i+1)) with one minute increments is not at all equal to the sum of Abs(return) for 60 seconds included in a minute?

 
Vladimir:

Sorry, I overlooked it.

But still... Did Alexander start working on the minutes?


He asked to check on the minutes. No need to read the thread from the last post, then everything will be clear.

 

Price

Procreation


The growth graph looks like a soundtrack doesn't it?

 

How does this track sound? Using some program found on the net I converted this picture to sound files Noise.wav and Sine.wav


I attach archive with files and program.


Note, before listening make speakers volume to minimum, otherwise I am not responsible for your health!

Files:
Downloads.zip  3836 kb
 


Currency: USD Leverage: 1:500 2018 July 4, 16:03
Closed Transactions:
TicketOpen TimeTypeSizeItem PriceS / LT / PClose Time PriceCommissionTaxesSwapProfit
1968810022018.07.04 13:18:29balanceDeposit1 000.00
1968822672018.07.04 13:33:48sell0.10eurusd.e1.163861.164850.000002018.07.04 13:48:061.16374-0.470.000.001.20
1968839982018.07.04 13:59:17sell0.10eurusd.e1.164251.165230.000002018.07.04 14:05:271.16385-0.470.000.004.00
1968853152018.07.04 14:13:00buy0.10eurusd.e1.163701.162700.000002018.07.04 14:24:581.16382-0.470.000.001.20
1968863322018.07.04 14:27:19buy0.10eurusd.e1.163771.162770.000002018.07.04 14:30:451.16389-0.470.000.001.20
1968891962018.07.04 15:06:04buy0.10eurusd.e1.163711.162710.000002018.07.04 15:06:241.16390-0.470.000.001.90
1968902562018.07.04 15:20:00sell0.10eurusd.e1.164211.165280.000002018.07.04 15:59:401.16419-0.470.000.000.20
-2.82 0.00 0.00 9.70
Closed P/L: 6.88
Open Trades:
TicketOpen TimeTypeSizeItem PriceS / LT / P PriceCommissionTaxesSwapProfit
No transactions
0.00 0.00 0.00 0.00
Floating P/L: 0.00
Working Orders:
TicketOpen TimeTypeSizeItem PriceS / LT / PMarket Price
No transactions
Summary:
Deposit/Withdrawal: 1 000.00 Credit Facility: 0.00
Closed Trade P/L: 6.88 Floating P/L: 0.00 Margin: 0.00
Balance: 1 006.88 Equity: 1 006.88 Free Margin: 1 006.88
Details:

Gross Profit: 7.15 Gross Loss: 0.27 Total Net Profit: 6.88
Profit Factor: 26.48 Expected Payoff: 1.15
Absolute Drawdown: 0.00 Maximal Drawdown: 0.27 (0.03%) Relative Drawdown: 0.03% (0.27)
Total Trades: 6 Short Positions (won %): 3 (66.67%) Long Positions (won %): 3 (100.00%)
Profit Trades (% of total): 5 (83.33%) Loss trades (% of total): 1 (16.67%)
Largest profit trade: 3.53 loss trade: -0.27
Average profit trade: 1.43 loss trade: -0.27
Maximum consecutive wins ($): 5 (7.15) consecutive losses ($): 1 (-0.27)
Maximal consecutive profit (count): 7.15 (5) consecutive loss (count): -0.27 (1)
Average consecutive wins: 5 consecutive losses:


Forward Testing! True, I have launched it on a demo account.


Alexander gives good advice, but we have to implement it properly. The formula is the same, but the approach is different. All variables are dynamic.


P.S. It has nothing to do with my previous posts where converted price charts are concerned. I had not elaborated on that idea yet.

Reason: