[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 232
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
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():
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