Comments (9)
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.
@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.
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.
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.
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.
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.
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.
@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.
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)
- Colors for volume, trendline, TA
- Fails to load Indian Stock Exchange BOM data
- Issue with hdpi and dimension of fonts HOT 2
- Question: Compare by percent & Not able to simulate
- Add Stock: All stocks are added
- Java null exception when enabling email alert
- Question: Data source in the code HOT 4
- F-Droid
- LPPF.JK show "Pacific Utama Tbk", instead of "PT Matahari Department Store Tbk"
- Incorrectly calculated lastPrice in candlestick charts on weekly and monthly base
- Increasing decimals for Bitcoins
- Metals / Commodity not working
- ExceptionInInitializationError: jstock does not start HOT 4
- Broker Setup for Indian Trading house and Exchanges
- Can't find on Google Drive HOT 2
- WARNING: An illegal reflective access operation has occurred
- Please convert the project to maven and java 8 atleast so that more people could use it
- JStock Desktop Version Dividend Information ??? HOT 1
- Technical analysis not working on some stocks
- Upgrade the project to support java 17 and onwards
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jstock.