Hello,
I’m trying to create a simple buying order that uses weekly and daily data.
This is the code:
timeframe(weekly)
a=rsi[9]> 20
timeframe(daily)
b=rsi[9]>20
if a and b then
buy 10000 cash at market
endif
if rsi[9]>70 then
sell at market
endif
Thanks in advance,
Assaf
Please discard this topic. I couldn’t find how to delete it.
It seems correct, even though I’d check for an exit BEFORE the entry.
Let’s keep it. You simply unsubscribe it, if subscribed.