How to get buying price in "Exit Long Script" field

I want to set a value in “Buy Script” and access it in “Exit Long Script” field.

Usecase: Lets say i bought a stock in 100 rs , i want to sell it in 2 % profit or 1% loss of buying price. In this case how do i get the buying price in “Exit Long Script” field ?

1 Like

It is not possible to code in tradescript, as per above . if you have condition/strategy on OHLC we can code., you have to place stoploss or buy/sell manually

2 Likes

Hi Geek,
Is it possible to code the exit condition to 3:15pm. in both long and short.