Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 44
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
So, hopefully the final form of the function.
So, hopefully the final form of the function.
So, hopefully the final form of the function.
I think tim = Time[0] would be better placed after the loop ...because asking Time[0] is done on all number of visible bars - it's not rational.
Thanks for the correction. The number of errors grows exponentially at night))))
The idea is simple: the ZigZag indicator is installed on the chart. The script should be written and the hot key should be attached to it. By pressing it the zigzag parameters will be changed on the chart.
Continuing the current topic of finding a high volatility filter. Here is the code of an existing filter from WSR
int init()
Here is the function itself:
Thus, the function checks the values of the two previous bars and if they are too big, it returns TRUE. The question is how to improve it nicely: to make this function look for big candles on more candles. For example 24.
Good afternoon. Do you know if it is possible to change indicator parameters on the fly in mql4?
The idea is simple: the ZigZag indicator is installed on the chart. The script should be written and the hot key should be attached to it. As soon as I press it, the ZigZag parameters will change on the chart.
I made a homemade Expert Advisor to test trading, but I cannot figure out one thing...
Question: The position on the current candle is not closed (the conditions have not come). How to close it on the next candle, when it matches MA_0= iMA ( 0, 0, 3, 0, MODE_EMA, PRICE_MEDIAN, 0 );Bay/sell is opened using maximal and minimal MAs
// Condition for opening BUY position
if(MA_L1<MA_L0&&Ask<=MA_L0&MA_0>MA_1&&HA_up>HA_dw)
// Condition for opening a SELL position
if(MA_H1>MA_H0&&Bid>=MA_H0&MA_0<MA_1&HA_up<HA_dw)
We have a condition to close it: crossing the high or low of the current candle, but we need the position to close on the next candle after it is opened.
We can write if ( NormalizeDouble ( MathAbs (MA_0-Ask), Digits )< Point ), but how to fulfill the condition of the second open candle.
If you can answer with code, the example is clearer.
There is such a possibility.
Thank you for the incredibly detailed response.
Do you really have to be a smart aleck to understand that if a new person comes to the forum with a question, they need a specific solution or a link to something similar, not a dumb excuse that "anything is possible"?
Thank you for the incredibly detailed response.
Do you really have to be a smart aleck to understand that if a new person comes to the forum with a question, they need a specific solution or a link to something similar, not a dumb excuse that "anything is possible"?
People who are trying to do something on their own get help here. They guide you in the right direction, explain, etc. ...
You asked a question and you got an answer. Have you tried to start writing something yourself?
When asking a question in a certain format, first think about what kind of answer you will get to the format of the question...