You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The Data window reports the bar's value at mouse point/hover. While the Journal will print at incoming tick. Not a good idea (a poor choice) when the values you want to see comes from a loop. The journal tab will certainly lags & shows an unfinished data on top of unfinished data.
Have a look at the same problem a while back. Hope it helps.
PS: Double check also that your iCustom quantity & inputs in indicator match those in the EA.
The Data window reports the bar's value at mouse point/hover. While the Journal will print at incoming tick. Not a good idea (a poor choice) when the values you want to see comes from a loop. The journal tab will certainly lags & shows an unfinished data on top of unfinished data.
Have a look at the same problem a while back. Hope it helps.
PS: Double check also that your iCustom quantity & inputs in indicator match those in the EA.
Hi cameofx,
thanks for answering, my problem is a little bit different. I printed my indicator values at Bar3. However in the Data Windows with the mouse point on same bar as the printout, the values are differents. I thought that if I print for example tha value iCustom(NULL,0,"My Indicator",0,3) at 02:25 in a 5 min chart and compare it with Data Window at 2:10 the values should match. In my case it doesn't. Am I wrong?
thanks for answering, my problem is a little bit different. I printed my indicator values at Bar3. However in the Data Windows with the mouse point on same bar as the printout, the values are differents. I thought that if I print for example tha value iCustom(NULL,0,"My Indicator",0,3) at 02:25 in a 5 min chart and compare it with Data Window at 2:10 the values should match. In my case it doesn't. Am I wrong?
To my knowledge, the time on the left side of the Journal doesn't correlate with the 'Bar Time' (i.e. the 5 min bar Open time) if that's what's you meant.
Try this instead:
Since we need to make sure we're comparing values of the same bar from both the EA and Indy, print the bar count/index and the TimeToStr(Time[i],TIME_DATE|TIME_SECONDS); along with the values. And the Open[i] value for comparison control.
Don't forget to NormalizeDouble the values to the same digits.
Of course also 'label' them with 'EA' or 'Indy'. Then print them both either with Alert() or Print().
[Added] Don't print inside a loop with 'i' !! But print just the index you need (3).
The point is to make a valid comparison.
To my knowledge, the time on the left side of the Journal doesn't correlate with the 'Bar Time' (i.e. the 5 min bar Open time) if that's what's you meant.
Try this instead:
Since we need to make sure we're comparing values of the same bar from both the EA and Indy, print the bar count/index and the TimeToStr(Time[i],TIME_DATE|TIME_SECONDS); along with the values. And the Open[i] value for comparison control.
Don't forget to NormalizeDouble the values to the same digits.
Of course also 'label' them with 'EA' or 'Indy'. Then print them both either with Alert() or Print().
[Added] Don't print inside a loop with 'i' !! But print just the index you need (3).
The point is to make a valid comparison.
That is what I did, I didn't used the journal for comparisons, I prit it to a file, then compared for same time. Let me show you the printed file and attached is the indicator. After running go to the Data Window and compare boths results for same time. In my chart they are differents.
This is my start() in the EA.
Try these on M1... they confirmed identical values on my test. Whenever I need to verify something I usually stripped it down to one buffer like this & work my way to more array/variable etc. Hope this helps.
PS : Make sure the Indy file name matches, attaching file names without underscore gets renamed I forgot.
PPS : I use Alert() with sound disabled. Tools >> Options >> Evants >> untick 'Enable' box.
Try these on M1... they confirmed identical values on my test. Whenever I need to verify something I usually stripped it down to one buffer like this & work my way to more array/variable etc. Hope this helps.
PS : Make sure the Indy file name matches, attaching file names without underscore gets renamed I forgot.
PPS : I use Alert() with sound disabled. Tools >> Options >> Evants >> untick 'Enable' box.
Thank you, nice tool. I can see there is no errors in the values that the indicator return to the alert window. So, what is causing the wrong values ended up in the log file? Is it some kind of delay? Is Alert faster than Print? Can you shed some light on this.