MQL4 - automated forex trading   /  

Forum

Login | Register | Language: ru cn en
Update to MetaTrader 4 build 735 and Test the VPS for Free

SuperTrend Indicator to slow

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

Hi,

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?

Cheers

Paul

 
List of 50+ Machine Learning APIs
List of 50+ Machine Learning APIs
PCWalker | 22 October 2014, 18:55 | Views: 59
Wikipedia defines Machine Learning as “a branch of artificial intelligence that deals with the construction and study of systems that can learn from data.” (If you arrived here looking for how to add or list an API to Mashape, you check out the Tutorials section here). Below is a compilation of APIs that have benefited from Machine Learning in one way or another, we truly are living in the future so strap into your rocketship and prepare for blastoff,.
avatar
110
19730719 2012.04.20 10:49 #
 
   if(counted_bars > 0) counted_bars--;
   limit=Bars-counted_bars;
   //Print(limit);
   
//----
   for (i = Bars; i >= 0; i--) { <---replace Bars with limit.
avatar
9771
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