I have attached 2 indicator that correspond to the display of the angle (in degree) in form of histograms and the slope of the moving average (in radius) and its moving average
Nice! Would you mind if I had them in the library too? Angle of MA is an indicator very often asked by people.
I have attached 2 indicator that correspond to the display of the angle (in degree) in form of histograms and the slope of the moving average (in radius) and its moving average
Nice! Would you mind if I had them in the library too? Angle of MA is an indicator very often asked by people.
@Nicolas
Yes you can had it into the library 🙂
My computer/PRT froze in the middle of the night, so i started it again at work today, but sadly PRT shutdown cus it had been “on” for so long. I didnt manage to save any pics.. Results where a 24% walk forward, so not supergreat. Each period had about 20K combinations so obviously it was a huge test and much that could go wrong. Overall the equitycurve didnt look too shabby, i ran 5 periods, only 1 was negative, rest was positive and OK looking.
Was really hoping to analyze it more, might run the test again later.
At the same time i ran an optimization of the same variables from 2016 june -> 2018 July, and kept rest as out of sample. it looked surprisingly good. But then again, i ran optimization on already optimized variables so.. why wouldnt it look good.
All in all, if it keeps performing good for the next 6 months i might as well run it live. My main issue is the “very little” data (few years) that we got..
i had the same idea weeks ago and i used this formula, i don’t know if could help if is similar or mine is completely wrong 😀
ema15=average[15,ave](typicalprice)
c2 = (sin(atan((ema15-ema15[1])/ema15[1]*100)))*1000
1 2 ema15=average[15,ave](typicalprice)
c2 = (sin(atan((ema15-ema15[1])/ema15[1]*100)))*1000
@GianLuca
What is the variable “ave” ? I think the best thing it to create a indicator with the instruction “RETURN” and after watching the price action.
You also can test it manually and / or make a bactkest.
‘ave’ is any value from 0 to 6 for the average type.
See here:
Average
Here is the indicator as I was already testing it:
p = 15 //Average period
type = 0 //0 to 6
ma=average[p,type](typicalprice)
c = (sin(atan((ma-ma[1])/ma[1]*100)))*1000
return 0, c
@Giancula @Vonasi
This is my method to calcutate the angle of EM10 on 20 periods. The result is in degree and thick headed between – 90° and + 90° (see the picture below).
Periode = 10 //EMA Period
nbChandelier= 20 // Number of Candles
MM = Exponentialaverage[Periode](close)
ADJASUROPPO = (MM-MM[nbchandelier]*pipsize) / nbChandelier
ANGLE = (ATAN(ADJASUROPPO)) //ARC TANGENT trignometric function
RETURN angle as "Angle"
When i try with your code i don’t have the same result ans the same curve…
Balmora74 – Please use the ‘Insert PRT Code button when posting code. I tidied it up for you!
We should all be aware that it is impossible to calculate a slope in degrees as we do not know what the x value is. All we can do is give the slope a relative value that is an indication of the amount of gradient up or down.
Please use the ‘Insert PRT Code button when posting code. I tidied it up for you! We should all be aware that it is impossible to calculate a slope in degrees as we do not know what the x value is. All we can do is give the slope a value that is an indication of the amount of gradient up or down.
So there is a mistake in my approach ?
So there is a mistake in my approach ?
Only if you think that you are calculating degrees. The only thing we know about the value x is that it is the distance from one bar to the next bar but how do we give that a quantity in pips? We can however know the value of y which we can at least measure in pips.
Ok i understand ! It’s not the same units. Y is in pips and X is the difference between 2 bars…. So If we change the scale of the graphic X will change but not Y… But the strange thing it that the strategy seems to work… !
which variables are you guys optimizing when you choose a new index or forex for this system?
I would like to have this system for eur/usd and for france. Anyone can check if its possible? Thanks a lot!
which variables are you guys optimizing when you choose a new index or forex for this system?
I would like to have this system for eur/usd and for france. Anyone can check if its possible? Thanks a lot!
All answers and ideas are in the answers above of this file of discussion…
Here is the indicator as I was already testing it:
|
|
p = 15 //Average period
type = 0 //0 to 6
ma=average[p,type](typicalprice)
c = (sin(atan((ma–ma[1])/ma[1]*100)))*1000
return 0, c
|
i am using it as a filter in many trategies and for me is working very good.
you can also use the R2 function and results are also good. this is the code
once PERIODO = 90
i1 = R2[PERIODO](close)