A request that was addressed to ProRealTime:
Hello,
I am trying to build a Trading System that relies solely on the RSI.
in an ideal scenario, I would have a system that Buys when the RSI hits exactly a specific number (say for example 33.571) and Sells when the RSI hits another exact specific number (say for example 77.275).
So far I have unsuccessfully tried to use all Boolean Operators that I know (< AND >; CROSSES OVER; CROSSES UNDER) but the system would not do what I require.
Bottom line, I am looking to create a code that Buys or Sells when it hits a specific level.
Thank you
Suggestion for an anwser:
sellnumber=77.275
buynumber=33.571
MyRSI=RSI[14](close)
if not longonmarket and MyRSI crosses under buynumber then
buy at market
endif
if longonmarket and MyRSI crosses over sellnumber then
sell at market
endif