- agosto 30, 2018
- publicado por: Equipo Wiki de Forex
- Categoría: Sistema de comercio de divisas
Bienvenido,
Dedico este hilo a la evolución de nuestras hojas de Excel..
Me encantaría que fuera el paraíso de la analítica y estoy listo para estar aquí solo con mi pequeña evolución.. A menudo podrías echar un vistazo, ya que voy a publicar mis scripts de VBA con la esperanza de que algún experto se presente y me corrija.. 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.
Descargo de responsabilidad: 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).Finalizar(xlDown))
For Every b In rng
b.Offset(0, 7).Worth = (Izquierda(b.Worth, 4) & "-" & Mid(b.Worth, 6, 2) & "-" & Proper(b.Worth, 2))
Subsecuente
For Every b In rng
b.Worth = b.Offset(0, 7).Valer
Subsecuente
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").Borrar
Worksheets.Add.Identify = "Data_crushed"
Worksheets("Data_crushed").Transfer After:=Worksheets("Información")
Worksheets("Data_final").Borrar
Worksheets.Add.Identify = "Data_final"
Worksheets("Data_final").Transfer After:=Worksheets("Menu")
Software.DisplayAlerts = True
Software.ScreenUpdating = False
'Date crush - MT4 Each day
Worksheets("Información").Activar
Vary(Cells(1, 1), Cells(1, 7).Finalizar(xlDown)).Copiar
Worksheets("Data_crushed").Activar
ActiveSheet.Paste
'Columns separate
Columns("A:A").Elegir
Choice.TextToColumns Vacation spot:=Vary("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=True, House:=False, Different:=False, FieldInfo _
:=Array(Formación(1, 4), Formación(2, 4), Formación(3, 1), Formación(4, 1), Formación(5, 1), Formación(6, 1), _
Formación(7, 1)), DecimalSeparator:=".", TrailingMinusNumbers:=True
Vary("G14").Elegir
'visible
Columns("B").Borrar
Columns("gramo").ClearContents
Rows("1:1").Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Vary("A1").FormulaR1C1 = "Fecha"
Vary("b1").FormulaR1C1 = "Abierto"
Vary("c1").FormulaR1C1 = "Excesivo"
Vary("d1").FormulaR1C1 = "Bajo"
Vary("e1").FormulaR1C1 = "Cerrar"
Vary("f1").FormulaR1C1 = "Cantidad"
'transfer to closing record
Vary("A:A,mi:mi").Copiar
Worksheets("Data_final").Activar
Sheets("Data_final").Elegir
ActiveSheet.Paste
Finish Sub