Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vars: one_(1); one_=1;
- switch(iFastType_Long) Begin
- Case 1:
- one_=iFastLen_Long;
- vFast_Long = Average(C, one_);
- one_=1;
- Case 2:
- one_=iFastLen_Long;
- vFast_Long = XAverage(C, one_);
- one_=1;
- Case 3:
- one_=iFastLen_Long;
- vFast_Long = HMA(C, one_); //Hull moving average
- one_=1;
- end;
- switch(iSlowType_Long) Begin
- Case 1:
- one_=iSlowLen_Long;
- vSlow_Long = Average(C, one_);
- one_=1;
- Case 2:
- one_=iSlowLen_Long;
- vSlow_Long = XAverage(C, one_);
- one_=1;
- Case 3:
- one_=iSlowLen_Long;
- vSlow_Long = TriAverage(C, one_);
- one_=1;
- end;
- //SHORT-------------------------
- switch(iFastType_Short) Begin
- Case 1:
- one_=iFastLen_Short;
- vFast_Short = Average(C, one_);
- one_=1;
- Case 2:
- one_=iFastLen_Short;
- vFast_Short = XAverage(C, one_);
- one_=1;
- Case 3:
- one_=iFastLen_Short;
- vFast_Short = HMA(C, one_); //Hull moving average
- one_=1;
- end;
- switch(iSlowType_Short) Begin
- Case 1:
- one_=iSlowLen_Short;
- vSlow_Short = Average(C, one_);
- one_=1;
- Case 2:
- one_=iSlowLen_Short;
- vSlow_Short = XAverage(C, one_);
- one_=1;
- Case 3:
- one_=iSlowLen_Short;
- vSlow_Short = TriAverage(C, one_);
- one_=1;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement