a1cturner
Well-known member
I need help with the last part of this study. Updated Code: http://tos.mx/t0QVyfO
Background. This will only work on a One Minute Chart. It measures that the True Strength Index is above 25 on a 1 minute chart and both the 5/12 EMAs and 34/50EMAs are Bearish on a 10 minute chart or vice versa that the True Strength Index is below -25 on a 1 minute chart and both the 5/12 EMAs and 34/50 EMAs are Bullish on a 10 minute chart.
It plots a green arrow on the lower study when I am to set a TRAILING buy order to catch a short reversal in a strong trend.
So far it looks very promising except for when the reversal turns out to more than a short reversal and turns into a trend change.
The difference for me between a short reversal and a trend change is when the bearish 5 EMA crosses back above the 12 EMA or vice versa when the bullish 5 EMA crosses back below the 12 EMA.
All I want to do is add something (a red arrow) to the end of the code that visually tells me that the signal is no longer valid because of the trend change (5EMA crosses above 12EMA or vice versa 5EMA crosses below 12EMA).
I have tried a few different things but it just changes my original arrows to red.
If someone can give it a shot please I would appreciate it! It shouldn't be more than 2-4 more lines of code.
P.S. Every chart that I have looked at where this triggers would have worked out perfectly except one or two.
Once I get it perfected then I can build a scanner.
If I had a trailing buy order in I would have just canceled it when the EMAs crossed and I have full confidence that it would not have been a problem.
Background. This will only work on a One Minute Chart. It measures that the True Strength Index is above 25 on a 1 minute chart and both the 5/12 EMAs and 34/50EMAs are Bearish on a 10 minute chart or vice versa that the True Strength Index is below -25 on a 1 minute chart and both the 5/12 EMAs and 34/50 EMAs are Bullish on a 10 minute chart.
It plots a green arrow on the lower study when I am to set a TRAILING buy order to catch a short reversal in a strong trend.
So far it looks very promising except for when the reversal turns out to more than a short reversal and turns into a trend change.
The difference for me between a short reversal and a trend change is when the bearish 5 EMA crosses back above the 12 EMA or vice versa when the bullish 5 EMA crosses back below the 12 EMA.
All I want to do is add something (a red arrow) to the end of the code that visually tells me that the signal is no longer valid because of the trend change (5EMA crosses above 12EMA or vice versa 5EMA crosses below 12EMA).
I have tried a few different things but it just changes my original arrows to red.
If someone can give it a shot please I would appreciate it! It shouldn't be more than 2-4 more lines of code.
P.S. Every chart that I have looked at where this triggers would have worked out perfectly except one or two.
Once I get it perfected then I can build a scanner.
If I had a trailing buy order in I would have just canceled it when the EMAs crossed and I have full confidence that it would not have been a problem.
Last edited: