Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 05:15:32 +0000



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

View Count: 1034

[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);
[2015-07-01 07:22:58]
Sierra Chart Engineering - Posts: 104368
Here is the example function call:

  sc.RSI(sc.BaseDataIn[SC_LAST], RSIW, MOVAVGTYPE_WILDERS, 14);
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2015-07-01 15:34:24]
CMG - Posts: 179
One last question, when I call both functions on the same study(moving average and RSI) how do I set the 2 separate sc.GraphRegion on the default settings ?

Thanks in advanced!

PV

#girlcoding
[2015-07-01 17:50:13]
Sierra Chart Engineering - Posts: 104368
You cannot do this. A study can only display in one Chart Region.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account