Trade script code for exit?

Hi,

I am trying to figure out an exit strategy for exit at 1% loss for every buy entry otherwise, let the position run in favor till it does.

I was able to find a way, but it seems to generate false signals. Any help would be appreciated.

I have Some Expression as “Buy Script” which generates long signals.

Then for the exit at max 1% loss, I am trying the below code by using the Buy Script expression and setting it as “A”

SET A = Some Expression
CLOSE < 0.99 * A

Can someone refine this if it is possible?

Thanks in advance :slight_smile:

Basically, I need it to check the backtesting results.

Regards,

Mangesh

hello trader,

Transcript does not allow you to reference your entry price into any of its codes, for generating signals, be it stop loss or targets.

You will have to manage it with a manual stop loss order.

Hey, thanks for your answer! Looks like there is really no solution to this problem :frowning: