Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 698

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
Made it this way, whoever sees an error will tell me:
extern string Per="h4";
int Per1=0;
if(Per=="0"){
Per1=Period();
}
if(Per=="m1"){
Per1=1;
}
if(Per=="m5"){
Per1=5;
}
if(Per=="m15"){
Per1=15;
}
if(Per=="h1"){
Per1=60;
}
if(Per=="h4"){
Per1=240;
}
if(Per=="d1"){
Per1=1440;
}
double prodaem1=iCustom(Symbol(),Per1,"super-signals-channel",2,500,2,sdvig);
People, tell me how to display the period setting for the indicator. I tried it this way, it doesn't work:
extern string Per= H1;
double prodaem1=iCustom(Symbol(),PERIOD_ Per, "super-signals-channel",2,500,2,sdvig);
For example like this
Like this.
You can't do that either.
The period is of type int
Sorry, didn't notice the string and didn't set the int! Sleepyhead!
I'm sorry, I didn't notice the string and the int didn't set it up! I was sleepwalking!
Thongs are hard to spot ;)
That's as hard as it gets ;)
I'm sorry, I didn't notice the string and the int didn't set it up! Sleepyhead!
You don't have to explain yourself. I know you're not a "D" student.
You don't have to make excuses. I know you're not a loser.
Well, that's a load off! :)
The EA used a countdown with a time record on the event taking place:
and if the condition was not triggered
the index was increasing with every bar.
In the indicator it is necessary to put an arrow after a certain index once.
I tried to do the same in the indicator but nothing works:
On the first bar where " ExtMapBuffer2[i]<0 " the arrow is put, and "shift>=shet" is not considered.
Logically, we should do something with this line " if(time > 0)shift=iBarShift(Symbol(),Period(),time);".
What do you think?