defparam cumulateorders = false
DEFPARAM PRELOADBARS = 9000
x= 1
c1= high [ 3600 ] - close [ 1 ]
ctime1 = time > 080300 and time < 161800
IF not onmarket and ctime1 and c1>= 50 and c1<= 75 THEN
sellshort 1 perpoint at lowest [ 5 ] (low )- x stop
ENDIF
Set stop loss 6
set target profit 36
I am running the above code
want the the PRT code for
c1= stop loss triggered then
c2= target triggered then
t1 = when the stop loss triggered( in other words last order was loss)
t2=when profit booked(in other words last order was profit)
t3= t1+ t(minutes say 30 minutes)
t4=t2+t
I start the program at 8 am
then based on the loss or profit
if ( c1 and t3) then
run my code again
——-
endif
what is the c1,c2,t3,t3 in PRT language