Hello,
I am a newbie to the thinkscript and trying to creates a OCO buy order using RSI Study.
My idea is create a buy order using RSI utilizing the extreme sell of conditions also like :
if (RSI crosses above 10, 15, 20, 25 or 30) then buy the specified quantity
I wrote the code as below (I added it from the order template using the *=>Study=>Edit=>Think Script Editor)
def rsi = RSI(14, 70, 30, close, AverageType.WILDERS, yes);
def buyScan = (rsi crosses above 10 or rsi crosses above 15 or rsi crosses above 20 or rsi crosses above 25 or rsi crosses above 30) and ask is less than PivotPoints()."pp";
plot buySig = buyScan;
It is not showing any error but not working and when I go back to the Think Script editor window it is showing {tho=true}
Could you please help with this
I am a newbie to the thinkscript and trying to creates a OCO buy order using RSI Study.
My idea is create a buy order using RSI utilizing the extreme sell of conditions also like :
if (RSI crosses above 10, 15, 20, 25 or 30) then buy the specified quantity
I wrote the code as below (I added it from the order template using the *=>Study=>Edit=>Think Script Editor)
def rsi = RSI(14, 70, 30, close, AverageType.WILDERS, yes);
def buyScan = (rsi crosses above 10 or rsi crosses above 15 or rsi crosses above 20 or rsi crosses above 25 or rsi crosses above 30) and ask is less than PivotPoints()."pp";
plot buySig = buyScan;
It is not showing any error but not working and when I go back to the Think Script editor window it is showing {tho=true}
Could you please help with this