| / | Forum |
|
Trampoukos
2006.07.26 22:52
I copied the script (prepared by metaquotes) for deleting pending orders into an
expert advisor.
I run the expert advisor but nothing happens. No pending orders are deleted. Can somebody help? |
|
Meta COT Project - New Horizons for CFTC Report Analysis in MetaTrader 4 The article is about the use of CFTC report data (Open Interest) in MetaTrader. The article describes the proposed META COT project in details, shows how to load and process the necessary information. The Expert Advisor included into the project will help us analyze the effectiveness of the concept presented in the article. Finally, we'll draw some conclusions and offer useful suggestions. |
5198 |
stringo
2006.07.27 10:21
What errors output to experts log?
Tools - Options - Experts tab - check Allow Live trading |
|
Trampoukos
2006.07.27 10:39
stringo wrote:
What errors output to experts log? Tools - Options - Experts tab - check Allow Live trading
Thank you. |
|
Trampoukos
2006.07.27 11:07
Hello stringo. Is it possible to change it so it removes all pending orders at once regardless of tick movement? I also copied "Send-pending" script into an EA and run it. I adds a pending order every time price ticks up or down. I am actually looking into placing 2 orders at a time - one to buy / one to sell - without the need of tick change. Please advise. |
5198 |
stringo
2006.07.27 11:45
|
|
Trampoukos
2006.07.27 12:34
I copied the code written by you:
on 'How to place (and close correctly) multiple orders in an EA' - stringo 2006.04.14 12:03 and run it but nothing happens. You have to excuse me but I don't understand waht the code is all about. What I am looking actually for are two little expert advisors that place / delete pending orders independently from a chart: Expert advisor1 : To place a pending stop- buy and a pending stop-sell simultaneously at predefined distances from market prices. Expert advisor 2: To remove above orders simultaneously irrespectively of market moves. |
5198 |
stringo
2006.07.27 13:49
Copy and what? Why?
if(OrderType()==OP_SELL) { flag=true; OrderClose(OrderTicket(),OrderLots(),Ask,3); } if(OrderType()==OP_BUY) { flag=true; OrderClose(OrderTicket(),OrderLots(),Bid,3); } There are closed short or long positions. Not pending orders There is sample code only. You need to change it in accordance with your taste |