Need help please

 

Hi , 

I want to script for my stratge which is simple :


// Conditions to enter long positions

indicator1 = RSI[14](close)

c1 = (indicator1 > 50)


IF c1 THEN

BUY 1 SHARES AT MARKET

ENDIF


// Conditions to enter short positions

indicator2 = RSI[14](close)

c2 = (indicator2 < 50)


IF c2 THEN

SELLSHORT 1 SHARES AT MARKET

ENDIF


// Stops and targets

SET STOP pTRAILING 1.5