Is it possible to write a code for
BUY
-
Price crosses day’s high
-
Bids > Offers
SELL
- Red Candle follows a Green Candle
Is it possible to write a code for
BUY
Price crosses day’s high
Bids > Offers
SELL
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 .