Rating: Empty Star Empty Star Empty Star Empty Star Empty Star
Outlook Indicator in Expert Advisor

Member Since Feb 20, 2012  2 posts ghoffx Jul 04 at 02:21
I recently got the Outlook Indicator from myfxbook, and my idea was to try to use it in an EA, but I met problems doing so.
It seems the indicator needs to be refreshed to get the data, and if it's not, using iCustom() returns a big number like 2147483647 for all lines (lots/positions short/long).
Sometimes when the indicator is attached to the graph and after changing time frame the values I get are correct (at least for the most recent ~1000 bars, then it's 2147483647 again).

I found out that if the indicator is added to a graph it can be refreshed manually (right click on indicator's name + refresh), then it would load more older data, and this can be repeated until the maximum of ~10000 bars is loaded, as claimed by myfxbook.
The problem I think is that there is no way to refresh the 'current state' of the indicator before calling it with iCustom().

I tried to backtest from the oldest data availaible on a chart period to now, print the values of the indicator, but it always return the wrong value 2147483647, even with the most recent bars. I guess the tester runs without waiting for the indicator to get the data for the bar it's testing.

Did someone managed to make this indicator work with an EA and more importantly have it work in the backtester ?

Please login to comment.
EURUSD 1.17601 GBPUSD 1.30714
USDJPY 105.983 USDCAD 1.33929







Twitter |  Facebook |  Site Map  |  Terms  |   Privacy Policy
©2020 Myfxbook Ltd. All Rights Reserved.
HIGH RISK WARNING: Foreign exchange trading carries a high level of risk that may not be suitable for all investors. Leverage creates additional risk and loss exposure. Before you decide to trade foreign exchange, carefully consider your investment objectives, experience level, and risk tolerance. You could lose some or all of your initial investment; do not invest money that you cannot afford to lose. Educate yourself on the risks associated with foreign exchange trading, and seek advice from an independent financial or tax advisor if you have any questions. Any data and information is provided 'as is' solely for informational purposes, and is not intended for trading purposes or advice. Past performance is not indicative of future results.