Signal generated order

How do I generate based on a signal?

For example, say a stock currently has an RSI of 50 and I wish to enter a buy order if it dips below 31.
I wish to enter this condition while its RSI is above 31.
and subsequently sell the stock at a higher RSI value.
will this order persist after being completed on both sides of the trade?

How would this be achieved?

Never mind this is simple enough

@alfredaita Glad you figured it out. Post back if you need anything else.

Ok will do. I still take exception to one issue you covered. However I’m going to look at it in more detail before getting before responding
Alfred