Percent change buy and sell signals disappear when retracement happens

Hi,

Please can anyone help me with the following code.

// ROC PLOTTING -----------------------------------

TF1 = in15Minute;
TimeFrameSet( TF1 ); // switch to 5 minute time frame
PC15 = ( Ref(C,1)/C)*100-100;
TimeFrameRestore(); // restore time frame to original

TF2 = inDaily;
TimeFrameSet( TF2 ); // switch to 5 minute time frame
PCD = ( Ref(C,1)/C)*100-100;
TimeFrameRestore(); // restore time frame to original

/// Expanding to original time frame interval

expandmode = expandLast;
PC15 = TimeFrameExpand( PC15, TF1, expandmode );
PCD = TimeFrameExpand( PCD, TF2, expandmode );

Buy = PC15 > 0.5 AND PCD > 0.5;
Short = PC15 < - 0.5 AND PCD < -0.5;

what is happening is…when i get buy or sell trigger and the condition matches it is displayed in exploration, but when the percent changes the buy or sell of that stock disappears from the exploration…

i want it to stay intact in the exploration even if the percent changes from -0.5 to -0.4 (i.e. if the stock retraces.

Please tell me what code to use in such case

thank you