NexusFi: Find Your Edge


Home Menu

 





Any ideas on how to program this?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one c12345 with 6 posts (1 thanks)
    2. looks_two Trader.Jon with 2 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 sam028 with 1 posts (0 thanks)
    1. trending_up 4,028 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 9 posts
    2. attach_file 9 attachments




 
Search this Thread

Any ideas on how to program this?

  #1 (permalink)
c12345
PA
 
Posts: 81 since Sep 2009
Thanks Given: 4
Thanks Received: 47

Any idea on how to program this to track the different currency pairs?

Any input is appreciated.

Thanks

Attached Thumbnails
Click image for larger version

Name:	CCYX-.jpg
Views:	319
Size:	65.0 KB
ID:	20099  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
How to apply profiles
Traders Hideout
About a successful futures trader who didnt know anythin …
Psychology and Money Management
 
  #3 (permalink)
c12345
PA
 
Posts: 81 since Sep 2009
Thanks Given: 4
Thanks Received: 47


The CCYX:
Currency Strength Index “CCYX” disassembles every pair and isolates the individual currencies.

Im trying to figure out what it measures the different pairs against...?

Reply With Quote
  #4 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

I think it's one currency vs a basket of all major curencies, so you can have USDX, EURX, etc.
Found from another website:
Quoting 
Current USDX volume is calculating as weighed average geometrical volume of six word’s currencies rate changing (Japan yen, Euro, British pound, Canadian dollar, Swiss frank and Swedish crone) to the US dollar.

USDXt=50,14348112 x (EURt)–0,567 x (JPYt)0,136 x (GBPt)–0,019 x (CADt)0,091 x (SEKt)0,042 x (CHFt)0,036

The base of the index is the basket of six currencies which form the main volume of US foreign trade turnover. Most part of the international trade volume goes with Eurozone (57,6 %), then Japan - 13,6 %, Great Britain - 11,9 %, Canada - 9,1 %, Sweden - 4,2 % and Switzerland - 3,6 %

The ratios are not good anymore, it was an old post.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
  #5 (permalink)
c12345
PA
 
Posts: 81 since Sep 2009
Thanks Given: 4
Thanks Received: 47

If you watch the video:
YouTube - FOREX CURRENCY STRENGTH CHART - TradingFX.com [AUTOLINK]Range[/AUTOLINK] Bar Charts

It discusses that its looking the individual pairs, and then plotting them vs the net-change, I believe.. I have to listen to it a few more times, and catch that part again.. But you can sign up for a demo of it.. I do find it very helpful.. BUT the 297/00 month price tag is getting expensive....

There is another post over at forexfactory talking about a similar indicator for MT4:
Spaghetti Indicator !!! (28 Pair Relative Strength ) @ Forex Factory

I posted a few screen shots of this running in MT4.

Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	223
Size:	76.6 KB
ID:	20163   Click image for larger version

Name:	2.png
Views:	222
Size:	56.3 KB
ID:	20164  
Reply With Quote
  #6 (permalink)
c12345
PA
 
Posts: 81 since Sep 2009
Thanks Given: 4
Thanks Received: 47

I've posted below some examples of the indicator vs the one developed in NT 7.0

As you can see it looks similar, but NOT exactly similar... Not sure if anyone had any input or suggestion on the math formula..

The formula used is summarized:

EURUSD is up .001 on the day(USD is base, so we give negative multiplier)
USDJPY is up .001 on the day (USD is quote, so we give positive multiplier)
USDCAD is down .002 on the day (USD is quote, so we give positive multiplier)

I then divide the net change for the day by the ticksize for the pair.

EURUSD = 10
USDJPY = 10
USDCAD = -20

So our formula would be:

EURUSD*-1 + USDJPY*1 + USDCAD*1
USD = (10*-1) + (10*1) + (-20*1) = -20


If the colors are hard to read, here is the output in comparison from mine to theirs (My Results are on the LEFT)
My 15 MIN WHITE IS: THEIR ORDER:
GBP GBP --> Correct
EUR EUR --> Correct
NZD CAD
USD AUD
CAD USD
AUD NZD
CHF CHF --> Correct
JPY JPY --> Correct

MY 1 MIN ORDER: THEIR ORDER:
GBP GBP --> Correct
EUR EUR --> Correct
NZD CAD
CAD AUD
USD USD
AUD NZD
CHF CHF --> Correct
JPY JPY --> Correct

MY 5 MIN ORDER: THEIR ORDER:
GBP GBP --> Correct
EUR EUR --> Correct
NZD CAD
CAD AUD
USD USD
AUD NZD
CHF CHF --> Correct
JPY JPY --> Correct

Any suggestions for getting it JUST right, would be very helpful.....

Attached Thumbnails
Click image for larger version

Name:	CCYX-2.png
Views:	202
Size:	783.6 KB
ID:	20278   Click image for larger version

Name:	CCYX-3.png
Views:	191
Size:	711.0 KB
ID:	20279   Click image for larger version

Name:	CCYX-4.png
Views:	179
Size:	695.7 KB
ID:	20280  
Reply With Quote
  #7 (permalink)
c12345
PA
 
Posts: 81 since Sep 2009
Thanks Given: 4
Thanks Received: 47

Here are shots of the one that I am trying to get working....

Attached Thumbnails
Click image for larger version

Name:	1-MIN.jpg
Views:	180
Size:	152.7 KB
ID:	20282   Click image for larger version

Name:	5-MIN.jpg
Views:	207
Size:	138.2 KB
ID:	20283   Click image for larger version

Name:	15-MIN.jpg
Views:	208
Size:	132.0 KB
ID:	20284  
Reply With Quote
Thanked by:
  #8 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184


c12345 View Post
I've posted below some examples of the indicator vs the one developed in NT 7.0If the colors are hard to read, here is the output in comparison from mine to theirs (My Results are on the LEFT)
My 15 MIN WHITE IS: THEIR ORDER:
GBP GBP --> Correct
EUR EUR --> Correct
NZD CAD
USD AUD
CAD USD
AUD NZD
CHF CHF --> Correct
JPY JPY --> Correct

MY 1 MIN ORDER: THEIR ORDER:
GBP GBP --> Correct
EUR EUR --> Correct
NZD CAD
CAD AUD
USD USD
AUD NZD
CHF CHF --> Correct
JPY JPY --> Correct

MY 5 MIN ORDER: THEIR ORDER:
GBP GBP --> Correct
EUR EUR --> Correct
NZD CAD
CAD AUD
USD USD
AUD NZD
CHF CHF --> Correct
JPY JPY --> Correct

Any suggestions for getting it JUST right, would be very helpful.....

Do you have to have it 'just right' ?? Maybe I am misunderstanding: is the plan to trade the pair that has the max difference at a point in time? Since I dont see timestamps anywhere it is difficult to look at history ... for the dat in question it looks like Pound gained strength and Yen weaken, so the GBPJPY would be developing the best potential for momentum in a trade?? From the looks of your results you have a workable solution already.

Otherwise, I personally would consider a ROC(LinReg(Ratio2Instruments)) type of experiment to see what type of output you get, but yours looks very doable.

As said, I must be missing something ... ?

Keep up the great work !!

Jon
Jon

Reply With Quote
  #9 (permalink)
c12345
PA
 
Posts: 81 since Sep 2009
Thanks Given: 4
Thanks Received: 47

UPDATE:

I corrected the main formula used to determine the overall strength/weakness of the different currencies, and so far so good, it needs a few minor tweaks done, more cosmetic than anything, but its doing what we want it to do. Will post some screen shots when I have some time..

Reply With Quote
  #10 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184


Are you making any adjustment for time of day or volatility at time of day? Ratios are interesting, and potentially could be redundatnt if a pair is at the time of day where that market is too thin but still modifing the calculations affecting other pairs.

Jon

Writing to you from the wonderful province of Ontario, Canada. Home to the world's biggest natural negative ion generator, the Niagara Falls, and to those that dare to know how to go over it in a barrel. SALUTE!
Reply With Quote




Last Updated on March 8, 2011


© 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