// Definition of code parameters
DEFPARAM CumulateOrders = True // Cumulating positions deactivated
// Conditions to enter long positions
indicator10 = Average[200](close)
indicator22 = Average[100](close)
c10 = (indicator10 > indicator22[1])
indicator1 = CALL bolcam(close)
c1 = (indicator1 < 0)
indicator2 = RSI[14](close)
c2 = (indicator2 < 45)
indicator3 = RSI[18](close)
indicator4 = BollingerDown[50](RSI[18](close))
c3 = (indicator3 < indicator4[1])
indicator5 = RSI[20](close)
indicator6 = BollingerDown[10](RSI[20](close))
c4 = (indicator5 CROSSES OVER indicator6)
IF c10 and c1 AND c2 AND c3 AND c4 THEN
BUY 1 CONTRACT AT MARKET
ENDIF
// Stops and targets
SET STOP pLOSS 20
SET TARGET pPROFIT 10