[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 1034
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
you can. the usual expert/script
Maybe there is already something similar, can you tell me where to find it? Or know someone who can write one?
help please pro
The piece of code below doesn't work.
MA values are calculated and assigned to the MA variable
correctly, but they are not assigned to an array. The array is defined as double
dynamic. The print procedure prints null values for the array.
i=i_max; // ...calculate given number.
if (flag_NewBar==true) // recalculate only during the first tick arrival
{
while(i>=0) // loop on unread bars
MA=iMA(g_ext_smb,g_ext_TameFrame,g_ext_Period_MA,0,g_ext_Method,g_ext_PRICE,i);
MA=NormalizeDouble(MA,Digits);
mas_MA[i]=MA;
i--; }
I don't understand why there is an error 130? Please help.
Here's the code:
Purposely inserted Alert to see the problem, but I can't find it.
Here is Alert's message:
2010.12.13 12:39:36 2010.09.01 11:35 DVD 100-50 cent iK EURUSD,M1: OrderSend error 130
2010.12.13 12:39:36 2010.09.01 11:35 DVD 100-50 cent iK EURUSD,M1: Alert: OP_SELLLIMIT: Spread=1 Stop=10.00 lot=0.010 Pr=1.280300 SL=1.320300 TP=1.240300
help please pro
The piece of code below doesn't work.
MA values are calculated and assigned to the MA variable
correctly, but they are not assigned to an array. The array is defined as double
dynamic. The print procedure prints null values for the array.
i=i_max; // ...calculate given number.
if (flag_NewBar==true) // recalculate only during the first tick arrival
{
while(i>=0) // loop on unread bars
MA=iMA(g_ext_smb,g_ext_TameFrame,g_ext_Period_MA,0,g_ext_Method,g_ext_PRICE,i);
MA=NormalizeDouble(MA,Digits);
mas_MA[i]=MA;
i--; }
ArrayResize(mas_MA,i_max);
Folks, please advise! Is it possible to make a programme that gives a beep when the price passes 10-11p in 0.1-0.4s?
I don't understand why there is an error 130? Please help.
Here's the code:
Purposely inserted Alert to see the problem, but I can't find it.
Here is Alert's message:
2010.12.13 12:39:36 2010.09.01 11:35 DVD 100-50 cent iK EURUSD,M1: OrderSend error 130
2010.12.13 12:39:36 2010.09.01 11:35 DVD 100-50 cent iK EURUSD,M1: Alert: OP_SELLLIMIT: Spread=1 Stop=10.00 lot=0.010 Pr=1.280300 SL=1.320300 TP=1.240300
Step by step, change stops take overshooting opening price (because the pendulum is lower from the price) to constants, find out almost where the error is.
From help "If the opening price of the pending order is incorrect, error 130 (ERR_INVALID_STOPS) will be generated".
help please pro
The piece of code below doesn't work.
MA values are calculated and assigned to the MA variable
correctly, but they are not assigned to an array. The array is defined as double
dynamic. The print procedure prints null values for the array.
i=i_max; // ...calculate a given number.
if (flag_NewBar==true) // recalculate only during the first tick arrival
{
while(i>=0) // loop on unread bars
MA=iMA(g_ext_smb,g_ext_TameFrame,g_ext_Period_MA,0,g_ext_Method,g_ext_PRICE,i);
MA=NormalizeDouble(MA,Digits);
mas_MA[i]=MA;
i--; }
Read it
https://book.mql4.com/ru/operators/while
https://docs.mql4.com/ru/series/iBarShift
I would do this
Step by step, change stops take overshooting opening price (as the pendulum is higher below the price) to constants, identify practically where the error is.
From help " Error 130 (ERR_INVALID_STOPS) will be generated if pending order open price is wrong".
Yes, UZH :) Indeed, the error is that the opening price of the pendent is close to the current price. Fixed it, got it working. THANK YOU
tell me, how many eibarshifts less than zero can be used to draw objects? what is the minimum?
ebarshift is Searching for a bar by time (nothing will work).
in the terminal the last bar is 0, the time is linked to the bars, i.e. only this way to the future via strings