MetaTrader 5 and Python problems with RSI and Alligator chart integration

 

How can I implement RSI and Alligator on the same chart?

I am developing a robot in Python to automate trading operations. I saw that RSI works in a range from 0 to 100 while Alligator works around the maximum and minimum value of the candles.

However, I saw that in MetaTrader 5 on the cell phone it is possible to integrate the 2 indicators on the same chart.

Do you know what is the logic to follow in this case?

I tried to normalize the Alligator values in a range from 0 to 100 but it is very inaccurate, what would be the correct way to do it?

def normalize_series(series, target_min=0, target_max=100):
    min_val = series.min()
    max_val = series.max()
    normalized = (series - min_val) / (max_val - min_val) * (target_max - target_min) + target_min
    return normalized
 

On the MetaTrader platform, even if you place both those Indicators on the same window, they will work independently of each other.

They will not share a common scale or units and it is simply a visual illusion to think that they are interacting with each other.

In summery, you will not be able to have any communality between them. They have different units and scale. They are not compatible with each other.

 

On a side note, you can however apply the Alligator to the RSI's data itself, instead of the price data.

In other words, it would be 3 moving averages of the RSI data (not the price quotes).

 
Fernando Carreiro #:

On the MetaTrader platform, even if you place both those Indicators on the same window, they will work independently of each other.

They will not share a common scale or units and it is simply a visual illusion to think that they are interacting with each other.

In summery, you will not be able to have any communality between them. They have different units and scale. They are not compatible with each other.

Thanks for the answer, however I still have doubts as I am following a trading strategy that involves the RSI, Alligator and other indicators of different scales on the same chart, deciding when to open or close a position by the interaction between them.

In other words, would this strategy be wrong as there is no communication between these values on the same chart?

In the MetaTrader 5 chart, how does the placement of indicators (RSI, Alligator, etc.) on the same chart work, is it only visual?
 
arturolume #: In other words, would this strategy be wrong as there is no communication between these values on the same chart?

The standard Alligator is just 3 different moving averages of the quote price. Its units and scale are that of the price. RSI on the other hand is of a fixed scale, oscillating between 0 and 100.

They cannot be compared and any such "strategy" that compares their interaction is probably fake nonsense, unless the Alligator is applied to the RSI data and not the price data as I explained.

arturolume #: In the MetaTrader 5 chart, how does the placement of indicators (RSI, Alligator, etc.) on the same chart work, is it only visual?

They simply share the same space. They behave as if they were on separate windows of the same size where MetaTrader scales and shifts them dynamically independently based on their individual current range in that window.

There is absolutely no real interaction between them, unless the Alligator is applied to the RSI data and not the price data as I explained.