Buy if rsi goes below 25 in one hour chart and sell if rsi goes above 65 in 15 mins chart(I ll sell only those what i purchased below 25 rsi) please suggest me code
If your question is related to using Tradescript on Pi :
You can compare only candlestick conditions across the same timeframe using Tradescript.
Comparing RSI of 1 hour candle to the RSI of 15 min candle is not possible with Tradescript.
RSI(CLOSE, 14) < 25
RSI(CLOSE, 14) > 65
Create 2 separate scanners with 1hr and 15min interval, or use the codes as EA in 2 separate charts.