A request that was addressed to ProRealTime:
How to purchase only if the following day (i.e. the day when the purchase is done) the price is > +0,5% of the close of the previous day. Basically, I want that once the conditions are matched, the following day when the system does the purchase enters only if the price achieves a certain % relating to the close of the previous day (i.e. the day where the conditions are matched), otherwise the purchase shall not be executed.
Suggestion for an anwser:
X=0.5
c1=close > dclose(1)+(dclose(1)*X/100)
if not onmarket and c1 then
buy 1 share at market
endif