Probacktest help - to code a MA cross test

b1gman

Newbie
Messages
4
Likes
0
Hi, I'm just starting out with Probacktest and I need some help as everyting I try is just not working.

What I want to do is test a simple EMA cross - so I have 2 EMA lines and if they cross I want to open a trade long or short (depending on whihc way they cross).

Price will be the high (for buys) or low (for shorts) of the candle that closes after the cross, stop will be the opposite end of the candle.

Has anyone coded this or similar in proback test please.

For me this is just the start of my system, I have futher stuff to add, but I need to get the basic code in place please and this is where I'm falling at the first hurdle.

Any help or code snippets would be really helpful please.
 
Top