I want to buy a scrip if its price at 10 am is more than prev close and sell if it is lower than prev close. Please help me to write a code in PI for back test. Thanks.
Tradescript recognizes only candlestick conditions to give you alerts for trade entry or exit.
Trade Signals referencing to Entry Price or Entry Time cannot be programmed in Tradescript.