Source: https://fxcodebase.com/code/viewtopic.php?f=31&t=63218
Forum: 31 · Topic 63218 · 2 post(s)
Apprentice · Fri Mar 04, 2016 1:38 pm

Vetrivel systems by Gomu Vetrivel As described in the article November 2005 issue of Technical Analysis of STOCKS & COMMODITIES magazine.
Base System var:x(0); x=absvalue(c-c[1]); if c>average(c,10) and c[1]<average(c,10)[1] then buy at c; if c<average(c,10) and c[1]>average(c,10)[1] then sell at c;
Hypothesis 1 x=absvalue(c-c[1]); if x>x[1] and c>average(c,10) and c[1]<average(c,10)[1] then buy at c; if x>x[1] and c<average(c,10) and c[1]>average(c,10)[1] then sell at c;
Hypothesis 2 x=absvalue(c-c[1]); if x<x[1] and c>average(c,10) and c[1]<average(c,10)[1] then buy at c; if x<x[1] and c<average(c,10) and c[1]>average(c,10)[1] then sell at c;
Exit (all three systems) if marketposition=-1 and c>average(c,5) then exitshort at c; if marketposition=1 and c<average(c,5) then exitlong at c;
The Strategy was revised and updated on January 21, 2019.
Apprentice · Sat Dec 23, 2017 12:55 pm
The strategy was revised and updated.