//GBPUSD STOCH RSI SMA Lose
DEFPARAM CumulateOrders = true//
tradestart = time > 090000
Tradeend= time < 210000
TP =50
SL =500
SMA5 = Average[5](close)
SMA10 = Average[10](close)
STOCH = Stochastic[14,3](close)
indicator4 = Average[5](STOCH)
RSIind = RSI[14](close)
// Conditions to enter long positions
c1 = (SMA5 CROSSES OVER SMA10)
c2 = (STOCH - indicator4 >10)//Stochastic upward momentum
c3 = (RSIind > 45)//RSI upward momentum
c5 = (average[10](STOCH)<45)// Stochastic not yet overbought
//Conditions to enter short
d1 = (SMA5 CROSSES UNDER SMA10)
d2 = (STOCH - indicator4 <-10)//Stochastic downward momentum
d3 = (RSIind < 55)//RSI downward momentum
d5 = (average[10](STOCH)>55)//Stochastic not yet oversold
IF c1 AND c2 AND c3 AND c5 AND tradestart AND tradeend THEN
BUY 2 CONTRACT AT MARKET
Set target pprofit TP
SET STOP pLOSS SL
IF d1 AND d2 AND d3 AND d5 AND tradestart AND tradeend THEN
SELL 2 CONTRACT AT MARKET
Set target pprofit TP
SET STOP pLOSS SL
ENDIF
//IF d1 AND d2 AND d3 AND d5 AND tradestart AND tradeend THEN
//SELLshort 1 CONTRACT AT MARKET
//Set target pprofit TP
//SET STOP pLOSS SL
//ENDIF