Who knows how to make a standard indicator visible in the strategy tester?
when you start the EA - put it on pause in visualization mode - put the indicator on the window - save the template with the name of the EA - the next time you start everything will work
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.
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.