This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from operator import mul | |
import itertools | |
import numpy as np | |
import datetime | |
GAMMA = 0.57721566490153286061 | |
li2 = 1.045163780117492784844588889194 # Li(x) = li(x) - li(2) | |
def factors(n): | |
#with list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding: utf-8 | |
# generates random Visa card number passing Luhn check | |
import clipboard | |
import numpy as np | |
from decimal import Decimal | |
def split_cc(ccnum): | |
cclist = list(str(ccnum)) | |
cclist.insert(4, ' ') | |
cclist.insert(9, ' ') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double PinBar2(int minimumBar) { | |
double o=Open[1], c=Close[1]; | |
double h=High[1], l=Low[1]; | |
double b = MathAbs( o - c ); | |
if ((h-l) < minimumBar*pips2dbl) //ignoruj śmieci | |
return(0.0); | |
double wup = h - MathMax(o, c), wdn = MathMin(o, c) - l; | |
if (wup >= 2.0*b && wdn <= b) //długi górny wąs - sygnał na krótką | |
return (-wup/b); | |
if (wdn >= 2.0*b && wup <= b) //długi dolny wąs - sygnał na długą |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: 16-07 | |
tags: ["podróż"] | |
notebook: Personal Journal | |
--- | |
**2014-07-16 20:37** \- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: 16-07 | |
tags: ["trading", "EURUSD"] | |
notebook: Trading Journal | |
--- | |
**2014-07-16 20:37** \- |
NewerOlder