NexusFi: Find Your Edge


Home Menu

 





RSI different between indicator and function


Discussion in EasyLanguage Programming

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




 
Search this Thread

RSI different between indicator and function

  #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?
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts