Linking indices to trade currency pairs

Avatar
  • updated
  • Completed

As of now, we are trading based on Identify Trend, TDI in default set for EURUSD.

In my opinion, we can trade better by linking our trades to movement of Dollar Index (DXY). Please look into the possibilities of adding the feature.

This will be really helpful in trading all the USD pairs including Gold(XAUUSD) and silver(XAGUSD).

Avatar
1
Quote from Ulises Cune

As we have already discussed on telegram. I leave a strategy where a Custom indicator is used with the Dollar Index and TDI.

https://www.mql5.com/en/code/20563

I have removed the USDSEK pair since my broker does not have that pair. I know it's not right, because the dollar index is not calculated that way, but... I don't have that pair.

Image 4557

USDX_Candle.mq5

Strategy_EURUSD__TDI_CustomIndy1_USDX_Candle.set


Image 4560

Good job!

Be careful, you need to load the history for all symbols used for index calculation, indicator may not do this correctly in the strategy tester.

Avatar
1
Ulises Cune
Quote from Andrey Khatimlianskyi

Good job!

Be careful, you need to load the history for all symbols used for index calculation, indicator may not do this correctly in the strategy tester.

I found this library of yours. Adding that would already solve the problem to which you refer?

https://www.mql5.com/es/code/1251

https://www.mql5.com/en/code/1251

Image 4569

Avatar
0
Quote from Ulises Cune

I found this library of yours. Adding that would already solve the problem to which you refer?

https://www.mql5.com/es/code/1251

https://www.mql5.com/en/code/1251

Image 4569

I don't think so. It will not help with backtesting.

Avatar
1
Ulises Cune

If I add all 28 pairs then backtest all of them, I understand that all the history of all the pairs is downloaded.

Image 4571

Image 4572

Avatar
0
Quote from Ulises Cune

If I add all 28 pairs then backtest all of them, I understand that all the history of all the pairs is downloaded.

Image 4571

Image 4572

Yep, that's exactly what I meant. Good job!

Avatar
1
Ulises Cune
Quote from Ulises Cune

As we have already discussed on telegram. I leave a strategy where a Custom indicator is used with the Dollar Index and TDI.

https://www.mql5.com/en/code/20563

I have removed the USDSEK pair since my broker does not have that pair. I know it's not right, because the dollar index is not calculated that way, but... I don't have that pair.

Image 4557

USDX_Candle.mq5

Strategy_EURUSD__TDI_CustomIndy1_USDX_Candle.set


Image 4560

Thanks @Sai for reminding me that the USDX index signal for EURUSD, the signal is reversed. So the strategy should be modified by changing the property from false to true. "Reverse=true"

Image 4604

Image 4605

Avatar
3
Andrey Khatimlianskyi
  • Completed

Guys, you can choose a symbol for most filters with CP 2.55.1 - https://t.me/CommunityPowerNews/136

I think this task can be marked as Done.

Avatar
0
aramabdo


Can someone please make a sample set how to use this new feature (symbol for filters with CP 2.55.1)?