Search found 96 matches

Go to advanced search

by Steve Burman
Thu Feb 23, 2023 2:23 am
Forum: Pine Script Q&A
Topic: Divergence detection (3 Pivot points)
Replies: 3
Views: 4242
 
Jump to post

Re: Divergence detection (3 Pivot points)

My suggestion is to contact Eric Thies who wrote the RSI Divergence indicator and get his thoughts on your questions.
by Steve Burman
Thu Feb 23, 2023 2:12 am
Forum: Pine Script Q&A
Topic: PineScript v5 - Detect Label/Shape etc on previous candles
Replies: 6
Views: 4852
 
Jump to post

Re: PineScript v5 - Detect Label/Shape etc on previous candles

Thanks, This script is quite complicated and doesn't have any comments on what it is doing which makes it difficult to read for novices and for those with more experience. When I run this I don't see any red or green triangles. What market are you running this on and what time frame? It looks like h...
by Steve Burman
Thu Feb 23, 2023 1:57 am
Forum: Pine Script Q&A
Topic: Help with my first pine script
Replies: 8
Views: 6221
 
Jump to post

Re: Help with my first pine script

Hi Phil, Firstly your stop loss calculation seems to be incorrect. You have it as strategy.equity / strategy.position_avg_price - 1 <= -0.20. But a stop loss would normally be a specific price that could be a certain number of pips below or above the entry price (depending on direction) or a priced ...
by Steve Burman
Tue Feb 21, 2023 2:44 am
Forum: Pine Script Q&A
Topic: I need your guidance please
Replies: 1
Views: 1683
 
Jump to post

Re: I need your guidance please

Hi there, Given you know some coding for websites, you have some skills in coding. Having said that, I would recommend you first go through the Pine Script Basic Course which will ground you in how Pine Script works. Once you have completed the Basics course, I would highly recommend doing the Maste...
by Steve Burman
Tue Feb 21, 2023 2:35 am
Forum: Pine Script Q&A
Topic: Master course questions
Replies: 4
Views: 2638
 
Jump to post

Re: Master course questions

Hi Florian,

Did you get the answers you wanted from tls123? If not pls let me know and I am happy to answer them for you

Cheers
Steve
by Steve Burman
Tue Feb 21, 2023 2:31 am
Forum: Pine Script Q&A
Topic: PineScript v5 - Detect Label/Shape etc on previous candles
Replies: 6
Views: 4852
 
Jump to post

Re: PineScript v5 - Detect Label/Shape etc on previous candles

Hi Don,

As you can see in the above script, there is no indenting for if and for loops making it very hard to read as I can't tell if there are embedded if and for loops or whether they are all independant. Can you resend it as the script should be as I can't get it to compile
by Steve Burman
Tue Feb 21, 2023 2:21 am
Forum: Pine Script Q&A
Topic: Getting stuck with horizontal line code. plz help
Replies: 1
Views: 2026
 
Jump to post

Re: Getting stuck with horizontal line code. plz help

So just trying to clarify, when you mentioned not all labelled highs/lows are drawing, are you talking about wanting lines for each pivot point? If so it looks like your logic for pivot points may need tweeking. If not, then please explain further.
by Steve Burman
Mon Feb 20, 2023 4:43 am
Forum: Pine Script Q&A
Topic: RTH trading
Replies: 1
Views: 889
 
Jump to post

Re: RTH trading

Not that I have seen. You can do something like this: // Get user input session_overnight = input.session(title="Overnight. Session", defval="1800-0800") // Check if the current bar falls within the given time session isInSession(_sess) => not na(time(timeframe.period, _sess)) // You can check when ...
by Steve Burman
Mon Feb 20, 2023 1:51 am
Forum: Pine Script Q&A
Topic: I'm not sure how to achieve this and I'm a newbie
Replies: 3
Views: 1029
 
Jump to post

Re: I'm not sure how to achieve this and I'm a newbie

Glad to hear it has helped
by Steve Burman
Mon Feb 20, 2023 1:31 am
Forum: Pine Script Q&A
Topic: Error message dividing lines
Replies: 9
Views: 1900
 
Jump to post

Re: Error message dividing lines

Again I am happy to critique your strategy. Tell me in plain English what your entry reasons are including any filtering and what your exit reasons are. Also how do you want this to display on the chart and any alerts you would require. Also have you considered doing the Pine Script Mastery Course? ...

Go to advanced search