Can experts translate this simple ts,simple but profitable.
Thanks
Var = mom,media;
installstoploss(inperc,3,"stoploss");
mom=momentum(C,200,D);
media=mov(C,200,e);
if positiondir=0 AND V>V[1] then
if mom>0 AND C>media then
enterlong(nextbar,atopen);
endif;
if mom<0 AND C<media then
entershort(nextbar,atopen);
endif;
endif;
if positionlong AND mom<0 then
exitlong(nextbar,atopen);
endif;
if positionshort AND mom>0 then
exitshort(nextbar,atopen);
endif;
Thanks
Var = mom,media;
installstoploss(inperc,3,"stoploss");
mom=momentum(C,200,D);
media=mov(C,200,e);
if positiondir=0 AND V>V[1] then
if mom>0 AND C>media then
enterlong(nextbar,atopen);
endif;
if mom<0 AND C<media then
entershort(nextbar,atopen);
endif;
endif;
if positionlong AND mom<0 then
exitlong(nextbar,atopen);
endif;
if positionshort AND mom>0 then
exitshort(nextbar,atopen);
endif;