[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 283
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
Hello! Can you tell me how to "loop" the up/down bar check? That is, how can I describe this condition "shorter"?
Close[0]>Open[0]&& Close[1]>Open[1]&& Close[2]>Open[2]&& Close[3]>Open[3]&&& Close[4]>Open[4]&& Close[5]>Open[5]&& Close[6]>Open[6]&& Close[7]>Open[7]
Thanks in advance.
You could do that, but it's not likely to be quicker. The conditions need to be broadened a little
I don't know how to turn this into a life, can I do that?
My strategy is ideally manually opened at 8:00 on the terminal, if profit, then until the next day. If profit goes not in my direction, then at loss I reverse position + - no matter what, I don't open more positions this day and wait till 8 o'clock in the morning. I.e. there should be a maximum of two orders and no more. If we didn't reach profit, but the Trawl moved to Breakeven, we also rollover. Of course, we can handle everything, but our work does not allow us to monitor positions. It would be better to place an order and let the EA follow the position. I attached RSI just to test it in the Strategy Tester.
This is all I needed.
I have this trailing stop, I took it from another EA but it does not work for me
How do I attach it? And reversal, it should work only once after the position is opened
Reverse must be looking for somewhere around here, I take it or not?
Good afternoon.
Can you tell me where I can see the original code for the OrderSend() function ?
Thanks in advance.
Mr. Expert, advise, is it possible to run the script from the toolbar? At the moment, the script has to be run either from the navigator, or using a preset combination of keys (which somehow works only once). Question - is it possible, for example, to assign a new function to the icon on the "graphical tools" panel and run the script from the toolbar? Are there any other options?
No, but you can use drag and drop of Label object as an example ...
Download , extract to terminal with replacement, allow import of dll in terminal setup, attached Expert Advisor to Experts, enter name of script to be launched restart terminal or compile.
The Expert Advisor implements - loads the script on the specified chart by its name when dragging the object on the chart.
Good afternoon!!!
Please advise. I am writing an EA that works on channel break, putting two pending ones behind the channel. When one of them triggers, the other should be deleted. How to implement it in the code?
Good afternoon!!!
Please advise. I am writing an EA that works on channel break, putting two pending ones behind the channel. When one of them triggers, the other should be deleted. How to implement it in the code?
Perhaps this would be a good idea - I haven't done that myself - if your EA allows only one market order (out of 2 pending ones that were previously placed), then monitor (track) the availability of your (by magician) order (market) in the market and as soon as it shows up, delete the pending one. That is all. If you want to delete a pending order, google something like "delete orders site:mql4.com".
Hello!
Running the EA on the tester. The server is four digits. When placing buy or sell order in the log says
2011.10.23 15:27:26 2010.12.16 06:16 test_sovetnik GBPUSD,H1: open #1 buy 0.10 GBPUSD at 1.5551 sl: 1.4551 tp: 1.5586 ok
But opens at 1.55512 ! At the five digits. Then the pending orders are placed at four digits and triggered at four digits as well. But OP_SELL and OP_BUY open only by five digits!
I do NormalizeDouble(Ask,Digits);
Nothing works! Please advise how to solve this issue?
You can, of course, ignore the last digit. The error doesn't occur, but for the sake of purity of the experiment, I need all my trades to be made in four digits.
Please advise how to fix an EA, e.g. standard Moving Averages, to turn it into a script in order to run it on a non-standard timeframe.
UP. i would appreciate it if you could tell me how to turn an EA into a script in a nutshell