Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Stochastic + Boillinger Band Strategy

Hello!

I'm a trader and I've been using a profitable strategy in the FX market and Binary Options.
I need help to write down the code and back test it to see if can be really automated.

Basically we need to analyse 3 different timeframes (M30, M15 and M5 for Forex&Commodieties, M15, M5 and M1 for BO) in order to understand the best entry point for each trade.

The conditions for the entry are severals.
-Define if the asset is in UP or DOWN TREND in M30, and invest only in the direction of the market (CALL if up, PUT if down).
-To choose the entry point we need to have this conditions at the same time (UP TREND example, for DOWN we have just to reverse the terms):

-IF the price breaks the lower boillinger band AND the stochastic oscillator (low, settings %K=5 and %D=3) is in IPERSOLD and K and D cross.
-Closing of the order when-> STOP LOSS or STOCH >80 or break of the Upper Boillinger B.
Note: the aforementioned conditions have to be present BOTH in M30 and M15, M5 is only used to catch the best price (winning most of the time is a matter of pips).

As I use this strategy manually I also take a look if there are news, pivot points, resistance or or backups, historical prices etc...

So who can help me to write this down?

Ruben