- Katılım
- 23 Eki 2020
- Mesajlar
- 1,826
See (1981 Technical Commodity Yearbook Robert M. Barnes Van Nostrand Reinhold 1981) for theory and applications. if (c - mov( c, dayf, e) > pf, { Then Action } 1, { Else Action } if ( mov( c, dayf, e) - c > pf, { Then } -1, { Else } 0)) { Notice that comments may be placed within braces } |
|
Barnes' Moving Average DayF:=Input("Enter periods:",2,100,14); PF:=Input("Enter periods:",2,100,7); if (c - mov( c, dayf, e) > pf, { Then Action } 1, { Else Action } if ( mov( c, dayf, e) - c > pf, { Then Action } -1, { Else Action } 0) ) |
Source / From:
http://www.guppytraders.com