Search found 3 matches

Go to advanced search

by shabovi
Tue Mar 29, 2022 2:19 pm
Forum: Pine Script Q&A
Topic: Entry at Inside Bar High rupture
Replies: 4
Views: 1051
 
Jump to post

Re: Entry at Inside Bar High rupture

Hey, By default, during both historical and real-time calculation, strategy will enter on the bar’s close. When forwardtesting, you have the option of configuring script calculation to occur on every real-time tick. To enable this, specify it in the script’s code using: strategy(............., calc...
by shabovi
Mon Mar 28, 2022 4:43 pm
Forum: Pine Script Q&A
Topic: Entry at Inside Bar High rupture
Replies: 4
Views: 1051
 
Jump to post

Re: Entry at Inside Bar High rupture

Hey, so technically you are looking at 3 candles. [0] Last Candle , [1] and [2] Your Inside Bar is cancel [1] , the one preceding last candle. So you want to : 1. Have an inside bar i.e. high[1] < high[2] and low[1] > low[2] 2. ema1 above ema2 i.e. pema1[1] > pema2[1] 3. Low of inside bar above ema...
by shabovi
Mon Mar 21, 2022 4:13 pm
Forum: Pine Script Q&A
Topic: Entry at Inside Bar High rupture
Replies: 4
Views: 1051
 
Jump to post

Entry at Inside Bar High rupture

I'm learning to code and i'm having trouble to make my strategy.entry(long). I have some conditions to make the entry (inside bar above ema1 and ema2, ema1 above ema2), having them being met I would like to enter when the inside bar High is surpassed, but only if it is surpassed THE NEXT CANDLE by 2...

Go to advanced search