Forex Excel and VBA analysis

0
(0)

歡迎,

I dedicate this thread to evolution of our Excel sheets.

I would love it to be analytics paradise and am ready to be right here alone with my little evolution. You could often take a look, as I'm going to be posting my VBA scripts hoping some skilled will present up and right me. Throughout my buying and selling profession, I've many occasions wanted to investigate some timeserie, and typically needed to have a look at it from some unusual perspective. Sadly am IT analphabet. So I've discovered to code VBA fundamentals, coded it like a pig, however in some way it labored and I obtained what I wanted.

For some purpose, I imagine a few of you have been, or are, in the identical scenario and I imagine if we share our VBA codes and excel combos, we are able to make fairly good stuff.

I'm even be utilizing this discussion board as a retailer for codes, so they're at one place. I encourage you to assist me with evolution of these. In the event you obtained any concept the way it could possibly be improved please say so.

免責聲明: These are actually foolish codes. In the event you plan to make use of them, be sure to perceive what they do and save your information first, earlier than operating macro. All codes have been written in VBA Excel 2010.

Gotta add one thread rule:
Please attempt to stick it to Excel and VBA analysis. Additionally AC/DC welcome.

So first little code I would like to save lots of. I ve made this coz typically once I obtain timeserie, completely different international locations have completely different time and date codecs and excel cant learn the date. It's simply to get concept scorching the heck change all these incorrect dates.

'datecrush
Set rng = Vary(Cells(1, 1), Cells(1, 1).Finish(xlDown))
For Every b In rng
b.Offset(0, 7).Worth = (Left(b.Worth, 4) & "-" & Mid(b.Worth, 6, 2) & "-" & Proper(b.Worth, 2))
Subsequent
For Every b In rng
b.Worth = b.Offset(0, 7).值得
Subsequent
rng.NumberFormat = "d.m.yyyy"

Second one is mostly a mess. This code is to crush information exported in *.csv format and change it to readable timeserie with solely closes and dates. Has been examined on every day EU Oanda information from MT4. There's a minor bug with dates, which am fixing now - utilizing code no1. Suppose all MT4 exports must be the identical.

Sub datecrushMT4Daily()

'restart sheets crushed and closing
Software.DisplayAlerts = False
Worksheets("Data_crushed").刪除
Worksheets.Add.Identify = "Data_crushed"
Worksheets("Data_crushed").Transfer After:=Worksheets("信息")
Worksheets("Data_final").刪除
Worksheets.Add.Identify = "Data_final"
Worksheets("Data_final").Transfer After:=Worksheets("Menu")
Software.DisplayAlerts = True
Software.ScreenUpdating = False

'Date crush - MT4 Each day
Worksheets("信息").啟用
Vary(Cells(1, 1), Cells(1, 7).Finish(xlDown)).複製
Worksheets("Data_crushed").啟用
ActiveSheet.Paste

'Columns separate
Columns("A:A").選擇
Choice.TextToColumns Vacation spot:=Vary("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=True, House:=False, Different:=False, FieldInfo _
:=Array(大批(1, 4), 大批(2, 4), 大批(3, 1), 大批(4, 1), 大批(5, 1), 大批(6, 1), _
大批(7, 1)), DecimalSeparator:=".", TrailingMinusNumbers:=True
Vary("G14").選擇

'visible
Columns("乙").刪除
Columns("g").ClearContents
Rows("1:1").Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Vary("A1").FormulaR1C1 = "日期"
Vary("b1").FormulaR1C1 = "打開"
Vary("c1").FormulaR1C1 = "過多的"
Vary("d1").FormulaR1C1 = "低的"
Vary("e1").FormulaR1C1 = "關閉"
Vary("f1").FormulaR1C1 = "數量"

'transfer to closing record
Vary("A:A,乙:乙").複製
Worksheets("Data_final").啟用
Sheets("Data_final").選擇
ActiveSheet.Paste

Finish Sub

 

Right here is a simple MM excel sheet for managing EU and UJ trades. It is only one manner Forex Excel and VBA analysis 1
however you possibly can adapt it if you want. In the event you discover some bug please report. Numbers are ofc pretend, aside from these entries.
連接文件
File Type: xlsx FX_MM_ff.xlsx 28 知識庫 | 624 下載
Right here is the collection, what's fascinating is the visualization of the form shaped by the collection when the ration come to finish stabilization.
掛鉤圖片 (點擊放大)
Click to Enlarge Name: Screenshot1.png Size: 118 KB
連接文件
File Type: xlsx Stab_Cycle- - Copie.xlsx 24 知識庫 | 351 下載

 

這篇文章有多有用?

點擊一顆星即可對其進行評分!

平均評分 0 / 5. 計票數: 0

目前還沒有投票! 成為第一個評價這篇文章的人.

很抱歉這篇文章對您沒有用!

讓我們改進這篇文章!

告訴我們如何改進這篇文章?



作者: 外匯維基團隊
我們是一支經驗豐富的外匯交易員團隊 [2000-2023] 致力於以我們自己的方式生活的人. 我們的主要目標是實現財務獨立和自由, 我們追求自我教育並在外匯市場上獲得豐富的經驗,以此作為實現自我可持續生活方式的手段.