Forum

Add an EMA on a custom indicator

Hi, I created a simple custom indicator to display a ratio between 2 instruments. It's display a line, calcul is ok. But now i want to add an EMA7 on this custom indicator and when i try it display nothing. Could you help me? Thanks in advance :) My code

Indicator correctly displayed in debug mode, but doesn't display any value when I add it below a chart

I try to create an indicator (i'm a beginner) and I have a problem to display my indicator below a chart. In MetaEditor, when I press F5 to start the debug, a window opens with a chart and my indicator displays correctly below the chart (I see good values and the indicator is updated correctly at

Apply the RSI on a custom calculation rather than on a symbol

Hi, I try to calculate an indicator using RSI (and then use it in an EA). But I don't want to apply the RSI to a symbol, I need to apply the RSI to a calculation I'm doing between different instruments. For the example, I am calculating a ratio between 2 symbols: DowJones and Nasdaq. ratio = DJ/NQ