vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Stock Trader for vBulletin (https://vborg.vbsupport.ru/showthread.php?t=135084)

Tulsa 01-18-2007 11:05 AM

Quote:

Originally Posted by Lionel (Post 1162064)
This is not the real world. In day trading you can buy and sell within 1 second apart.

If you choose to put a delay into this mod, please give us the option to invoke it or not. I would hate to see such a delay for my site.

Lionel 01-18-2007 11:15 AM

What would be nice with this hack would be the possibility to buy on margin

MorrisMcD 01-18-2007 12:22 PM

Potential issue... A user bought a stock that is unlisted in price for some reason.. They got over a million for 0 points a share.. Once that thing starts showing its value, the user can just sell it and make a killing..

Is there a possibility of restricting the buying of stocks valued at 0?

zethon 01-18-2007 12:43 PM

Quote:

Originally Posted by Tulsa (Post 1162078)
If you choose to put a delay into this mod, please give us the option to invoke it or not. I would hate to see such a delay for my site.

Absolutely. I built this last night, and you can just leave the requirement at "0 days". I'll be posting this update later.

Quote:

Originally Posted by MorrisMcD (Post 1162130)
Potential issue... A user bought a stock that is unlisted in price for some reason.. They got over a million for 0 points a share.. Once that thing starts showing its value, the user can just sell it and make a killing..

Is there a possibility of restricting the buying of stocks valued at 0?

Wow. I will fix this in the next release.

NFLfbJunkie 01-18-2007 12:46 PM

I installed this MOD and added the cde to the navbar template so a link will show on my navbar, but nothing shows up. Actually, after adding coding to the navbar to display links for other MODs, I am getting the same problem. Does anyone know if there's something different with editing the navbar in 3.6.4?

MorrisMcD 01-18-2007 01:09 PM

Quote:

Originally Posted by zethon (Post 1162151)

Wow. I will fix this in the next release.

Good news.. Its still kinda like an exploit, but it doesnt do what I thought it would. Since its dividing the total out to get the percentage before it gives the gain (I think), it fails and I get a division by 0 error....

See attachments below... The error is appearing at the top of the page.

Still would like to see it fixed if possible though :)

While I am at it, can I make a request? What about a history.. Of selling stocks per portfolio?

zethon 01-18-2007 01:30 PM

Quote:

Originally Posted by MorrisMcD (Post 1162168)
Good news.. Its still kinda like an exploit, but it doesnt do what I thought it would. Since its dividing the total out to get the percentage before it gives the gain (I think), it fails and I get a division by 0 error....

See attachments below... The error is appearing at the top of the page.

Still would like to see it fixed if possible though :)

While I am at it, can I make a request? What about a history.. Of selling stocks per portfolio?

I just posted an update that has a fix for this. The minimum price a stock can have for a user to purchase defaults to $0.001. However, I've made this configurable in the add-on's options.

I've also added the minimum number of days feature that someone else requested. This too is configurable.

As for a portfolio history... that's not such a simple change and may not happen until a 2.0 version. :)

Carl Anderson 01-18-2007 01:33 PM

I have a few requests that would be nice....

One would be a personal Portfolio of the real stocks you own. Where you just enter the amount owned and the price you paid so you can keep tabs on your real portfolio - no one can view it and you don't need bux to enter the amounts.

As far as contests go a start and stop date and an initial amount of funds for it that can't be added to. You have to start with everyone having the same amount to invest to make it a fair contest... So say I give everyone 150,000 vbux the contest would only allow 100,000 something we could set... or have the option of no limit?

As far as the navbar I would like to see just Stock Trader that points to vbtrader.php and then when you click on that the links to top performers and if you have "contest" a link to that... My navbar has too much stuff on it already and don't need more.. Just one link in the navbar is enough.

Thx for the great work

NFLfbJunkie 01-18-2007 01:36 PM

Zethon, what file needs to be uploaded for the changes you just made?

MorrisMcD 01-18-2007 01:57 PM

Quote:

Originally Posted by zethon (Post 1162185)
I just posted an update that has a fix for this. The minimum price a stock can have for a user to purchase defaults to $0.001. However, I've made this configurable in the add-on's options.

I've also added the minimum number of days feature that someone else requested. This too is configurable.

As for a portfolio history... that's not such a simple change and may not happen until a 2.0 version. :)

Understandable on the history.. Thanks for the quick fix.. Worked for me! My cron job still reports a divide by zero error when run manually so I wonder if its updating.. You think I just need to del anything in the db referring to HOKU?

Quote:

Originally Posted by Junkie (Post 1162192)
Zethon, what file needs to be uploaded for the changes you just made?

Just upload the whole upload folder again and reinstall the product with the overwrite option.. Worked for me

Quantnet 01-18-2007 05:21 PM

i just updated to the latest version and every trade i made yesterday now shown as Purchased a week ago.

Is it because I manually run the cron job ?

MorrisMcD 01-18-2007 05:33 PM

Quote:

Originally Posted by Quantnet.org (Post 1162332)
i just updated to the latest version and every trade i made yesterday now shown as Purchased a week ago.

Is it because I manually run the cron job ?

Weird.. So does mine actually

TTG 01-18-2007 06:10 PM

Used this in my post bit for members to better understand what they have :-

Quote:

<strong>Stocks & Shares</strong> <br />
Portfolio Owned: $post[ambportval]<br />
Stocks Gain: $post[ambportgainper]

Quantnet 01-18-2007 06:14 PM

Quote:

Originally Posted by TTG (Post 1162357)
Used this in my post bit for members to better understand what they have :-

Do you have an option in User CP for those who don't like to list it in their postbit ?

Here is my postbit http://img256.imageshack.us/img256/9...rtfolioqt2.jpg

zethon 01-18-2007 06:51 PM

Quote:

Originally Posted by Quantnet.org (Post 1162332)
i just updated to the latest version and every trade i made yesterday now shown as Purchased a week ago.

Is it because I manually run the cron job ?

This is WAD (Works As Designed). The update now keeps track of the date on which you purchased your stock. In order to make things nice for stocks that were purchased with the older version of the software, I set it to automatically set those stocks as being purchased a week prior to the current date.

Quantnet 01-18-2007 06:56 PM

Another idea for the trading contest: we can set a minumum number of trade members have to exercise during the contest period.

1) Can you allow trading between members?
2) member request: some have been asking if we can include foreign trading exchange like those in India, China, etc...how much works needed for this ?

Lionel 01-18-2007 08:03 PM

I incorporated a stock market discussions, but it would be nice if you could put it in your script too, so there will not be any need to add it again at every upgrade. I think this is something that everyone might like.;)

Quantnet 01-18-2007 08:17 PM

Quote:

Originally Posted by Lionel (Post 1162444)
I incorporated a stock market discussions, but it would be nice if you could put it in your script too, so there will not be any need to add it again at every upgrade. I think this is something that everyone might like.;)

Lionel did it again :)
You can select based on forum id, right ? If so we can create a forum dedicated to trading and enable the feature there.

Lionel 01-18-2007 08:19 PM

I added a setting in the group where you simply put the forum id that you are using for the discussions.

Quantnet 01-18-2007 09:01 PM

Seems like a bug with rounding small gain/loss. When someone has a very small negative gain, the percentage gain should be -0.00%. Also, we need more decimal places instead of only 2

19.00 0.00%
-27.50 0.00%

Another request: when we view member portfolio, is it possible to display the amount of cash not invested of that member along with the portfolio value ?

Moya 01-19-2007 12:42 AM

Oh oh I like this.

Thanks. I will click installed when I get my site back on.

sportsoutlaw 01-19-2007 01:45 AM

Dabble in the stock market, and not use any of my own real money. I like this. :)

*Installed

Carl Anderson 01-19-2007 07:35 AM

Quote:

Originally Posted by Lionel (Post 1162064)
This is not the real world. In day trading you can buy and sell within 1 second apart.


True but you must have a margin account to do so...

It takes three business days for stocks to settle.... Brokers do not allow you to do this without a margin account - hence day traders have margin accounts.

d8tabyte 01-19-2007 07:43 AM

Quote:

Originally Posted by Quantnet.org (Post 1162483)
Seems like a bug with rounding small gain/loss. When someone has a very small negative gain, the percentage gain should be -0.00%. Also, we need more decimal places instead of only 2

19.00 0.00%
-27.50 0.00%

Another request: when we view member portfolio, is it possible to display the amount of cash not invested of that member along with the portfolio value ?

You can do this with vbplaza/vbux by entering this where ever you want it to appear:

Code:

<phrase 1="$vbphrase[vbbux_points]">$vbphrase[vbbux_total_points]</phrase>: $post[totalpoints]
As once stock is bought it deducts from total point anyway, until stocks are sold again.

Carl Anderson 01-19-2007 08:10 AM

I see no way of having contests that are fair and equal unless this uses its own money system. You need to enter a set amount as your cash starting point. If you don't do this some people may win the contest by making vbux for posts or reputation and buy stocks with it so it shows in their portfolio - whatever?

There are a lot of things that need to be considered for this to end up really good. I bet your head is spinning from all of the suggestions. Personally I want to see the contest part as the primary objective of your hack and add from there. Get that right and then add on some of the other suggestions. Contests will make it fun and get people to use it IMO - lots of people come to sites with games and contests and it keeps them interested to see how they are doing..

I would like to ask the other posters here if they feel the same and contests be the core and build from there?

I am going to send you a small donation for your work and efforts on this... However it turns out you deserve something from me and the users on my site..

Quantnet 01-19-2007 08:33 AM

Quote:

Originally Posted by d8tabyte (Post 1162709)
You can do this with vbplaza/vbux by entering this where ever you want it to appear:

Code:

<phrase 1="$vbphrase[vbbux_points]">$vbphrase[vbbux_total_points]</phrase>: $post[totalpoints]
As once stock is bought it deducts from total point anyway, until stocks are sold again.

I only use reputation as money and I don't see any reason to install another vbux, cash. As far as i can see, giving member 100K reputation is as good as 100K in cash.

xxxsaint 01-19-2007 10:57 PM

Quote:

Originally Posted by Carl Anderson (Post 1162716)

I would like to ask the other posters here if they feel the same and contests be the core and build from there?

I personally do not want this to become a " stock competition " hack. If that does become the case , then notify us on when it becomes a time-set competition only thing so I can stop upgrading at that point. Nothing wrong with fun competitions , but nothing wrong with having a blast just trading stocks as this has been designed to do.


P.S. Please add Mutual Funds , it gives us the quotes from mutual funds , but doesn't let us buy them!

Lionel 01-20-2007 04:59 AM

I was wondering if you could make this hack handle stocks splits?

d8tabyte 01-20-2007 07:49 AM

Quote:

Originally Posted by Quantnet.org (Post 1162720)
I only use reputation as money and I don't see any reason to install another vbux, cash. As far as i can see, giving member 100K reputation is as good as 100K in cash.

Code:

                                <if condition="$show['reputation']"><div><span>Reputation: $post[reputation]</span></div></if>

Carl Anderson 01-20-2007 01:19 PM

Quote:

Originally Posted by xxxsaint (Post 1163099)
I personally do not want this to become a " stock competition " hack. If that does become the case , then notify us on when it becomes a time-set competition only thing so I can stop upgrading at that point. Nothing wrong with fun competitions , but nothing wrong with having a blast just trading stocks as this has been designed to do.


P.S. Please add Mutual Funds , it gives us the quotes from mutual funds , but doesn't let us buy them!

I would suspect that most sites will feel the same as you do. At my site most of my users are stock traders for real stocks and many of the posts are already about stocks. So it is important to me that it works right with no way to win in a contest other than picking the best stocks.

I can see how other sites may want to use this along with reps or posts to build up a portfolio and maybe reward users. We all have different sites and different users - I just hope this add on can have the options to fit most of our needs so we can present it the way we want to our users.

Zethon consider this for the contest part of it..

Add a table that can import the money from vbux, icash etc. In the contest set up area place the amount that can be imported into that table for the contest from vbux etc.. This will be your portfolio starting point and you can't add more than what is set in the contest set up. Have a start date for contest and end date and the one with the most bux at the end date is the winner.

You could also set it to so there is no limit for the sites that want their users to be able to use all of their bux they earn in the contest.

This a great add on and all of us have different visions of how we want to present it to our users. My hope is that their will be enough options that we all can set this up to work for our sites in a way that will be best for each site...

Thanks zethon for all your efforts!:up:

adhari_com 01-20-2007 02:00 PM

how it could be integrated to use the vB Reputation System?

fastforward 01-20-2007 05:53 PM

Quote:

Originally Posted by adhari_com (Post 1163462)
how it could be integrated to use the vB Reputation System?

Simply enter 'reputation' in the 'Money Row' field. That's how I've got it set up.

zethon 01-20-2007 06:36 PM

Quote:

Originally Posted by xxxsaint (Post 1163099)
P.S. Please add Mutual Funds , it gives us the quotes from mutual funds , but doesn't let us buy them!

Can you give me an example of a mutual fund that the system gives a quote for but won't let you buy? I'm guessing this will be an easy fix/change.

zethon 01-20-2007 06:43 PM

Quote:

Originally Posted by xxxsaint (Post 1163099)
I personally do not want this to become a " stock competition " hack. If that does become the case , then notify us on when it becomes a time-set competition only thing so I can stop upgrading at that point. Nothing wrong with fun competitions , but nothing wrong with having a blast just trading stocks as this has been designed to do.

Nothing will be compulsory. I'm still working on the competition design in my head, and of course if you don't want to have competitions, you will not be required to do so.

Quote:

Originally Posted by Carl Anderson (Post 1163435)
Add a table that can import the money from vbux, icash etc. In the contest set up area place the amount that can be imported into that table for the contest from vbux etc.. This will be your portfolio starting point and you can't add more than what is set in the contest set up. Have a start date for contest and end date and the one with the most bux at the end date is the winner.

You could also set it to so there is no limit for the sites that want their users to be able to use all of their bux they earn in the contest.

I'm still not sure how I want to handle the competition aspect of this add-on. I'm thinking there will be two ways the competition will initially start.

1) Users will have to pay to enter the contest. That fee will be the money that they use in the contest. Hence, if I start a contest with a 10,000 dollar/rep/vbbux/whatever fee, then each use that enters the competition will initially start out with 10,000.

2) Users will be able to join a competition for free and will be allocated X amount of dollars/rep/whatever.

I can see advantages and disadvantages to both methods. I may go with one or the other or both, I'm still undecided.

The competition portion of this plugin is still at least another month or two away. Grad school starts next week and with a fulltime job, I'm not sure how much time I'll be able to dedicate to this, aside from bug fixes.

dholt 01-20-2007 08:24 PM

Installed

Quantnet 01-20-2007 08:47 PM

zethon,
Thanks for your time. This has been the best mod i have on my forum in term how it fits the userbase.

Beside the 2 phrases that you have (portfolio value and gain), can you develop more phrases.

Something like the rank of a members in term of top portfolio so we can put in postbit. For example $post[rank_gain] will display the rank of that member based on the gain percentage. $post[rank_value] will display the rank of that member based on the value of the portfolio

sportsoutlaw 01-20-2007 11:31 PM

I can't buy any stock at all. I have cash on hand, but even when I try to buy just 1 share of $30 stock, is says:
You do not have enough money to make this purchase.

What am I doing wrong? :)

sportsoutlaw 01-20-2007 11:52 PM

I found the issue, I think.......

The cash on hand that I have is 7,120.31

I found a cheap stock that was $4.00 per share, and it will let me buy 1 share. When I try to buy 2 shares, it says I don't have enough money. For some reason, it appears to be reading 7,120.31 as 7.12031.

Any ideas how to fix this?

Edit - I removed vbux/vbplaza tonight and installed icash. This issue doesn't exist with iCash, so my problem is fixed. :)

xxxsaint 01-21-2007 02:18 AM

Quote:

Originally Posted by zethon (Post 1163679)
Can you give me an example of a mutual fund that the system gives a quote for but won't let you buy? I'm guessing this will be an easy fix/change.

Here ya go :

CHCGX
SAUSX
DXCLX
DXZLX
FSNGX


Those types of funds :) Thanks for looking into it!

Martyh 01-21-2007 02:25 AM

ok,

I have it installed and got the green bars switched out to show numbers thanks to another thread in mod discussions ( because, I just used the rep system in VB)

, only problem I am having is after a few people have made purchases , they do not show up in the postbit "total portfolio value" they still show zero, and also when I go to the top investors page there is no info there, as if no one is in the game, no memebrs show up under any of the headings.What could I be missing, the install was pretty simple even for a newbie, any ideas ?

please let me know,

Thank you, and thanks for the mod,
it is my personal favorite,


All times are GMT. The time now is 05:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02112 seconds
  • Memory Usage 1,857KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete