Hi Scorpian thanks for you helpon the scripting I almost have it where I what it except I am trying add this function
Hey thanks for your recent help I just have one more variable that I want to add and can't figure out how to do it
I want when the wma and the sma cross to have a 5 pip waiting period before it will open the trade ,I want to use this to filter out whipsaw and flat markets......... I beleive the code is (Entry_Pip_Margin(5)

I have tried different things and having trouble doing this simple task....can ya help me???
Thanks For Your Help,
Mike