In order to ignore duplicate signals in the PineScript 2.0 environment, I followed the link above but nothing is visible.Can you see why it doesn't work?
Asked
Active
Viewed 1,093 times
-1
-
Please provide more information, such as error messages and code samples. – DV82XL Jul 20 '20 at 05:27
1 Answers
0
In order to avoid consecutive signals you will need to manage a boolean state using a technique like this one.
Disclosure: the link in this answer points to a PineCoders FAQ entry. I am a member of the PineCoders community and I most probably wrote that FAQ entry. PineCoders is a TradingView-supported group of volunteer Pine coders and PineCoders' website is strictly educational. Neither TradingView nor PineCoders benefits financially from sending traffic to the pinecoders.com, and the site contains no affiliate/referral links.

PineCoders-LucF
- 8,288
- 2
- 12
- 21