Posts

Showing posts from October, 2025
Image
    Added a delete quote button, which deletes last quote in case a mistake was made and there still are things that appear as not done yet since this is quite a complex thing and as I was making various versions of it in some I added things and in some I did not so now I`ve figured out that the update window while does work fine (that is if there`s no mistake somewhere) something was left out. In a previous post I showed the addforeign function, which adds a foreign instrument prices, but how do you update the foreign prices? One thing I have to address.      Aside from that right now after this one looks like it looks in the image, for the first time since I work at it, I feel like I need to ask someone something, of course I have nobody to ask but I do feel so. The question would be regarding the functions and would sound like this: do you think the function should execute all the parameters as expressions and return a result? Because right now only the param...

A lot of work

      Such a program would not cost a billion dollars, few things in this world cost that much it has to be really rare, this program is not that rare but it could cost a buck considering the things that can be done with it, for example: - a technical analysis software for sale, like Amibroker - a brokerage company, like Ninjatrader or Interactive brokeres - an indicator market, like Metatrader has, btw this tiny program could (if I want) encrypt data better than Enigma did in WW2  - as educational stuff with proprietary software - aka this tiny program     Out of all those, if I were to do something with it I would choose a brokerage company like Interactive brokers. Of course for that you need to be with those who seem to be chieftains of the world, I like to call them chieftains, it does look like this world has some chieftains. Its a joke of mine, never mind. Few things are missing from this program to qualify for brokerage and can be made easily as com...

One day I have to properly make a theme

Image
 
Image
       What this  chart has and the others in all previous post have not? Yes you guess it its another instrument graphic. Achieved with the use of a function I thought long ago to implement in to the program and I did, most attempts previous versions contains this function, and so does this one. This function adds the prices of another instrument from the same database and allows using them just as open,high,low,close prices for the main instrument are used. Calculation can be made on them, as you can see the second panel from up to down contains not only the instrument but a moving average of the close price of that instrument. After adding another instrument in to the formula its prices can be used in the formula just as the main instrument prices.      This program is quite big and complex, I`m quite close to getting to the using it part. I still have some work to do every here and there, I still need to take a week to check every function in ...
Image
 

The pointer or crosshair

Image
      The pointer or the crosshair however you want to call it its the one that finds the data of the bar where the mouse pointer is, if its activated, and sends all the data from all plots except plotfill in to the data window so the user can check a certain past value from the visible data. The crosshair must be fast because it is fast in all platforms I know of or heard of, and it is fast. In this tiny program the crosshair is lightspeed fast. About the 10 th part of the 10 th part of a second, so fast. And its not that fast only when searching a small number of bars (that is when the zoom level is big) no, its as fast when the zoom level is at maximum meaning all the bars the user has loaded are visible. That can be seen in the image bellow where the bars are not independently visible, the zoom is at maximum meaning that is a chart which contains 29753 bars visible, yet the crosshair points precisely at the bar where the mouse pointer hovers and it does that in a 10th...

Sometimes

Image
      Sometimes things just get in to place unintentionally. Remember that plotfill function that I`ve made during the time of this blog and wrote about it in previous posts, well that plotfill function has another purpose achieved unitentional, meaning I did not thought of this when I made it. It can act as a ribbon, as in the image. Some platforms like Metastock and Amibroker both can place a ribbon under the price, and here it is so can mine. How did I achieved that? well, there are two buttons which set the empty space between the lowest/highest value of the indicator from that panel and the pane top/bottom margins (in the image they are +t/b and -t/b and they are on the right side of the chart as vertical buttons). Those set that space and usually that space is set to a few pixels however decreasing that to 0 the chart will look like in the image with a plotfill function between two numbers, in this case that ribbon is between 180 and 200 - just for testing purposes ...
Image
  To colourful? That`s not a bad thing its a user preference on how to see the program, if I would have made it without someone might have asked for it. BTW, its not my preference so colourful its just a theme I made when testing the themes.  Quotes window still needs some work every here and there, update window as well since of course I moved the displayed image from there see what is left, erase some things, move them in to other window and its ready...quote window ready I mean. Remember when I was complaining about brushes? Well now the back colour in the line with the timeframe in the quote window is the same with the back colour of the title of the window, was so in the other window but because the other window had to be resized to show this information it was not that obvious, now it is. This one is a simple thing but sometimes brushes can give a lot of headaches

And...after a while

      I just had an epiphany, the quotes display from the update window does not belong there, it belongs to a new window named "Quotes" so the user can open that window or not when the data is updated. And of course the quotes must update automatically on data incoming from an automated update, I`m not even sure if now it does that, I forgot. did I ever mentioned this program has more than 400 A4 files or almost 900 pages if it were to be printed?...without including files.      The habit of doing same thing. As I am writing this program I have the same habits, open chart test code close chart work again so on, but a user can do all sort of things which I am missing to do hence this program will be far from being a finished product even when it will be done. I can not under no circumstance mimic all possible things a user might try, such a program needs a lot of testing, I`m quite close to that part, am I?, what else must be done? 

Post deleted

      Due to lack of seriosity the post which was in this place was deleted permanently

And a few more notes

Image
      - updates timeframes independently, which means take your time update when you want. Assuming one is staying with his eyes on a quotes screen and doing his business as secretly as is possible. On this one, families for example can do this with friends, investing in small groups is recommended to avoid the big sharks which run this business. BTW, this program is intended to have a portofolio like feature where all trades could be recorded, what`s nice about it is that it would allow doing business trough various persons placing trades as one. This would allow even the smallest investors to not be the prey of the big sharks in this industry which seem very sure of themselves and the fact they do whatever they want. For the moment though I have not yet made this feature, its the next on the list but there`s a lot of work still - it needs a delete quotes button I guess, which is of course the reverse of the update button, not sure for what would that be required but fee...
Image
      Update speed super fast. My little program is comparable with any professional real time trading platform. Quotes in real time, no problem, lighting fast, to bad I don`t have a real time data provider for this program, not interested anyway thank you very much, but if I would have then here it comes, give me a platform name to say: its almost better than yours hehe, just joking. Anyhow the updates are manual as it can be seen on the right window next to the chart window even if there is an option to update the quotes from a text file what basically does its that it reads a text file with quotes (must have the same format as the imported format) and updates the quotes automatically. theoretically one could export quotes from a lot of platforms, I remember being able to easily export quotes from Metatrader but most platforms, most respectable platforms anyway (like this one too hehe) have a file export function for serious and professional traders and investors. ...

A vast domain

      And as I was thinking that it would be interesting to start working at the password program again with the knowledge I have now I realized that the knowledge I have now is on another side that the password program addresses so while I would be a bit more professional I would have to study the security part of programming on which I have no knowledge other than the encryption idea which is not actually from the security part of the programming but more a good idea which requires working with arrays in programming.  This is a very vast domain not to speak about the fact that the scripting language I am using is Windows based only, a true programmer would know the basics of computer programming and the languages that work with the machine language more directly like probably C language. So from what I have figured out people are specialized in this and for example someone who can do one thing can not necessarily know how to do other not related thing when it comes...
Image
      A small correction, I actually made this when I did not knew how to make a button, this one was the first program I ever created due to necessity. At that time I was trading the markets using Amibroker and someone hacked my computer. However this program was no match for the professional hacking crew and I don`t think there is any tool to stop those hence my offline charting software.  The problem with this, from what I have figured out, was that the passwords can be stole from the browser after decryption and not only that but the matrix and the program can be stolen from the USB on which they are held, even if at some point the hacking crew pissed me off so bad that I was thinking at a method to prevent this second issue however due to the first issue I quit.      This one is a interesting program, one day I might rewrite it, it needs rewriting because as I was saying I was a complete outsider newbie to making a program when I build this, I qui...
Image
      The new 'Import files' window, small, light, compact and fast as hell. As I was saying writing this program took a lot of time mostly because I did not knew how to make a button when I started, actually I did not knew a button can be made at first when I checked this scripting language,  hence a lot of code I wrote for the program was written just to work moreover on the Import code I had to make sure it imports the data precisely because otherwise when I worked at other code I might have had errors not because of that code but because of the data imported so the data had to be precise.     So today I rewrote the code for the Import window, runs fast, very fast, and I also made the window itself more compact and easy to use...hopefully...from my perspective, here it depends on the person 
Image
 What else, many things, it can take forever as there are so many ideas but a final form must be decided if I ever want to finish this program. It misses a lot of things like for example one simple thing I forgot to add to the plot function is a parameter to shift the plot by itself. Usually, for a reason I never figured out some people liked a shifted forward moving average. That is the last bar price to be in one place and the average a bit in front of it. I forgot about it and now I would have to modify a lot, just like the brushes lots of tiny annoying thigs in many places. I would also like to make it able to add indicators and delete them as is now it can add only the entire formula and from there creates all the panes and indicators, but that would mean much more work than tiny thigs, maybe in the next version. Also it would be nice to add multiple pages to a single chart window so other formula could be applied, not to speak about adding multiple instruments to a single cha...

The morning of the brushes...

Image
  ...and other annoying things. How to make those buttons? Colour them as the theme or  leave them as default windows buttons? Leave them as default, everywhere that meant change them in other places as well, fine, done. How about the mouse wheel, what the mouse wheel does, well, it scrolls, zooms, move plots up and down and expand or shrink the axes and the plots with them. Were the mouse wheel should be when it does those things, now it has all been decided. The mouse wheel zooms in and out when the mouse pointer is in the charts squarw area minus the date and the scroll bar graphic and it scrolls when is in the square area inside the date or scroll bar graphic. Mouse wheel move the plots up and down when is in the right empty graph space (outside the graphic area on the right) and mouse wheel expands or shrinks the axes and the plots when is on the left in the same empty space. actually under the buttons from the left or right to be more precise. Of course if that space (le...

Nothing more annoying

Image
      There`s nothing more annoying than doing a lower job. Brushes, tons of them I don't know which is which because I forgot, its not important but its is because of course it does not work without them, its simple and boring, I lack the patience and I don`t think I`ll finish this today even if its likely the most simple thing to do. tons of them, brushes in charts brushes in the engine, brushes in all modules, brushes everywhere. Only brushes and pencils, colours and where is that one, where is the colour for the title...brushes  

To the 'just a standard program'

      Every time I finish something I ask myself what else, from the what else and the 'just a standard program' as I wrote in previous post I feel like I need to add something, its not quite just a standard program as it misses the explorer or Scanner to quickly find interesting instruments according to some formula and the back tester, the famous, and not necessarily required from my point of view as a former person who traded the markets, backtester. to how to make the backtester I would have to think as I never made it in previous version but  a scanner or a form of it I already made in a previous version and its somewhere around here all it would take would be a lot of boring work. None of them though are really required and I`ll finish the program as is for now, in the future I might add them both. Regarding the scanner, this program has no data source its a manual update program and a scanner is not very much needed as this program does not connect to a data f...

Even better

Image
      The final form of "Program configuration" window. Still only 95% ready as usual whatever I do I still need to leave room for the final touch and in many cases I change my mind just before and change everything then again I leave some room for the final touch. Regarding this window 'Program configuration' it is final as is, there`s nothing "much better" from my perspective (of course its a personal preference), themes can be easily made, well not easily because its quite difficult to choose colours that look, are visible and do not annulate each other but other than that themes are fine. Program keys can be set from here - they interfere with chart keys so they should be chosen carefully for example as is in this picture I can not use the keys q,w,d,f, and i in chart window as they act as program keys and open the windows of the program but its fine does not matter much. Chart keys can be now set in the list, also the name can be changed and the changes...

I did it

Image
           Much better. Tendentious work, boring and as usual not yet finished but I did it. Redesigned the 'Configuration' window for a properly made trading and investing software. I`ve also finished 2 levels in the game I play on Steam. The functionality of this is at lets say 95%, I should also make those Commands editable so the user can change the text on the buttons, maybe I will someday. As for the rest everything is fully functional hopefully is also fine and there are no mistakes, none I have found but I`m a bit lazy to recheck it now.  I`ve replaced the text 'Color picker' with 'Color match' and remade the code there so now its flawless, before was functional only. Clicking on that button allows the user to choose any colour on the desktop which can then be given to any button in this configuration window which then of course will be some program colour depending on the button. Also colour can be dropped by clicking on the same button again ...

I`m going to change it

Image
      The entire chart buttons method. Unlike the rest of the program which is intuitive and easy to use, this one is not so I`m going to make it be, with a small drawback the user can not fully choose the positions of the buttons it can only choose the left or right part from where the button will be added. The buttons will be added in the order the user clicks on the checkbox, their names will be constants and the entire window will be moved from "Program configuration" to chart window, or maybe not? I`m not sure about this, but I`m also thinking that allowing the user to turn a button on or off would be possible if I move the chart buttons window under charts window. But then again I could not find the subwindow of a subwindow and like this it flickers and its annoying.        And there`s the properties subwindow of the chart which now is stripped of those properties which were not exactly of the chart but more of the program on how to make the char...
Image
      Shortly after playing a game after last post I decided to get back and prepare the buttons so I can see if there`s any issue with any of them aside the crosshair button or the pointer button which I think they`re the same and do not work. So at some point and because there are 30 shortcut keys I probably forgot I made the crosshair and name it pointer because after that I made a shortcut and name it crosshair. Whatever I`ll check it tomorrow as well together with the broken functionality to see whats wrong. But that is not what I wanted to say in this post, what I wanted to say was about the new buttons window which kind of ..sucks. Its a bit difficult to set all those numbers and make sure they are all fall, you got to remember where you placed the last button, scroll then place the next button its. Not ideal but works and it only needs to be set once, that`s not the issue, the issue is that scrolling those boxes flickers quite ugly and I don`t like it. I tried to ...
Image
      The new buttons window is ready and functional, its still a bit worst than the drag and drop functionality of charting platforms but its the best I`m willing to do now. As it can be seen in the picture I have allowed some symbol fonts like Segoe UI Symbol/Webdings and Wingdings, unfortunately Webdings and Wingdings do not nork but the other one allows the user to use some symbols on the chart buttons which is nice as not always the text is a good idea. This symbol font fonts work but not all of them and a user should use the  Character map to choose symbols. A bit clumsy and difficult but it can be done if a user wants buttons with symbols instead of text as it can be seen in the picture except ""Properties" button all buttons have symbols on them.      And because I`ve mentioned 'Properties' I had to do some work and moved some options which were listed under properties in to "Program configuration" window. Hopefully I did not miss anything in t...
Image
      Added a new button. Its bellow the 'Available colours' button and what it does is the window from the right and all those boxes which refer to the properties of the button the user wishes to make visible on the chart. there are many more boxes in that window as it has a scroll bar as you can probably see so the user can scroll down to check all commands a chart has and button's a chart can have if the checkbox is checked and the inputs are filled.  A button requires 9 inputs: its position x, y, weight and height, sides position, up down position, text of the button, font of text and font size. Three fonts are available Arial, Webdings and Wingdings.       Sometimes the decision of to how to make something is far more hard to take than actually doing that something. Right now I`m not sure if this is fine or not. Its practical since in the future there will be probably more commands and buttons available so that scrollbar there means I can add...

More buttons

Image
      More buttons? Yes, more buttons. If you can remember in an very old post, very old for this blog, I was complaining about the fact that the chart buttons are eating from the time of chart loading. So I moved them to load from a different place in the same time with the engine loading so they are not wasting time at chart loading. That`s fine, but as they are made now the user must edit a text file to show or hide buttons on the chart hence the user must specify the x and y places of the button, the size of the button, the shortcut key and not only that but also the place relative to top, left, right of the chart. This is kind of messy and difficult hence I decided to add more buttons in 'Program configuration' window to allow the user to simply configure what buttons are available on the chart. Problem with this would be that if I do this now when I`ll be in the mood to add drawings to the chart, like trendlines and so I will have to add even more buttons than the a...
Image
      Formula editor will remain simple editor without code colouring and other professional editing features. I`ve added a button to arrange the code in a easy to read format. Other than that clicking on a function in functions list automatically copies the function syntax in clipboard from where it can be pasted in to the editor area. Double clicking on a word selects it precisely if the code is formatted so its easy to work with. This simple editor is functional and enough to this stage. Implementing a rich edit format is time consuming as only today I spent half of the day checking some functions it has and it has an entire language on its own, so I am not going to waste more time with it now as I got better things to do. 

Regarding the previous work

Image
      Before the editor work on which now I am, I made that unique feature available only in this program not a big deal but nice to have the ability of the formula language to use the colour's of the theme. That part is done, working fine and as usual still remains something to do, just like any code I ever wrote in this program its at most 95% lets say ready. What still needs work on those is simple but I think required: the colour names for the theme are not very inspired, here's the list I named that colour's but I think something more easy decipherable is required and I`m thinking to not use short versions of any word. For example for the colour of the background of the chart instead of 'themebk' I think 'themebackground' would be better even if its longer and harder to write.      Other than that I am very satisfied with the result, the program is perfectly fine, works smooth, (still requires a lot of tiny things to be fixed like I said I know a few I...

Formula editor

Image
      As I was saying in a previous post, the formula editor was awful, a thing that I discovered as I was writing various formula to check the functions (still a lot of checking and writing needed). Of course it was made just to be there and barely functional so today I added some improvements and still there are improvements required as you can read bellow. But, as a first improvement now: multiple editors can be opened in the same time; font can be changed and it will stay the next time the editor is opened; panels are resizable, there are three panes one for coded writing one for function help information and syntax checking info and one pane as the list of functions available in program - on the left of the editor as can be seen in the images bellow, and I almost forgot to mention the function list pane and the function information pane can be hidden     These improvements although required were the easy part. Whats more difficult and I got no ideea for now...
      I should also mention though that the quest for building a trading and investing software has started in 2021  this blog was started as is when the quest has reached its goal. Everything was made from scratch and nothing. I am not a programmer and at the start of the quest I did not knew even if the script used to build this software is capable of creating such a software. which is why it took me a few years. So if you read this blog don`t imagine I have created such a software in a month or two. The results you see now are the results of a 4 plus years of work.          And such the program is already almost finished at the time I started this blog and I know it can be done. So this blog is more abut finishing a trading and investing software, that would be a better subtitle.     So I`ve changed the subtitle of the blog and now that I think about it it has just occurred to me that there are not that many programs like this in...
Image
      And here is the MACD formula using special theme colours and each theme I made. Note how the colours of the plots adapt to the colours of the theme. That because instead of using normal colour the program has to colour the plot I used the special constants colours which change the colour of the plot every time the theme is changed.  Of course this is just for example as not all themes are made properly by carefully matching the colours to create beautiful themes, and then so is the formula I have not carefully chose the colours of the plots. Its shown here just for functionality purposes.