predictably-irrational
Member
Code:
plot entry = if(close crosses above (lowestAll(low) + (ATR() *.7)), low, double.nan);
entry.SetPaintingStrategy(PaintingStrategy.Arrow_UP);
plot exit = if((close crosses below highestAll(high) - (ATR() * .7)), high, double.nan);
exit.SetPaintingStrategy(PaintingStrategy.Arrow_DOWN);
I don't know how to code and have been trying to make this code into a scanner. This code is basically saying give me the highest high and lowest low on the chart and tell me when price pulls back the other way from it.
I want two scanners really unless we can make it into one with setting adjustments? One that will give me the highest high and one for the lowest low. I tried to just add it to the scan script and added "within 10 bars" but I didn't get any results. And I know there are results just by manually going through stocks and seeing there are.
Like I said I am really bad at coding so if this can be done and send me back a shareable link please? I have been trying for days but I have come to the point where I need to ask for help.