Search found 3 matches

Go to advanced search

by Gr1sha
Mon Apr 03, 2023 7:28 pm
Forum: Pine Script Q&A
Topic: engulfing candle cross EMA
Replies: 3
Views: 2451
 
Jump to post

Re: engulfing candle cross EMA

Yes, it looks like I was making my life harder :-D Thank you
by Gr1sha
Fri Mar 31, 2023 7:33 pm
Forum: Pine Script Q&A
Topic: engulfing candle cross EMA
Replies: 3
Views: 2451
 
Jump to post

Re: engulfing candle cross EMA

I gues a problem is how I define EC. This is what I changed and now I have less candles marked

//Engaulfing candle

bullEC = open <= close[1] and close > open and close > ema1
bearEC = open >= close[1] and close < open and close < ema1
by Gr1sha
Fri Mar 31, 2023 4:28 pm
Forum: Pine Script Q&A
Topic: engulfing candle cross EMA
Replies: 3
Views: 2451
 
Jump to post

engulfing candle cross EMA

Hello all, I am new to pine script and am trying to create my first script. Idea is to plot shape once bullEC or bearEC crosses over or under the EMA. Below you can see how I tried to do this, but it is plotting shape on every candle not just engulfing one. If anyone can help me how to fix this, I w...

Go to advanced search