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
Here's results for getting the last bar, which should be shift = 0, to represent the current bar.
I don't understand what's going on. Try dropping the indicator on a chart and do a backtest with some test EA that uses iCustom and you will see that chart and backtest just don't tie up.
iCustom works the same if you call it from a script or an EA, and as you can see from your results it is producing correct values in both backtesting and on the charts.
There has to be something wrong with the code you're not showing, or your interpretation of the print statements generated by the code you're not showing.
I'm afraid there isn't much more I can do... iCustom works as you can see.
iCustom works the same if you call it from a script or an EA, and as you can see from your results it is producing correct values in both backtesting and on the charts.
There has to be something wrong with the code you're not showing, or your interpretation of the print statements generated by the code you're not showing.
I'm afraid there isn't much more I can do... iCustom works as you can see.
Thanks alot for your help. Much appreciated. I'll dig deeper. Chart shows me certain points when I should enter a trade, but the EA doesn't enter a trade because it doesn't have the same value as the chart. I'll try and debug further.
Once again, thanks alot!