My idea is to buy on Monday before stock market close and sell
a.) to Take Profit at 2 Percent or
b.) on Tuesday before stock market is closing.
//@version=5
strategy("id", overlay=true)
//Defining Monday evening
id = ???[This is the point I need help]
//Preparing exit condition
if id
strategy.entry("long",strategy.long)
//Declaring percentage numbers
SL = 0.05
TP = 0.03
//Calculating the esit price for sl and tp
longstop=strategy.position_avg_price*(1-SL)
longprofit=strategy.position_avg_price*(1+TP)
if strategy.position_size>0
strategy.exit(id = "close", stop=longstop, limit=longprofit, timestop on Thuesday evening)