# The most easy way to let my users insert a FinViz chart image based on values?

**URL:** https://meta.discourse.org/t/the-most-easy-way-to-let-my-users-insert-a-finviz-chart-image-based-on-values/263270
**Category:** Support
**Created:** [April 29, 2023, 6:21pm UTC](https://meta.discourse.org/t/the-most-easy-way-to-let-my-users-insert-a-finviz-chart-image-based-on-values/263270 "2023-04-29T18:21:51Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![frold](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frold/32/82547_2.png) [@frold](https://meta.discourse.org/u/frold)
#### Post date: [April 29, 2023, 6:21pm UTC](https://meta.discourse.org/t/the-most-easy-way-to-let-my-users-insert-a-finviz-chart-image-based-on-values/263270/1 "2023-04-29T18:21:51Z")

</div>

I would like my users be able to insert a finviz stock chart.

I don’t know what would be the best way to do this? If any? And if someone could helping me doing this?

Should it be a bot like

> @botname $value1 $value2

where $value1=tickername  
and $value2=d or m for daily vs monthly

or by the composer?

> [chart]$value1 $value2[/chart]

It should end up in automaticly inserting the image with the path like

> [https://charts2.finviz.com/chart.ashx?t=aapl&ty=c&ta=0&p=d&s=l](https://charts2.finviz.com/chart.ashx?t=aapl&ty=c&ta=0&p=d&s=l)

t=tickername  
p=d (for daily) or p=m (for monthly)

At the end the post should have image inserted

 ![chart](https://global.discourse-cdn.com/meta/original/4X/3/d/4/3d49dd3602520d42e6579d3ba636bd4726051edf.png)  
(path: [https://charts2.finviz.com/chart.ashx?t=AAPL&ty=c&ta=0&p=d&s=l](https://charts2.finviz.com/chart.ashx?t=AAPL&ty=c&ta=0&p=d&s=l))

Could something like that be done?

I dont know if it makes any sense?

---

<div class="post-metadata">

### Author: ![Mevo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mevo/32/187732_2.png) [@Mevo](https://meta.discourse.org/u/Mevo)
#### Post date: [April 29, 2023, 8:11pm UTC](https://meta.discourse.org/t/the-most-easy-way-to-let-my-users-insert-a-finviz-chart-image-based-on-values/263270/3 "2023-04-29T20:11:01Z")

</div>

Could this be your solution? =\> [Auto-Linkify Words](https://meta.discourse.org/t/linkify-words-in-post/82193)

Maybe simplify by using 2 different words. One for producing a daily chart and one for a monthly one. This way, you just have to deal with one additional input: The ticker. Seems easier for everybody, IMHO.

---

<div class="post-metadata">

### Author: ![frold](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frold/32/82547_2.png) [@frold](https://meta.discourse.org/u/frold)
#### Post date: [April 30, 2023, 9:00am UTC](https://meta.discourse.org/t/the-most-easy-way-to-let-my-users-insert-a-finviz-chart-image-based-on-values/263270/4 "2023-04-30T09:00:37Z")

</div>

I will have a look at it- Thanks

But maybe it will only generate a link and not inserting the image? I have to dive into it…

---

<div class="post-metadata">

### Author: ![Mevo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mevo/32/187732_2.png) [@Mevo](https://meta.discourse.org/u/Mevo)
#### Post date: [April 30, 2023, 1:03pm UTC](https://meta.discourse.org/t/the-most-easy-way-to-let-my-users-insert-a-finviz-chart-image-based-on-values/263270/5 "2023-04-30T13:03:25Z")

</div>

> [@frold](#):
>
> maybe it will only generate a link and not inserting the image?

That’s something which crossed my mind too.

Should it do that, maybe try to produce the replacement text as a link between `[img]` BBCode tags or markdown tags, if that’s possible. I guess it should and this may force the system to treat it as an image if it doesn’t do it on its own (unless it will display it as text). You indeed have to try it. Please post the results here 👍

FYI: [Formatting posts using markdown, BBCode, and HTML](https://meta.discourse.org/t/supported-formatting-in-posts-markdown-bbcode-and-html/239348)  
Markdown for images: [Basic Syntax | Markdown Guide](https://www.markdownguide.org/basic-syntax/#images-1)

---

<div class="post-metadata">

### Author: ![frold](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frold/32/82547_2.png) [@frold](https://meta.discourse.org/u/frold)
#### Post date: [May 2, 2023, 12:25pm UTC](https://meta.discourse.org/t/the-most-easy-way-to-let-my-users-insert-a-finviz-chart-image-based-on-values/263270/6 "2023-05-02T12:25:20Z")

</div>

I thought I could use this plugin

> [@Mentionables](https://meta.discourse.org/t/mentionables/192948):
>
> The Mentionables plugin lets you establish a custom mention dataset. Custom mentions work the same as @users or #categories, but use data external to discourse, including linking to external urls. Composer & Final Post view This is just perfect for sets of Affiliate links. You can use Amazon or any other provider for that matter. Administration View Example Source Currently google sheets is the only supported data source, however …

But sadly I was not even able to set it up.

Else it seems like it would be have been a work around…

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 2, 2023, 1:36pm UTC](https://meta.discourse.org/t/the-most-easy-way-to-let-my-users-insert-a-finviz-chart-image-based-on-values/263270/7 "2023-05-02T13:36:09Z")

</div>

Mentionables would not help you here. It’s for inserting links to a fixed selection of products.

What you are essentially asking for is iFrame support I suspect.

But this provider seems to block use in iFrames? (I had a brief go and that appeared to be the result) You’d need to contact them about it.

---

<div class="post-metadata">

### Author: ![frold](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frold/32/82547_2.png) [@frold](https://meta.discourse.org/u/frold)
#### Post date: [May 2, 2023, 2:50pm UTC](https://meta.discourse.org/t/the-most-easy-way-to-let-my-users-insert-a-finviz-chart-image-based-on-values/263270/8 "2023-05-02T14:50:00Z")

</div>

Well, I thought it would work as a light edition.

Let say I use

+google

It could insert at image-url like this:

```plaintext
(https://stockcharts.com/c-sc/sc?s=GOOG&p=M&b=5&g=1&i=t7063937685c&r=1682963378843

```

 ![](https://global.discourse-cdn.com/meta/original/4X/6/a/4/6a4d82291e6616163c504cb0d66f65d564c85cec.png)  
Of course what would be the best solution for me was being able to use a command like

+google m

for this path (monthly view)

```plaintext
https://stockcharts.com/c-sc/sc?s=GOOG&p=M&b=5&g=1&i=t7063937685c&r=1682963378843

```

+google d

for this path (daily)

```plaintext
https://stockcharts.com/c-sc/sc?s=GOOG&p=d&b=5&g=1&i=t7063937685c&r=1682963378843

```

And so on with more variables. But I could live with only one, as a start 🙂

---

<div class="post-metadata">

### Author: ![Mevo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mevo/32/187732_2.png) [@Mevo](https://meta.discourse.org/u/Mevo)
#### Post date: [May 2, 2023, 11:21pm UTC](https://meta.discourse.org/t/the-most-easy-way-to-let-my-users-insert-a-finviz-chart-image-based-on-values/263270/9 "2023-05-02T23:21:20Z")

</div>

> [@merefield](#):
>
> What you are essentially asking for is iFrame support I suspect.

You seem to have gone in a wrong direction with this, Robert.  
This was what you mentioned in a previous message too, now deleted.

If you copy the example link from the first post of this topic and paste it into a message, you’ll see it directly shows as an image just fine. OP’s goal is more about a way of producing these links easily for his forum users, if I understood correctly. Of course the links also need to be processed the same way as when you insert them manually in a post.
