Currencies pretty much open a new daily bar - where they previously closed, obviously excluding certain Sunday nights when news related events happen over the weekend.
So to say cross candle bottom - that's where they left off![]()
def getFirstCrossFromBelow(x,column,column_to_cross):
crosses = x[(x.baropen_datetime > x.session) &
(np.sign(x[column] - x[column_to_cross]) > 0) & \
(np.sign(x[column].shift() - x[column_to_cross]) < 0)]
if len(crosses):
return crosses.iloc[0].baropen_datetime
normal distribution (i.e. bell shaped cureve) would allow you stablish mean and SD, from which SD divided by square root of number of observations would give you std error of the mean (SEM) from that co-efficient of variation within a population of candles.
candles are good for looking at the last bar but not the one being built