The new knowledge gained, despite the personal time spent, is the most valuable prize.
The best investment is an investment in knowledge/skills.
100% agree. When are you going to write? When you do, I'll give you some more ideas for prizes. Or just look into the branch to Yusufkhoja - there are a ton of prizes. Invest in their knowledge and skills.
Good afternoon everyone, I have this little question: how correct is it to pass the inverse value of a logical variable to a user function? For example:
Good afternoon everyone, I have this little question: how correct is it to pass the inverse value of a logical variable to a user function? For example:
Afternoon All, there is a MA_In_Color_wAppliedPrice indicator, how do I get the signal out of there when the colour changes?-------------------------------------------------+
//-------Красить начинается по моему здесь..ExtMapBuffer3[i]=MA_Cur; //red ExtMapBuffer2[i]=MA_Cur; //greenExtMapBuffer1[i]=MA_Cur; //yellowif(MA_Prev > MA_Cur){ExtMapBuffer2[i]=EMPTY_VALUE;
}elseif(MA_Prev < MA_Cur){ExtMapBuffer1[i]=EMPTY_VALUE; //-1 red/greem tight}else{ExtMapBuffer1[i]=EMPTY_VALUE;//EMPTY_VALUE;ExtMapBuffer2[i]=EMPTY_VALUE;//EMPTY_VALUE;}}//----
Afternoon All, there is a MA_In_Color_wAppliedPrice indicator, how do I get the signal out of there when the colour changes?-------------------------------------------------+
Each colour of indicator has its own buffer. Poll the data of each buffer in your EA. If a non-empty value (! EMPTY_VALUE) appears in one of the buffers, it indicates the appearance of a line of the corresponding colour (or no line - I don't see what it draws there)
artmedia70: Each indicator colour corresponds to its own buffer. Poll the data of each buffer in the EA. If a non-empty value (! EMPTY_VALUE) appears in one of the buffers, it tells about the appearance of a line of the corresponding colour (or not - I don't see what it draws there)
VladislavVG: 100% agree. When will you start writing? As you write, I'll give you more prize ideas. Or just look at a branch of Yusufhoja - there are a ton of prizes. Invest in their knowledge and skills.
2. In leafing through the topics, I noticed that Yusufhoja is one of the most "prolific" topic generators here. Which of his topics should I look into?
I have noticed one specific feature of the terminal. Since the order profit calculation does not consider the OrderSwap(), I want it to close the order at once.
I.e. we have to use the following formula to close the order with a profit:
(OrderProfit()+OrderSwap()+OrderCommission())>0
I've never worked with commission and commission is not used on demo, that's why I can't check it on account.
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.
The new knowledge gained, despite the personal time spent, is the most valuable prize.
The best investment is an investment in knowledge/skills.
Good afternoon everyone, I have this little question: how correct is it to pass the inverse value of a logical variable to a user function? For example:
bool X;
.........
MyFunction(!X);
Good afternoon everyone, I have this little question: how correct is it to pass the inverse value of a logical variable to a user function? For example:
bool X;
.........
MyFunction(!X);
This is normal.
Thank you!
Afternoon All, there is a MA_In_Color_wAppliedPrice indicator, how do I get the signal out of there when the colour changes?-------------------------------------------------+
Afternoon All, there is a MA_In_Color_wAppliedPrice indicator, how do I get the signal out of there when the colour changes?-------------------------------------------------+
Each indicator colour corresponds to its own buffer. Poll the data of each buffer in the EA. If a non-empty value (! EMPTY_VALUE) appears in one of the buffers, it tells about the appearance of a line of the corresponding colour (or not - I don't see what it draws there)
100% agree. When will you start writing? As you write, I'll give you more prize ideas. Or just look at a branch of Yusufhoja - there are a ton of prizes. Invest in their knowledge and skills.
1. neural network training is of interest. I'm waiting for an idea.
2. In leafing through the topics, I noticed that Yusufhoja is one of the most "prolific" topic generators here. Which of his topics should I look into?
Please suggest the code below to read the log file. Automatically reads the current log file by date and outputs it to the printer.
Where:
The file is being assembled from parts. But I don't need the whole file, just the last line. Help to correct, please.
I have noticed one specific feature of the terminal. Since the order profit calculation does not consider the OrderSwap(), I want it to close the order at once.
I.e. we have to use the following formula to close the order with a profit:
(OrderProfit()+OrderSwap()+OrderCommission())>0
I've never worked with commission and commission is not used on demo, that's why I can't check it on account.
Are my calculations correct?