Need help with a strategy

Is it possible to write a code for

BUY

  1. Price crosses day’s high

  2. Bids > Offers

SELL

  1. Red Candle follows a Green Candle

hElLO tRaDeR,

SELL SCRIPT

REF(CLOSE,1) > REF(OPEN,1) AND
CLOSE < OPEN

There is no function to use Bids and Asks data with Tradescript language.

Finding HIGH OF THE DAY is a bit tricky,  you can use the following function:

CLOSE = HHV(n)

n = number of back testing candles eg: CLOSE = HHV(7) will check if close price is the highest value of recent 7 candles.

value n needs to be calculated manually depending on the time of the day and the scanning time frame used.

Let me know how it works out .