Is it possible to create this function to determine the allowed trade direction. Under the normal trade direction indicator the options would be. BUY, SELL, BOTH.
However I want it to automaticaly set the trade direction based on the reading froma a 4hr RSI level.
For example: Lets assume we are creating a stochastic strategy on the m15 candle. If 15 minute stochastic triggers a buy signal but the 4hr rsi is below 50 it would only allow sell trades. Likewise if the RSI on the 4hr goes above 50 then it will only allow buy trades.
This paramater should be able to tbe turned on and off if you want to apply it. Another feature of the paramater that need to be editied is the number of periods for the RSI indicator.
cheers
Iain