Im trying to figure out how to make code for a moving average xover study. Thought it would be simple, but I cant get it to work.
Example: when 9 day MA crosses up and closes over 18 day MA buy open of next bar. Exit and reverse when it crosses back.
Was also thinking of an exit when price reaches SAR. This seemed an impossible task after seeing the trouble I had just trying to create a simple ma-xover study.
Any help would be most appreciated.
Thanks
Eric
Example: when 9 day MA crosses up and closes over 18 day MA buy open of next bar. Exit and reverse when it crosses back.
Was also thinking of an exit when price reaches SAR. This seemed an impossible task after seeing the trouble I had just trying to create a simple ma-xover study.
Any help would be most appreciated.
Thanks
Eric
Comment