NexusFi: Find Your Edge


Home Menu

 





RSI different between indicator and function


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,783 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
ivanyu
Hong Kong
 
Posts: 15 since Jul 2013
Thanks Given: 0
Thanks Received: 1

Hi,

I am new to EasyLanguage on MultiCharts.

Because I cannot use the indicator output directly inside a strategy, I called RSI function in my strategy, then add RSI indicator to the same data series, then when I cross check the RSI values in the indicator data box vs. print statements (output from RSI function call), I see different values.

I have already manually set MaxBarsBack to be 50 in both strategies and indicator, and yet the RSI values are still different. I have checked that the input params are the same to the function vs the indicator.

I have also checked the values that are max bars back apart, e.g. bar number 100 in indicator, vs, bar number 150 in strategy function call, RSI values are also different. I also checked RSI for the same bar time between indicator and strategy function call, still different.

However, when I call a different function and do the same, e.g. Keltner channel, I do not see this issue. Indicator values and function call values are the exact same.

I am totally lost as to why this happens....

Hope someone can shed some light and advice on this for me.

Thank you very much!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
Strike Pause Holds, Oil Erases Monday Spike -- May CPI W …
Traders Hideout
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
May 26 Deadline Dies at 7.5% as US Strikes Iran During C …
Prediction Markets & Event Contracts
 
  #3 (permalink)
 NW27 
Newcastle, Australia
 
Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker: IB
Trading: SPI,FTSE100, 6E, 6A
Posts: 285 since Oct 2010
Thanks Given: 108
Thanks Received: 188


Try printing the RSI in the strategy directly onto the chart ie print a * and it should print on top of the rsi plot.

Option 2. Calculate the rsi in a function and use the same function in the plot and strategy.

Regards,
Neil.


Reply With Quote
  #4 (permalink)
ivanyu
Hong Kong
 
Posts: 15 since Jul 2013
Thanks Given: 0
Thanks Received: 1

Now the market is closed with no more live ticks, values do match between indicator and my function call inside strategy...

Need to try again Monday.


Reply With Quote




Last Updated on August 17, 2013


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts