Search found 2 matches

Go to advanced search

by AnthonyB
Wed Apr 06, 2022 6:56 am
Forum: Pine Script Q&A
Topic: Mismatched input for 3 bar pattern
Replies: 1
Views: 765
 
Jump to post

Mismatched input for 3 bar pattern

//@version=5 strategy(title="3-Bar-Reversal-Pattern Strategy", shorttitle="3-Bar-Reversal2", overlay = true) pos = if(close[0] > close[3] and low[0] > low[3] or close[0] > close[3] and low[0] < low[2], 1) if(close[0] < close[3] and low[0] < low[3] or close[0] < close[3] and low[0] > low[2], -1, nz(p...
by AnthonyB
Fri Apr 01, 2022 9:46 pm
Forum: Pine Script Q&A
Topic: Coding Bar Pattern
Replies: 1
Views: 730
 
Jump to post

Coding Bar Pattern

In Forex, in a down market, sometimes the top of the price candles will use the ema as resistance Is this the right syntax for coding this pattern //This code should detect the high of the previous bar when the high is equal to the ema or within 11 pips of the ema and the bar closed down. (HIGH [1] ...

Go to advanced search