Thanks I had this script before:
function run()
{
var *ClosePrice = series(priceClose());
var *EMA17 = series(EMA(ClosePrice,17));
var *EMA35 = series(EMA(ClosePrice,35));
if((crossUnder(EMA17,EMA35)) and (RSI(ClosePrice,16) < 50))
enterShort();
if(crossOver(EMA17,EMA35) and (RSI(ClosePrice,16) > 50))
{
enterLong();}
}
However, I did not know how to enter a trade if EMA's crossed and then the RSI turned positive after the cross.
You are saying that using the delay it will trigger a buy if RSI turns up after a positive ema cross has occurred in a prior period? What if I wanted to add one more condition and get executions only when all 3 are met? Thanks a lot for your help