Rent a virtual server right now!

SuperTrend Indicator to slow

Back to topics list To post a new topic, please log in or register
Botts 2012.04.20 07:25


I am using the SuperTrend indicator as part of an EA, but the indicator is very slow and is making the testing incredibly slow.

Can anyone help with how to speed it up?



Swiss pairs having some fun again
Swiss pairs having some fun again
Andrius Kulvinskas | 28 January 2015, 10:20 | Views: 36
EURCHF and USDCHF are having another run-around and so far have fallen back to 1.0228 and 0.9016  from 1.0320 and 0.9090 highs after their early session spikes from 1.0260 and 0.9030 Liquidity is still thin and pricing/spreads are variable so caution advised still  but there’s definitely some good opportunity to be had for those brave/daft enough
19730719 2012.04.20 10:49 #
   if(counted_bars > 0) counted_bars--;
   for (i = Bars; i >= 0; i--) { <---replace Bars with limit.
WHRoeder 2012.04.20 16:35 #

i = Bars is wrong. You can't access Close[Bars], it does not exist.

limit = Bars - counted_bars is wrong. When counted_bars == 0 limit points beyond.

The decrement is unnecessary Contradictory information on IndicatorCounted() - MQL4 forum

for (i = Bars - 1 - counted_bars; i >= 0; i--) {

Back to topics list  

To add comments, please log in or register