algorithm velocity of candle forex