Help me program interpolation and extrapolation. Tried to figure out complicated examples (like extrapolator indicator), but couldn't. I tried to find something similar, but there is no interpolation anywhere, only averaging. The picture shows an example of such interpolation and extrapolation based on the Fourier transform. How can I get a function BETWEEN BARs to be plotted not as a straight line but, for example, as a cubic polynomial or in some other way (not fundamental)? At least simple examples, the extract itself or links, not necessarily with mathematics. Thank you!
What may be the problem, the Expert Advisor passes the test in the tester on the demo, but in the tester on the real account it fails. I have the same conditions.
//| Автор : Ким Игорь В. aka KimIV, http://www.kimiv.ru/ |//+----------------------------------------------------------------------------+//| Версия : 19.02.2008 |//| Описание : Возвращает цену открытия последней открытой позиций. |//+----------------------------------------------------------------------------+//| Параметры: |//| sy - наименование инструмента ("" - любой символ, |//| NULL - текущий символ) |//| op - операция (-1 - любая позиция) |//| mn - MagicNumber (-1 - любой магик) |//+----------------------------------------------------------------------------+double PriceOpenLastPos(string sy="",int op=-1,int mn=-1){datetime t;double r=0;int i, k=OrdersTotal();if( sy=="0") sy=Symbol();for( i=0; i< k; i++){if(OrderSelect( i, SELECT_BY_POS, MODE_TRADES)){if(OrderSymbol()== sy || sy==""){if(OrderType()==OP_BUY||OrderType()==OP_SELL){if( op<0||OrderType()== op){if( mn<0||OrderMagicNumber()== mn){if( t<OrderOpenTime()){
t=OrderOpenTime();
r=OrderOpenPrice();}}}}}}}return( r);}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Help me program interpolation and extrapolation. Tried to figure out complicated examples (like extrapolator indicator), but couldn't. I tried to find something similar, but there is no interpolation anywhere, only averaging. The picture shows an example of such interpolation and extrapolation based on the Fourier transform. How can I get a function BETWEEN BARs to be plotted not as a straight line but, for example, as a cubic polynomial or in some other way (not fundamental)? At least simple examples, the extract itself or links, not necessarily with mathematics. Thank you!
As an option:
Thank you very much! >> I'll give it a try.
Hello.
What may be the problem, the Expert Advisor passes the test in the tester on the demo, but in the tester on the real account it fails. I have the same conditions.
Doesn't open anything at all, immediately after starting the test it says the following (in the picture)
I.e. it appears that it loads the zone and immediately deletes it. There is no such thing on the demo. Please advise what is the problem?
I.e. it appears that it loads the zone and immediately deletes it. There is no such thing on the demo. Can you please tell me what's wrong?
>> upload the history for all TFs.
When compiling, it gives out a bunch of errors. Help me figure it out, I can't see where I went wrong myself.
TRY THIS FUNCTION AS A SAMPLE.