[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 906

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
I started to try it and this is the result:
It gives an error:
Almost all functions need to pass three parameters. Symbol, Magik, and type of operation
you have :ticket=OrderSend(Symbol(),OP_BUY,Lots,Bid,3,Ask-stoploss*Point,Bid+TakeProfit*Point, "macd sample",16384,0,Green);
we need: ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid-stoploss*Point,Ask+TakeProfit*Point, "macd sample",16384,0,Green);
and change here: ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Ask+stoploss*Point,Bid-TakeProfit*Point, "macd sample",16384,0,Red);
It's correct:
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-stoploss*Point,Ask+TakeProfit*Point, "macd sample",16384,0,Green);
ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Bid+stoploss*Point,Bid-TakeProfit*Point, "macd sample",16384,0,Red);Has anyone already encountered a situation where the tester only runs on one or two timeframes and gives an error on the others:
2010.10.12 10:02:29 TestGenerator: write file error
In the archive of quotes, everything is OK.
It turns out that I can only test on H1, for reasons I don't understand.
Is there any way to correct this error?
Hello, Could you please help, I am learning to write, I've tried to write an EA using the tutorial, but the compiler gives me a error, please explain what's wrong.
you have a link to the file at the very beginning #include <MyLib.mqh>
The compiler does not find this file in the include directory, apparently this file contains three undefined procedures required to work, search for the file and paste it where needed, it should work...
if it's not the error, at least tell me what the error is...
you have a link to the file in the very beginning #include <MyLib.mqh>
The compiler does not find this file in the include directory, apparently this file contains three undefined procedures required to work, search for the file and paste it where needed, it should work...
if that's not what's wrong, at least tell me what's wrong...
Has anyone already encountered a situation where the tester only runs on one or two timeframes and gives an error on the others:
2010.10.12 10:02:29 TestGenerator: write file error
In the archive of quotes, everything is OK.
It turns out that I can only test on H1, for reasons I don't understand.
Is there any way to correct this error?
https://forum.mql4.com/ru/13434
The script just shows if the candle meets a certain condition.
//+------------------------------------------------------------------+The script just shows if the candle meets a certain condition.
//+------------------------------------------------------------------+