Hi. So, I found this custom indicator (viewtopic.php?f=17&t=1126) and I was wondering if it can be turned into a strategy with the following rules:
When VR value of the closing candle crosses above the 2 threshold a trade should be entered. If the closing price of that candle < previous candle (that is: a drop in price ocurred) a Sell order is entered, if the opposite is true (a rise in price ocurred) a Buy order is entered. Now, exits should be made on the basis of time (i.e., the trade should be closed after a given number of periods or candles have passed). The implementation of the exit criterion is what interests me the most. I am not sure how exactly this can be done...
I will appreciate very much any help ! Thanks in advance.