Skip to content

Instantly share code, notes, and snippets.

View smnuman's full-sized avatar
🏠
Working from home

Numan Syed smnuman

🏠
Working from home
View GitHub Profile
@smnuman
smnuman / EOD-Data.md
Last active August 22, 2022 13:59
Data Export to a .csv file from AmiBroker database.

#EOD-Data export script Tomasz Janeczko described -- in AmiBroker kb -- a simple way to export AB data to a .csv file.

The easiest way to export quotes to CSV file is to use the below formula from Automatic Analysis window: (Analysis -> Automatic Analysis)

Filter=1; 
AddColumn(O,"Open"); 
AddColumn(H,"High"); 
AddColumn(L,"Low"); 
@smnuman
smnuman / EOD-Data.afl
Last active January 11, 2023 01:42
The following formula is an AFL collection in AmiBroker library. The Formula is created by `*Barry Scarborough - razzbarry [at] imageview.us*` and detailed as "An indicator that allows dumping large files to C:AmiBackup. It can export EOD or intraday data up to 375,000 Excel lines. Large files, over 65500 lines will be broken into multiple files…
// From: http://www.amibroker.com/library/detail.php?id=1129
// By Barry Scarborough 7/14/2008, updated to handle large files 8/30/08
// #### READ THIS FIRST #### READ THIS FIRST #### READ THIS FIRST #### READ THIS FIRST #### READ THIS FIRST ####
// Export intraday and EOD data to .csv files
// One file for each stock but the symbol name must be a valid Microsoft file name or you will have to modify it, see code below to change name
// if the data exceeds 65500 lines it will be broken into separate files up to 327,500 lines or about 227 days of 24 hour, one minute data
// This will create a directory C:\AmiBackup
// Select your symbols to export with the "Apply to" filter in AA window, to save data base use all symbols and all quotes
// Make sure the chart is on the period you want to save
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
smtpuser = [email protected]
@smnuman
smnuman / FileFetchError
Created June 27, 2014 16:57
Single File Fetching error
I tried this :
git archive [email protected]:git/git.git HEAD:/contrib/completion/ git-completion.bash | tar xvf -
And got this error:
Invalid command: 'git-upload-archive 'git/git.git''
You appear to be using ssh to clone a git:// URL.
Make sure your core.gitProxy config option and the
GIT_PROXY_COMMAND environment variable are NOT set.
fatal: The remote end hung up unexpectedly
tar: This does not look like a tar archive

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after