Search found 96 matches

Go to advanced search

by Steve Burman
Fri Feb 03, 2023 5:19 am
Forum: Pine Script Q&A
Topic: Pivot Indicator/Strategy
Replies: 2
Views: 1185
 
Jump to post

Re: Pivot Indicator/Strategy

Hey twobeers, This one is easy. All you need to do is place the following property in your indicator statement max_lines_count=500 or whatever value you want but 500 is the max. It doesn't seem to only count lines but possibly other objects because I tried 100 and it only displayed a dozen or so lin...
by Steve Burman
Thu Feb 02, 2023 2:29 am
Forum: Pine Script Q&A
Topic: MTF EMA in Pine Script
Replies: 1
Views: 711
 
Jump to post

Re: MTF EMA in Pine Script

There are a number of MTF MA indicators available in the Community Scripts in TradingView. From what I've seen these just plot a series of individual MA's with different periods so you could use crossover/crossunder IF statements on any pair of EMA's
by Steve Burman
Thu Feb 02, 2023 2:14 am
Forum: Pine Script Q&A
Topic: Back test strategy
Replies: 1
Views: 858
 
Jump to post

Re: Back test strategy

The answer is yes, you can use the pinescript request.earnings, request.dividends and request.splits to extract information from stocks. I'm not exactly sure what data is returned but I would expect all the necessary information about earnings, dividends and splits would be provided and therefore yo...
by Steve Burman
Sun Jan 29, 2023 4:38 am
Forum: Pine Script Q&A
Topic: pine script strategy exit with alert
Replies: 1
Views: 733
 
Jump to post

Re: pine script strategy exit with alert

Did you enter a {{strategy.order.alert_message}} placeholder in the message section of the alert? This is needed so that your custom message replaces the placeholder in the alert
by Steve Burman
Fri Jan 20, 2023 9:55 am
Forum: Pine Script Q&A
Topic: Need help with the error
Replies: 4
Views: 1433
 
Jump to post

Re: Need help with the error

Oh boy that's a long complicated script with no comments!!! This code is checking if the current candle closes lower than the green alert line and if the prior candle's close is higher or equal to the green alert line. Shouldn't it be that both the current close and prior close is < the green alert ...
by Steve Burman
Thu Jan 19, 2023 11:37 pm
Forum: Pine Script Q&A
Topic: Selecting of date range in strategy script
Replies: 1
Views: 1065
 
Jump to post

Re: Selecting of date range in strategy script

Gooogle that's not a silly question at all. You can use this code: // Date range inputs startTime = input.time(title="Start Filter", defval=timestamp("01 Sep 2022 04:30 +0000"), group="Time Filter", tooltip="Start date & time to begin searching for setups") endTime = input.time(title="End Filter", d...
by Steve Burman
Thu Jan 19, 2023 4:33 am
Forum: Pine Script Q&A
Topic: Change imput interval
Replies: 1
Views: 775
 
Jump to post

Re: Change imput interval

Yes this should be possible.You could do something like this: conversionPeriod1 = input.int(9, minval=1, title="Conversion Line Length 1") conversionPeriod2 = input.int(18, minval=1, title="Conversion Line Length 2") donchian(len1,len2) => math.avg(ta.lowest(len2), ta.highest(len1) conversionLine = ...
by Steve Burman
Thu Jan 19, 2023 4:01 am
Forum: General Trading Discussions
Topic: Trade like a Pirate
Replies: 3
Views: 8431
 
Jump to post

Re: Trade like a Pirate

Hey Anthony,

What a great article... lots of motivation there and some good money management strategies. I love the lesson of compound interest. I don't know why they don't teach financial literacy as a compulsory subject in schools.

Thanks for that!
by Steve Burman
Thu Jan 19, 2023 2:07 am
Forum: Share Your Scripts
Topic: My Scripts + Source Code
Replies: 4
Views: 7297
 
Jump to post

Re: My Scripts + Source Code

Bless you Matt!
by Steve Burman
Thu Jan 19, 2023 1:56 am
Forum: Introductions
Topic: Hey There Fellow Traders & Programmers
Replies: 1
Views: 4519
 
Jump to post

Hey There Fellow Traders & Programmers

Hi All, I love the Zen and the Art of Trading community and I especially love and am thankful for finding Matt and the Pine Script Basic and Mastery Course as it has made a huge difference to me. I started my career as a programmer in 1981 earning a whopping $8k a year starting salary then got into ...

Go to advanced search