Search found 2 matches

Go to advanced search

by Fen1xTrading
Thu Dec 24, 2020 11:39 am
Forum: Introductions
Topic: Hi everyone!
Replies: 2
Views: 1380
 
Jump to post

Hi everyone!

Hello Guys, i'm Francesco.
Yesterday i finished the free pinescrpt course. Easy to understand and in just one day i was able to write my first simple indcator.
Hppe this community will grow up a lot!
by Fen1xTrading
Thu Dec 24, 2020 11:32 am
Forum: Pine Script Q&A
Topic: Check if condition is true in the last n bars
Replies: 2
Views: 1819
 
Jump to post

Check if condition is true in the last n bars

Hi everyone i'm actually programming a really simple script that plots 1 column if close > BollingerBandBasis

Actually is working for all bars.
Now i just want to start plotting columns only if i get 20 consecutive close > BBbasis

How should i code this condition?

Thanks in advance.

Go to advanced search