Monday, 1 October 2012

31. Japanese candlestiscks and C# - trading application analyze

This post is not about C# 4.0 programming itself but what have been done so far. Please keep in mind I'm IT guy  who is learning C# 4.0 (I'm experienced in VB and VBscript ) and how trading world works in parallel.
There is one more form accessible which (from Main in menu bar or Trader 2012 item in 11) covers trader's portfolio (probably the most important part of trading ;-) ). Data are stored in Access database and managed by SQL. Also, on this form hidden frame(at the moment) can be invoked  where trading transactions can be entered. So, this is only part of whole functionality but still enough to demonstrate C# 4.0 against Japanese candlesticks, trading volumes, three days flag and RSI. Development is in progress and new options will be added.



1. Table with history trading information which could be entered manually or pulled/filled from Internet. Also, if I click on certain date in the past, day analyze of that row date will happen. Candles will be redrawn and new findings will be placed in 3. It is useful to test trading strategies.

2. During trading day I can follow more shares which can be seen in 12. So, if I hit "timer Stopped" (it will change his label to "timer Started" and back color to red) button program will pull data (price) form Internet in a pace defined in field before "sec." label. Next field defines time of a day after which automatic update of trading information will stop.

3. Findings according to Japanese candlesticks and volumes for trading day. Back color is the same as for "Conclusion" field in 6.

4. Findings from previous trading day for easier trading decisions, since trading is field full of explosive devices which can blow out money.

5. During trading day field in green (it means present prices is bigger then previous) fills last row in table 1 in appropriate, in case I enter data manually.  Two next fields are prices to Sell/Buy with commission. Two fields bellow represents Bid and Ask prices. These fields are filled/calculated if automatic pulling is chosen.

6. Actually this puts this program to an expert system. It consider three (at the moment) parameters and suggest action. At the moment, he says "Do not buy" ("Do not sell", "Buy", "Sell" or "Unknown" are other options) since price suggest buying action. Back color is yellow and could be white, green or red depending on suggested action.

7. These are live transactions with zero and one per cent profit. If selected (by application according to actual price) it means it could be sold with profit. Otherwise, no profit.

8. These are transaction from the past so I can follow what I did in past. These are very useful if kept up to date. Frame which maintains data of 7. and 8. can be invoked by Menu-> Ledger or button "Ledg/stats".

9. RSI as described in previous chapter. It is automatically recalculated by change of green field in 5. It can be used to test RSI limits with no influence to actual data.

10. This is Japanese candlestick chart with dates and volume bars.

11. It is list with active forms (indexes) at the moment and if item is selected I jump to corresponding form/share to see full details of that index/share. I'm not in CZ but in HR and shares as well (of course DAX is German index). This is mistake from Internet but no influence on nothing of importance.

12. This is summary status for all active shares. It is updated automatically when green field (Price) is changed on any listed/active form, active or in background.

13.  This is reach text field for comments for specific share index.

14. This is list with different prices and indexes based on yesterday's average price. Selections are based on minimum and maximum prices for previous six days.

As mentioned, other functionality exists but since programming / learnig is in progress there will be time to present them.


No comments:

Post a Comment