How to share a variable/value between buy script and buy exit script

how to share a variable/value between buy script and buy exit script?

I want to use a value which is set in a buy signal during the execution of sell script. how can i do this?

1 Like

values varies  according to your conditions and it is different to different function the syntax is given with recommended values in a tradescript help pdf document,  goto help tradescript help and refer the pdf book in zerodha pi

1 Like

yeah. did that already. probably i was not clear with the question.
in pi:
buy script and exit long scripts are callback functions called at the end of fixed intervals. now can I declare a global variable which is accessible from both? I did not get anything of the sort in the transcript pdf. so should i conclude that it is not supported?