Page 4 of 5

Re: MA / Price Cross Strategy

PostPosted: Thu Nov 08, 2012 10:19 am
by Apprentice
PPMA, VIDYA and some other Methods Added to topmost Post.

Another similar strategy, with PPMA and VIDYA can be found here.
viewtopic.php?f=31&t=23836&hilit=MA+Cross

Re: MA / Price Cross Strategy

PostPosted: Sat Jan 05, 2013 11:22 am
by arstechnica
Could you please add hte possibility to invert the signal :

example

Crossover
Cross over, closing price, below the moving average generates Long orders

Thanks and regards

Re: MA / Price Cross Strategy

PostPosted: Sun Jan 06, 2013 5:43 am
by Apprentice
Your request is added to the development list.

Re: MA / Price Cross Strategy

PostPosted: Sun Jun 09, 2013 3:24 pm
by IQFX32
Hello,

Can we chose more than 300 period MA, 800 for example?

Thank you

Re: MA / Price Cross Strategy

PostPosted: Mon Jun 10, 2013 3:12 am
by Apprentice
limit increased to 2000.

Re: MA / Price Cross Strategy

PostPosted: Mon Jun 10, 2013 12:28 pm
by IQFX32
It dosen't works.
Thank you

Re: MA / Price Cross Strategy

PostPosted: Wed Jun 12, 2013 5:13 am
by Apprentice
Attempting to refresh your browser or download it from another computer / browser.

Re: MA / Price Cross Strategy

PostPosted: Sun Jul 07, 2013 1:06 am
by Bob NZ
Hi,
I tried loading price_ma.lua got an error. "price_ma.lua: 78: unexpected symbol near )"

I'm new just learning how to learn lua programming. But I suppose the 78 is the line number.

This is line 78:-

strategy.parameters:addDouble("MvaLBSens", "Minimal change of MVA to detect trend (in %)", "", 1, 0.000001, 1000000);

I have no idea of what it means. There is a big gap between looking at Guppy's ma's etc,. And other project to learn from that I have found, and this program.:(

Can someone explain how I can fix this?

Also are there any tutorials with projects that go from beginner to more advanced in small steps? If so where can I find them?

Thanks.

Cheers

Image of T/S II error loading.

error loading price_ma.lua.jpg

Re: MA / Price Cross Strategy

PostPosted: Mon Jul 08, 2013 12:47 pm
by Epsilon
Bob, it's actually the line above the one you're referring to. Change
strategy.parameters:addInteger("MvaLB1", "Periods to look back", "", 20, 1, 2000));
to
strategy.parameters:addInteger("MvaLB1", "Periods to look back", "", 20, 1, 2000);

Re: MA / Price Cross Strategy

PostPosted: Tue Jul 09, 2013 4:11 am
by Apprentice
Bug Fixed.