Need tradescript code for Exit at 1% loss

Hi,

(Reposting, as the notifications are not working properly on the site and probably AlgoGeek did not see my response)

I am looking out for an exit code based on entry price for backtesting purpose.

Suppose I have some code in the “Buy Script” section of Backtest.

It will trigger buy signals as per the condition entered.

Now, how can I enter a sell signal or an exit long script which will be “1% below the buy signal price”?

Any help will be much appreciated :slight_smile:

Regards,

Mangesh

As i know it is not possible. Exit with % on price is not possible in trade script. Refer link- https://tradingqna.com/54270/i-want-back-test-exit-long-or-short-script-code

1 Like