The screenshot you sent me via email does not fit the specifications you listed in your question above. The 15% drop occurred 17 bars from the high of the day. I have provided user inputs to your study so that the percent values can be adjusted as well as the number of bars from the high. In a 1 min chart your signal occurs 17 minutes after the high of day was reached. I used an arrow instead of a dot because the dot did not show up well on the chart.
Here is the code. Screenshot below shows the result.
Edit: Sorry but I was in a rush to get this posted and neglected to ensure all the rules I had accounted for in the code were applied correctly. The code below has been updated to ensure correct operation.
input percentGain = 30.0;
input percentDrop = 15.0;
input dropWithinBars = 10;
def previousDayClose = close(period = AggregationPeriod.DAY)[1];
def extendedSessionOne = RegularTradingEnd(GetYYYYMMDD()) <= GetTime(); def extendedSessionTwo = RegularTradingStart(GetYYYYMMDD()) >= GetTime();
def extendedSessionHours = extendedSessionTwo or extendedSessionOne;
def regularSessionHours = RegularTradingStart(GetYYYYMMDD()) <= GetTime() and !extendedSessionOne; rec highOfDay = if extendedSessionHours and !extendedSessionHours[1] then high else if high > highOfDay[1] then high else highOfDay[1];
plot highForToday = highOfDay;
def highEnough = highOfDay >= previousDayClose * (1 + (percentGain * 0.01));
def lowEnough = low <= highOfDay * (1 - (percentDrop * 0.01));
def highestBarOfDay = high < highOfDay and high[1] == highOfDay[1];
plot signal = highEnough and lowEnough and !lowEnough[1] and Highest(highestBarOfDay, dropWithinBars - 1) > 0;
signal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
signal.SetLineWeight(4);
Donations are not solicited for posts to our Q&A forum. As a matter of fact we don't take "donations" on this site at all. There is a place for a "Voluntary Contribution". And it is just that. Not a donation at all. Consider it a tip jar. We don't want to confuse visitors by referring to the tip chart as a donation. Donations are for charitable organizations and Hahn-Tech, LLC is a FOR PROFIT enterprise.
Having cleared the air on that. I need to know where you came to know this as the so-called "backside indicator". I tied to Google that term and came up with absolutely nothing pertaining to stock trading. Why is this important? Because when we provide solutions in the Q&A forum we are creating a searchable knowledge based which is intended to serve a vast audience. So we need to make sure the titles of these questions use terms that will be used by folks trying to find this in a Google search.
So before I post a solution, please be so kind as to let me know (in a comment immediately below this one), exactly how I would search for this on Google and find similar setups to this one. I will then update the question title so that everyone trying to find this will immediately locate the solution here.