Made a demo account, downloaded quotes (SP500, RTSI, SBER etc). Created a trivial Expert Advisor. I have decided to test it. But it works perfectly on SP500 but it won't work with SBER or RTSI (it opens one order and then finishes its work) and does not show any error messages.
1) It looks more like a script than an EA.
2. Check the amount of money on the demo after you have moved twenty lots.
Why are the variables assigned zero in INIT()? What is the error or how to assign the buy and sell prices to variables outside of the start() function? I tried putting RefreshRates(); in front of them, but no change :(
Can you tell me. If there is an intraday trade, does that mean that the trade is not carried over to the next day and is forced to close at the end of the day?
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.
Made a demo account, downloaded quotes (SP500, RTSI, SBER etc). Created a trivial Expert Advisor. I have decided to test it. But it works perfectly on SP500 but it won't work with SBER or RTSI (it opens one order and then finishes its work) and does not show any error messages.
1) It looks more like a script than an EA.
2. Check the amount of money on the demo after you have moved twenty lots.
3. Try OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Bid-MarketInfo(Symbol(),MODE_STOPLEVEL)*Point,Bid+MarketInfo(Symbol(),MODE_STOPLEVEL)*Point);
4. Add an error handler, at least a basic Alert (GetLastError());
5. Refer tomanual.
You can also play it safe and specify the data types explicitly:
Why are the variables assigned zero in INIT()? What is the error or how to assign the buy and sell prices to variables outside of the start() function? I tried putting RefreshRates(); in front of them, but no change :(
Here is the code in indicator init():
init() { Print ("Ask = ", Ask, " | Bid = ", Bid); }and here's the log:
What are you "crying" about?
GaNDarM
The branchthanks
Here is the code in the indicator's init():
and here's the log:
What are you "crying" about???
I'm "crying" about it:
and here's the log:
18:25:09 IndikatorZZ GBPJPY,Daily: INIT F_CY: DownL = 0 UpL = 0
If there is an intraday trade, does that mean that the trade is not carried over to the next day and is forced to close at the end of the day?
How many times have I used the autopoint, but the first time doesn't work.
Here is Init()
I put it in any place of my program (in this case, even in the start for the experiment):
The function returns to the log:
Where is the logic?
Hello. Can you please tell me if the value " >= " in place of " = ". I remove the " <" or " >" and leaving only " =" it gives errors when compiling.
For example: my EA has (price >= MA) and I want (price = MA).ONLY EQUALLY
Hello. Can you please tell me if the value " >= " in place of " = ". I remove the " <" or " >" and leaving only " =" it gives errors when compiling.
For example: my EA has (price >= MA) and I want (price = MA).ONLY EQUALLY
==
THANK YOU SO MUCH