[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 465

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
This is VERY interesting code:
Highest() and Lowest() are custom functions? If no, where did you dig out such a construct?
If you want to get values from the indicator, you should use iCustom() function.
I apologise for the silly questions and thank you.
Shas wikidid.
2012.10.26 21:59:19 2012.10.22 23:59 Trommel 300+Aroon CADJPY,H1: custom indicator name must be a string
I apologise for the silly questions and thank you.
It is a wickididium.
2012.10.26 21:59:19 2012.10.22 23:59 Trommel 300+Aroon CADJPY,H1: custom indicator name must be a string
Have you heard anything about variable types?! The 1st error - in the mentioned iCustom(), the indicator name must be string (i.e. "indicator name").
The 2nd error - you have entered correctly the parameters to be passed to the indicator in the same iCustom().
This is a theory, but to understand it in practice, look through the code of others (the code base is full of them) and look through these examples.
That's me intuitively from the indicator. Must be funny :)
Is it the only bug?
When I put the Expert Advisor on Demo, it says "2012.10.26 21:49:56 2012.10.22 23:59 Trommel 300+Aroon CADJPY,H1: invalid integer number as parameter 2 for iLowest function
Why doesn't it work like that?
#property show_inputs
#include <WinUser32.mqh>
extern int Kol=3;
int start()
{
int i=0;
for(i=0; i<Kol; i++){
OrderSend(Symbol(),OP_SELL,0.05,Bid,333,0,0,"Тест",0,0,CLR_NONE);
return(0);}
while(!IsTradeAllowed()) Sleep(1000);
PostMessageA(WindowHandle(Symbol(),Period()), WM_COMMAND, 33050, 0);
}
I don't understand how your code compiled like that at all!
I guess I got lucky:)
I'm very grateful to you!
I'll keep digging:)
Why doesn't it work like that?
#property show_inputs
#include <WinUser32.mqh>
extern int Kol=3;
int start()
{
int i=0;
for(i=0; i<Kol; i++){
OrderSend(Symbol(),OP_SELL,0.05,Bid,333,0,0,"Тест",0,0,CLR_NONE);
return(0);}
while(!IsTradeAllowed()) Sleep(1000);
PostMessageA(WindowHandle(Symbol(),Period()), WM_COMMAND, 33050, 0);
}
It doesn't work. It works fine in my opinion. If you set Kol=-1, then something will work.
What it doesn't work out. It works fine in my opinion. If you set Kol=-1, something will work.
The Expert Advisor cannot be executed the specified number of times:(
and if I put Kol=-1, how will it understand this number
It doesn't work for the EA to be executed the specified number of times:(
and if I put Kol=-1, how will it understand this number
then it will be able to execute:
:)))is it possible to test the EA at the weekend?
is it possible to test the EA at the weekend?
Of course there is, but the spread will be greatly increased