Custom Field RSI Laguerre Crossover Long Signal


Category:
0
0

Hello Pete,

the crossover scan is working on my side now as well. Sorry that I had posted it in the wrong section. Now, I would like to setup a custom field that gives me a colored green field if there was a long signal WITHIN the last three candles. I have attached the code. The custom field is working for the long signal of the last candle but I don’t know how I can retain the green signal for the long signal happening within the last three bars.

RESOLVED
Marked as spam
Posted by (Questions: 6, Answers: 1)
Asked on November 27, 2020 10:05 pm
157 views
0
Private answer

For the solution I only modified one line of code. To save space, I am only showing the line of code I changed. Your original is marked out with a comment line and the correction appears in the line immediately below your original.

#def alertCount = if GREEN == yes then 1 else 0;
rec alertCount = if green then 1 else if alertCount[1] < 3 and rsi > 0.2 and gamma > 0.55 then alertCount[1] + 1 else 0;

For the rest of our viewers that are wondering where the original code can be found. Check the link immediately below the question that is titled "Custom Field Long Signal RSI Laguerre Crossover.txt"

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on November 28, 2020 9:22 am