Forexlion — Hi FL, I have tried to do what i said ..please check the attached file .. This is my first try at writing the code so please bear with me ..