[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 534

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
Who knows how to make a standard indicator visible in the strategy tester?
In short, you need to apply static (if it works correctly) and understand why it is so.
SZS you need help - ask here, too. I see you're inclined to get into it :)
something like this. it seems to work.
price_now = somefunc();
Comment(price_now, " | ", Bid);
double somefunc()
{
static double price_now1=0.0000;
if (price_now1 == 0.0000) {
price_now1 = Bid;
}
return(price_now1);
}
By the way, thanks very much for the referral.
See https://docs.mql4.com/ru/basis/variables/static
Thank you so much!!! I'm new to MQL4 and a little thing like this threw me for a loop =) Thanks again!!!
In a switch statement, should the expression only be of type integer? Unexpectedly! Is there no way to pass a string?
1. How do I know what period (timeframe) it is?
2. How do I draw a line or a segment of my own length in my indicator?
1. How do I know what period (timeframe) it is?
2. How do I draw a line or a segment of my own length in my indicator?
1. https://docs.mql4.com/ru/windows/Period
2. https://docs. mql4.com/ru/objects
1. How do I know what period (timeframe) it is?
int tf = Period();
2. How do I draw a line or a segment of my own length in my indicator?
1. https://docs.mql4.com/ru/windows/Period
2. https://docs. mql4.com/ru/objects
Thank you very much!
On 2, can you tell me if you can use SetIndexStyle() to create a line of the desired length?
UDP Question removed, yes through objects.