An advisor that would follow the rate on a five-minute chart with conditions after launch: - page 3
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
{
//----
if(iOpen(NULL,5,0)-Bid>Delta*Point) //The price has fallen more than Delta points
{
// Trade actions
}
if (iOpen(NULL,5,0)-Bid<Delta*Point) //The price has risen more than Delta points
{
// Trade actions
}
//----
return(0);
}
You have to be careful with brackets.
and it's a good idea to understand what you are writing.
double iOpen( string symbol, int timeframe, int shift)
What to do with :
double iOpen( string symbol, int timeframe, int shift)
And what is this declaration, try to explain !!!!
When compiling, - the bottom window shows the errors. Click on the line with the error and a red dot will show you exactly where the error is in the code
One more thing. Let's say you need to know what a particular code element means. For example - iOpen. You highlight it with your mouse. You press F1 on your keyboard. - At the bottom of the box you will see a comprehensive reference to this element! With an example of how to use it!
I think you just need to start from here https://book.mql4.com/ru/ I sometimes read it myself, it's very useful.
I think you just need to start from here https://book.mql4.com/ru/.I read it myself sometimes, very useful.
Where to put :
double iOpen( string symbol, int timeframe, int shift)
And what is this declaration, try to explain !!!!
In case of an error, the function returns 0. That's what I understood from the above written advice.