RedeeCash Rate of Change
- 지표
- Patrick Odonnell Ingle
- 버전: 1.0
변화율
공식을 기반으로,
ROC = (Close[n] - Close[n-lookback]) / Close[n-lookback] * 100
룩백 기간 동안 통화 쌍 가격 행동의 변화율을 표시하고 최신 변화율 값과 이전 룩백 기간의 변화율을 나타내는 두 개의 전역 변수 SYMBOL_ROC 및 SYMBOL_ROC_LOOKBACK을 제공합니다.
iCustom 함수를 사용하여 표시기 호출,
iCustom("Market/RedeeCash_Rate_of_Change.ex4",Symbol(),5 ,0,0);
그런 다음 전역 변수를 검색합니다.
double roc = GlobalVariableGet(StringConcatenate(Symbol(),"_ROC")); double roc_lookback = GlobalVariableGet(StringConcatenate(Synbol(),"_ROC_LOOKBACK"));
추세를 확인하기 위해 테스트를 수행하고,
if (roc > roc_lookback && roc > 0) trend="UP"; if (roc < roc_lookback && roc < 0) trend="DOWN";