SHARE
TWEET

recycler -- sample-fast-optimized-

selnomeria Mar 3rd, 2020 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. vars: one_(1); one_=1;
  2. switch(iFastType_Long) Begin
  3.     Case 1:
  4.         one_=iFastLen_Long;
  5.         vFast_Long = Average(C, one_);
  6.         one_=1;
  7.     Case 2:
  8.         one_=iFastLen_Long;
  9.         vFast_Long = XAverage(C, one_);
  10.         one_=1;
  11.     Case 3:
  12.         one_=iFastLen_Long;
  13.         vFast_Long = HMA(C, one_); //Hull moving average
  14.         one_=1;
  15.     end;
  16.    
  17. switch(iSlowType_Long) Begin
  18.     Case 1:
  19.         one_=iSlowLen_Long;
  20.         vSlow_Long = Average(C, one_);
  21.         one_=1;
  22.     Case 2:
  23.         one_=iSlowLen_Long;
  24.         vSlow_Long = XAverage(C, one_);
  25.         one_=1;
  26.     Case 3:
  27.         one_=iSlowLen_Long;
  28.         vSlow_Long = TriAverage(C, one_);
  29.         one_=1;
  30.     end;
  31. //SHORT-------------------------
  32. switch(iFastType_Short) Begin
  33.     Case 1:
  34.         one_=iFastLen_Short;
  35.         vFast_Short = Average(C, one_);
  36.         one_=1;
  37.     Case 2:
  38.         one_=iFastLen_Short;
  39.         vFast_Short = XAverage(C, one_);
  40.         one_=1;
  41.     Case 3:
  42.         one_=iFastLen_Short;
  43.         vFast_Short = HMA(C, one_); //Hull moving average
  44.         one_=1;
  45.     end;
  46.    
  47. switch(iSlowType_Short) Begin
  48.     Case 1:
  49.         one_=iSlowLen_Short;
  50.         vSlow_Short = Average(C, one_);
  51.         one_=1;
  52.     Case 2:
  53.         one_=iSlowLen_Short;
  54.         vSlow_Short = XAverage(C, one_);
  55.         one_=1;
  56.     Case 3:
  57.         one_=iSlowLen_Short;
  58.         vSlow_Short = TriAverage(C, one_);
  59.         one_=1;
  60.     end;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top