Giter Site home page Giter Site logo

Comments (9)

RandallSell avatar RandallSell commented on July 30, 2024

I'm sure Cheok will have more to add on this, but I will briefly throw in my 2 cents here... MACD is in the charting system, but temporarily removed. So if you are keen to grab the source and compile it (with one line of code uncommented) you will have your MACD.

Why it has been temporarily removed I don't know. I did give it a whirl and it seemed to work fine. I'm sure Cheok will be able to shed more light on the topic as well as a timeline hopefully (I'd like to see it in the system as well).

hth
-randall

from jstock.

 avatar commented on July 30, 2024

@RandallSell thanks for the quick reply. so they have temporary removed MACD. currently i am using Java run time enviroment (JRE) to run jstock and didnt installed java itself. So if i have to compile the source code do i need java?. Can you tell the steps to activate MACD from source code

from jstock.

RandallSell avatar RandallSell commented on July 30, 2024

You will need NetBeans in order to compile it. And the JStock source is here:
https://github.com/yccheok/jstock/archive/master.zip

I believe NetBeans has the JDK within it, but if it doesn't I believe it will guide you through installing it.

Once you have NetBeans going and you can load the JStock project, do a search for "TEMP DISABLE MACD" And un-comment those lines. Recompile and Bob's your uncle!

BUT be warned - I'm sure there is a good reason why it is currently disabled. It appears to work, but one would need to manually do the math to cross-check and confirm it is actually working. I kinda have that "let's-push-the-button-and-see-what-happens" mentality, which can be a death trap if you are not careful. So be fore-warned that the results may not be accurate.

good luck,
-randall

from jstock.

 avatar commented on July 30, 2024

which line should i uncomment.. I got a result similar to this

            //TEMP DISABLE MACD
            // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            if (ta != TA.MACD) {
                this.jMenu2.add(menu);
            }
        }   // for
        this.jMenu2.add(new javax.swing.JSeparator());
        javax.swing.JMenuItem item = new javax.swing.JMenuItem();
        item.setText(GUIBundle.getString("ChartJDialog_ClearAll")); // NOI18N
        item.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ChartJDialog.this.clearAll();
            }
        });
        this.jMenu2.add(item);
    }

and also jstock.sh is exiting without showing anything . any idea what is wrong in

https://github.com/yccheok/jstock/blob/master/installer/linux/jstock.sh

the error its showing is

Warning: /bin/java does not exist
Error: Unable to access jarfile jstock.jar

from jstock.

RandallSell avatar RandallSell commented on July 30, 2024

Comment out the IF test so all menu items are added a la:
//if (ta != TA.MACD) {
this.jMenu2.add(menu);
//}

As for Unix compiling, you are on your own there. I'm a Windows Geek. But based on the error, seems you do not have a JDK installed, or at least NetBeans doesn't know where to find it. I'd google "download JDK" get the latest for your OS and install that, then search around NetBeans for where you tell it which JDK you are running. Just my hunch.

regards,
-randall

from jstock.

 avatar commented on July 30, 2024

I successfully executed jstock from netbeans but uncommenting MACD is still a problem. this is my un commented code.. still MACD option not showing in jstock

  //TEMP DISABLE MACD
            // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

            if (ta != TA.MACD) {
                this.jMenu2.add(menu);
            }
        }   
        this.jMenu2.add(new javax.swing.JSeparator());
        javax.swing.JMenuItem item = new javax.swing.JMenuItem();
        item.setText(GUIBundle.getString("ChartJDialog_ClearAll")); // NOI18N
        item.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ChartJDialog.this.clearAll();
            }
        });
        this.jMenu2.add(item);
    }

Any way thanks for your help. it seems the problem is somewhere else in the source code

from jstock.

RandallSell avatar RandallSell commented on July 30, 2024

Sorry you need to comment out 2 lines, not un-comment them.

As I explained previously, you want this:
//if (ta != TA.MACD) { THIS LINE COMMENTED OUT
this.jMenu2.add(menu);
//} THIS LINE COMMENTED OUT

That way all menu items are created and you will see the MACD stuff.

regards,
-randall

from jstock.

 avatar commented on July 30, 2024

@RandallSell I am extremely sorry for causing any trouble and thank you for taking your time for explaining the solution. English is not my mother tongue so I have misunderstood your explanation. I thought comment out means to remove comment and not to add comment. Any way your solution WORKED I have now MACD option in my jstock. once more thank you for your patience and kind explanation

from jstock.

 avatar commented on July 30, 2024

K this is my last query..what files or folders needed to be transferred from newly compiled jstock (with MACD) to the older jstock (without MACD). Both jstocks are in different folder.

filles/folders in the old jstock (without MACD)

config    docs   jstock-1.0.7.8-bin.zip   lib
database  extra  jstock.jar              jstock.sh

from jstock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.