-
Hey All,
So I recently asked support a question, I have multiple work-spaces each has 5-6 different charts with predictions and trading strategies etc.
Is there a way for symbols to just be updated in 1 chart and it applies to all the others?
An example of my scenario, every week I refresh the symbols I use to trade based on what my market filters give me as my working list for that given week.
I then have to add/remove symbols to every chart manually, which soon gets to be a pain ? and super time consuming, as in I can spend hours of time having to add symbols across multiple charts.
So I came across this post from years ago, and thought I would give it a try. https://nstsupport.wardsystemsgroup.com/support/running-the-neuroshell-trader-with-macros/
I basically started coding up in AutoIt and what a difference it has made, I basically put my symbols in a csv file each friday evening, run the script and come Saturday I have a full refreshed chart and workspace set with all my new symbols added. I have attached a simplified version of the AutoIt script I use in case anyone else is interested in trying this, I’d recommend it as it has literally save me hours and hours so far.
Sample code, with no error checking atm, but this is what it does.
- Reads from a CSV I create, in the code sample attached “live.txt”
- Takes a backup of my User Defined Symbol Lists (I use Bowfort on demand, which basically has a user defined list of symbols, for those symbols it does not find in its default index lists per market)
- De dupes my User Defined Symbol List
- Reads the symbols from the CSV into an array
- Reads the charts from a directory where I keep my chart files into an array and splits out the chart filename, and chart title into two separate arrays.
- Takes the filename from the array and executes a ShellExecute of Neuroshell passing it the filename.
- Waits for NS to open
- Opens the Chart Wizard, deselects the current symbols from the listbox
- Reads the new symbols and passes them to the listbox
- Starts the retraining for new symbols
- Waits until complete
- Exits NS
- Then loops to the next Chart in the array.
Caveat 🙂 my code is awful, I am not a coder so had to learn as I went, I have yet to put in any decent error checking, which I am working on that moment. Usual disclaimers around don’t try this on your own setup until you’ve modified it to meet your needs etc
Hope this helps someone out maybe, who like me just wants to automate the heck out of everything!!
File attached as a .zip You’d need to extract and rename the text to .au3 and install AutoIt to play with it.
Next steps for me with it are:
Some error checking, having it take the data from the stock screener I use directly so I dont need to use csv files, add in a retrain/optimize only mode
Stu
Attachments:
You must be logged in to access attached files.
Hi Stu ,
Well I have not done this yet but it is something i was thinking about for a portfolio of stocks, 35-50 stocks.
Have the historical downloader installed,
In your C DRIVE add C:\NeuroShell Trader 6\DailyQuotes
” this allows you if you want to use yahoo finance , if you want to ,BUT it gives you access to the folder to update your data into. I don´t know where you are getting your data.”
You can setup a sub folder to save your data BUT and this is a big but,
In your work spaces change the symbol list to not as a 3 alphanumeric but as a number 1 to 50 or how ever many stocks you have .
You said you are already splitting the name etc . so change the 3 letter code to 1-50
keep the name part . so SYMBOL will be a number and name = name.
Put them in the sub folder .
Then each time you restart NSDT it will read the Data file and as long as NSDT does not come up with the box asking to retrain the data , it should retrain .
As the NDST is reading the symbol list and not the name , so when you update the sub folder with new data , ie over write the old data it will read it on opening.
As your work spaces now have symbol number and then the name for the stock .
EG
in current work space you have
JPM JP Morgan
IBM International Business Machine
GS Goldman sachs
Change to
1 JP Morgan
2 International Business Machine
3 Goldman sachs
Now your scanner comes up with 3 different stocks , you call them
1 Cisco
2 Boeing
3 Apple
Save the new data in your sub folder and over write existing data .
Theory as data is different NSDT should read this on opening.
Open all your work spaces
so now
it should read as above
1 Cisco
2 Boeing
3 Apple.
and retrain on opening.
I am guessing and i could be very wrong you are add / remove chart pages each week.
Print out the list of 50 stocks and the order they are in in case you want to change things.
You can always add more sub folders to historical data
First time round you will have to do it manually , that is change symbol to a number .
and then select in your charts and save all the work spaces with the new chart designations.
Hope this helps
Michael.
Thanks Michael 🙂
I’ll look to see what parts of your suggestions I can add to my automation script to improve it, appreciate the response.
S
Oops , on the historical downloader ,
Marge has informed me that there is a new version that defaults to version 7 .
So that part is redundant , sorry .
You must be logged in to reply to this topic.