I have added "#property strict" but it still compiles successfully.
When I change "int start()" to "int OnCalculate()" I get an error.
I was hoping somebody could have a look at the code to see if there is in fact something causing the problem since i have never coded an indicator.
In the ST, if you leave the mouse cursor static, the data window does not always update values.
Make sure that this is not the problem.
In the ST, if you leave the mouse cursor static, the data window does not always update values.
Make sure that this is not the problem.
This is interesting!
Do I understand correctly that I have to move the mouse cursor all the time while the ST is running - or am I understanding this wrongly?
Why would it matter which chart period and indicator settings I am using?
I am using it on the Daily timeframe (this is a multi-timeframe indicator) but running the test on the H4 or H1 time frames.
I think the problem lies with the fact that this is a mtf indicator and I use a higher time frame for the indicator than the tf for the chart it is run on.
I am also experiencing difficulties with running this indicator in a simulator. If I use a different tf in the indicator than the chart tf I am doing the simulation on no values for the indicator appears on the chart.
Is there a way one can overcome this? I find this indicator of great value and really would like to make use of it in the ST and/or simulator.
I think the problem lies with the fact that this is a mtf indicator and I use a higher time frame for the indicator than the tf for the chart it is run on.
I am also experiencing difficulties with running this indicator in a simulator. If I use a different tf in the indicator than the chart tf I am doing the simulation on no values for the indicator appears on the chart.
Is there a way one can overcome this? I find this indicator of great value and really would like to make use of it in the ST and/or simulator.
I discovered another problem with this indicator.
Since it is a mtf indicator you can set the timeframe parameter either as 0 (which means it defaults to the current timeframe which it is loaded on) or you can set the timeframe in hours like e.g. 240 for the H4.
If you use the different methods on an H4 chart you get differences in the results as shown in the image below with the red vertical lines. That is incorrect - they should be exactly the same!
The top one is set to 240 as in the image and the bottom one is set to 0 on a H4 chart. They both show H4 as the timeframe.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Can any body tell me why this indicator does not work in the strategy Tester although it works fine on a chart?
The problem is that in the Strategy Tester (ST) it is stuck stuck on only one of the two possible values (50.0000) of the two index buffers. The image below shows that in the ST the value is stuck on 50.000 for the second buffer (window 3) while it should actually be 50.0000 in the first buffer as shown in window 4. It never changes values in the ST - it stay 50.0000 in the one buffer although the trend changes all the time.
Here is the code for the indicator: