Power Trading (a trading system based on the standard deviation)
I want to share with you a trading system that is based on a difference equation.
In this case, the difference equation describes the difference between two prices.
The basic question was: how can I describe the difference between two prices or in formula form:
Close = Close[n] + ???
What is it that causes the current rate to differ from the previous rate, what causes the price change?
There are many different opinions about this, for example:
1: It is a deterministic process (it is already fixed)
2: It is the psychology of the investor
3: It is purely economical
4: It is a random, unpredictable stochastic process
5: etc.
The change of course is probably the result of a mix of the above views… 🙂
Because you can’t figure this out, the next question is: how can I describe this change of course, in formula form, in the best possible way?
To make a very long story short, it turned out that the standard deviation is the best (?) way to describe the price change.
The difference equation then looks like this:
Close = Close[n] + Std[n](Close[n])
Or for falling prices:
Close = Close[n] – Std[n](Close[n])
Example:
Suppose you want to build a LONG system for the Nasdaq, then your code, in its simplest form, can look like this:
DefParam CumulateOrders = False
If Close > Close[n] + Std[n](Close[n]) then
Buy 1 contract at Market
EndIf
If Close < Close[n] – Std[n](Close[n]) then
Sell at Market
EndIf
The only variable in this system is the period [n] and you can of course optimize this for the different markets. It turns out to be a robust system.
It would be nice if we could use all the knowledge from the forum regarding optimization of the system (TF, Money Management, Stops, MTF, etc.) so that we can all benefit from it.
DefParam CumulateOrders = False
If Close > Close[n] + Std[n](Close[n]) then
Buy 1 contract at Market
EndIf
If Close < Close[n] - Std[n](Close[n]) then
Sell at Market
EndIf