Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 10:03:47 +0000



Post From: ACSIL - Can the RSI W be called from an Advanced Custom Study

[2015-06-30 22:59:45]
CMG - Posts: 179
Hello, I am coding a system where I use both a Moving Average and the RSI W, I am calling both functions from the Study. The Moving Average works perfectly but when combined with the RSI, it blocks the Moving Average data processing. I am just doing the typical moving average crossover and RSIW>X. Do you have any samples of this type of code or any thoughts?

// Calculate a simple moving average from the base data
  sc.SimpleMovAvg(sc.Close,Average,50);
  
//Calculate RSIW from the base data
  sc.RSI(sc.Close,RSIW,MOVAVGTYPE_SIMPLE,14);