my bad, not seen previous post, sorry
Trading correlation pairs by using the other pairs 843 replies
Export All pairs or selected pairs to .csv with script 3 replies
Pairs of Currency Pairs 4 replies
Trending Pairs / Ranging Pairs 0 replies
Robot trading 120 replies
Dislikedwhen i compile the 24H 2.8 or the last Original 1.2, an alert come up:
Function "CalculateBasketTp" is not referenced and will be removed from exp-fileIgnored
DislikedLooks like he was a bit tired, spending time here and teaching piano...man needs rest..looking at the way he is going he can compete with Carnot engine!
Ignored
DislikedWasn't in the best of all possible moods last night, was I?
I am not tonight, either, but will try to keep the nastier side of my nature in check.
Having said that, for those too dim to read back a few posts the latest Origianal is in post 1. There is nothing new in it, but the CalculateTp function is removed. That is the function that a few are too lazy to read about in the last, um, 10 posts or so.
To those of you not too dim to read the last, um, 10 posts or so, you don't need the update.
I have made an alteration to the...Ignored
DislikedDon't know. Don't understand how it works. Haven't had time to suss it out. Not clever enough to do it quickly and easily.
What I do know is this:[list][*]the basket only consists of 2 pairs.[*]one of those is GJ[*]as written, the correlation computation ignors gj[*]so it only computes the ej correlation[*]then divides the result by 2[*]which gives an untradeable reading every time I look at it - i.e. <0.7[*]when there were more than 2 pairs in the equation, the reading was often over the 0.7 threshold. As coded now, it never is,...Ignored
DislikedYeah, my mistake, what I was trying to avoid was cor("GBPJPY","GBPJPY")
I think it should be this:
Group.Cor = 0;
for(int j = 0; j < ArraySize(Pairs); j++)
{
if(Pairs[j] != Symbol())
{
Group.Cor += Cor(Symbol(),Pairs[j]);
}
}
Group.Cor = Group.Cor / ArraySize(Pairs);Ignored
DislikedIsn't that the same code that lead to merely reading the ej correlation and dividing the result by 2, thus giving a reading that is always about 0.4xxxx?
Ignored
DislikedYes, but that is the same as cutting out the loop thingy and simply sending a corr(ej) call. Dividing the result by 2 will lead to a result too small to allow trading.
If there are 5 pairs in the basket, then dividing the result of the looped call can still give a meaningful result. Not when one of the only two pairs is not included in the calculation, surely? That only leaves ej. What is ej correlating with?
Ignored
DislikedHere you go:
Group.Cor = 0;
for(int j = 0; j < ArraySize(Pairs); j++)
{
if(Pairs[j] != Symbol())
{
Group.Cor += Cor(Symbol(),Pairs[j]);
}
}
Group.Cor = Group.Cor / (ArraySize(Pairs)-1);Ignored
DislikedCheers. I figured it should be that all along, but didn't have the nous to suggest it. Ah well, can't always be at my brightest and best. Hey-ho.
Ignored