|
[MT_E and I] suggestion for a trading system (daily H/L + MTF Stochastic )
hi guys
*
I hope you help me in building an EA for this system , i tried to write code for this .. but it didnt work with me .. and i have a problem in backtesting the mtf stochastic if anyone can help or guide me how to do.
*
the strategy i will describe here is taken from 2 strategies :
1) trading the high / low of the previous day(but in the opposite direction ).
2)trading the mtf stochastic
*
timeframe:
15 minute timeframe
*
entry for sell:
with the open of the new candle in the 15 minute timeframe below the previous day high.
*
before placing the order
the previous candle must*be 1)*overbought -> stochastic 15m,30m,1hour must be >= 80 at that candle .
AND********
*************************************** *2)the high of*it must be greater than or equal previous day high
*
*
close/Exit sell order (TP / SL):
rules for exit sell order :
*
stochastic 15m,30m,1hour overbough ->* <= 20
OR
stochastic 4hour overbough ->***** <= 20
OR
stochastic 15m,30m,1hour,4hour all goes up at the same time ( >=20 and <=80)
*
*stochastic settings : 5 3 3
*
for placing a BUY order , the previous conditions must be reversed :
*
before placing the buy order , the previous candle must be oversold (stochastic of the three timeframes must me <= 20 and the low of this candle must be less than or equal to the previous day low)......
*
*
described by code :
*
double Buy1 = iOpen(NULL, 0,* 0);
double Buy2 = iLow(NULL,1440,1);
double Buy3 = iLow(NULL, 0,* 1);
*
double k1m15 = iStochastic(NULL, PERIOD_M15, 5, 3, 3, MODE_SMA, 0, MODE_MAIN,*1);
double k1m30 = iStochastic(NULL, PERIOD_M30, 5, 3, 3, MODE_SMA, 0, MODE_MAIN,* 1);
double k1h1 = iStochastic(NULL, PERIOD_H1, 5, 3, 3, MODE_SMA, 0, MODE_MAIN, 1);
double k1h4 = iStochastic(NULL, PERIOD_H4, 5, 3, 3, MODE_SMA, 0, MODE_MAIN,* 1);
*
if (Buy1 >= Buy2 && Buy3 <= Buy2 && k1m15<20&&k1m30<20&&k1h1<20) Order = SIGNAL_BUY;
*
waiting ur comments and suggestions
*
best regards
*
Rami
|