the formula for UPs and Downs is the change in SMA
line 25 1.770463
line 26 1.770540
Up = "0.000077"
line 27 1.770640
Up = "0.000100"
line 28 1.770770
Up = "0.000130"
PS: Remember that in my routine, I start from the beginning of the chart whereas (I think) MT4 starts from the last bar and works backwards.
I have made some edits to my original post.
but it looks ok now
html doesnt like leading zero apparently
I have changed code. Now we have RSI with SMA calculation only.
I am downloading now and will test it again during today
Fingers crossed that all is well
sorry about this, but there is a problem.
In order to see what I mean , would you please put up a chart with the following details.
GBPUSD - 5min line chart
SMARSIv2 - RSIPeriod=45; MAPeriod=144;Price=0;Smooth=1.
There appear violent swings from 100 to 0 followed by complete reversals.
I will post a chart shortly.
ok, here is the chart
This problem also occurs with other settings
I have found bug in original code, has already corrected.
we try again
Igor / newdigital
I think we can now give it the thumbs up
Have tested it with several widely varying settings .
close enough for jazz.
There are very very minor differences but I will put that down to the limitations of my own software.
Igor - once again many thanks, it is appreciated believe me.
changed SMARSI_v2 too be used in EAs. The functions you are interested are rsi & rsiBuff, copy & paste in EA and use "rsi" instead of iCustom call.