Saidar wrote >>
Is there some way to load the data from all the currency pairs before doing the calculations? I think the correct values are not load correctly before the calculations are done.
Thanks Gordon,
I checked my history center, all currencies have data loaded for the day1 timeframe.
The problem still persists.
The only currency that is calculated correctly is the currency that I am on at the moment (window opened).
You forgot to reset R20 at the end of each iteration. Also should divide by a different Point for each pair - via MarkInfo(symbol, MODE_POINT).
Wait, I see a patter emerging here.
When I'm on a a JPY pair the USD and EUR and other similar pairs are divided by a factor of 100, when I'm on a USD and EUR pair the JPY pairs are increased with a factor of 100.
What?????
I think I was editing my previous post while u were posting... Again - "should divide by a different Point for each pair - via MarkInfo(symbol, MODE_POINT)".
Oh ok,
Thanks Gordon, you are my hero
Ok, all seems fine now. Look at the results:
EURUSD,1646
USDJPY,1212
GBPUSD,1744
USDCHF,1172
USDCAD,1303
AUDUSD,1070
NZDUSD,940
EURGBP,1030
EURJPY,2485
EURCHF,626
GBPCHF,309
GBPJPY,2796
AUDJPY,208
CHFJPY,174
EURCAD,1701
EURAUD,1509
AUDCAD,826
AUDNZD,1021
NZDJPY,1503
AUDCHF,1146
EURDKK,129
EURNZD,2086
GBPNZD,2597
NZDCHF,975
USDCZK,70835
USDDKK,7141
USDMXN,17206
USDPLN,6931
USDSGD,830
USDZAR,13559
GBPCAD,1842
CADJPY,2002
Do they look fine to you? The MXN and CZK pairs seems a little high to me?
UPDATE: If you look on the chart they seem to be accurate. This is quite insane hey exactly why I wanted this tool.
Thanks again for your help
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I'm having some difficulty writing a script that will calculate the average pip movement over a period of 20 days for every currency pair, and then exporting those values to a .csv file.
Here is the code:
Now, my problem is the following:
The code seems to work fine, but if I run the script, all values except the timeframe that I am on is rubbish. If I go the another currency window, then that currency value is correct except all of the other currency pairs.
What can be the problem? Is there some way to load the data from all the currency pairs before doing the calculations? I think the correct values are not load correctly before the calculations are done.
Thanks!