Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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