| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (1) | Thread Tools | Display Modes |
|
|||
|
Converted it yet?
Is it possible to turn this indicator into an EA. I thought Beno is trying to do this. I will appreciate anyone who has done it or can do it to please post the EA version of this indicator. Many thanks
The indicator is attached: |
|
|||
|
Oops! the indicator to be converted to an EA is MT4-LevelStop-Reverse-vB0-4.mq4
|
|
|||
|
Programming questions
I have a couple quick questions:
1. Suppose I am trading GBPUSD on the 15 minute charts. Does the start() function in my EA get called only when a new bar becomes available (every 15 minutes) or is it every time there is a new quote (cane be every few seconds)? 2. Suppose at a specific time I place two orders - one is a buy stop say 20 pips above the current price and the other is a sell stop 20 pips below the current price. If the price goes up to my buy stop, I want to cancel the sell stop as soon as I confirm that the buy stop order was triggered. Similarly, if the price goes down to my sell stop, I want to cancel the buy stop as soon as I confirm that the sell stop was triggered. So is there an easy way to do this? How do I confirm that the buy stop was triggered before canceling the sell stop? Does the system provide some sort of order callback function that lets me know an order was triggered? Or do I just have to let the start() function keep checking for open orders every quote and detect it that way? Thanks |
|
||||
|
Quote:
2. Yes it's possible. More than one way to do it. You could set your buy stop and sell stop, then call the OrderType( ) function, if it returns an OP_BUY or an OP_SELL , you could then use OrderDelete( ) to delete the existing pending order. |
|
|||
|
is this correct mr pips? will it work with strategy tester cause it is not working in the tester.. or should i only forward test it?
if (LastTradeOpenToday()) return (); Quote:
Last edited by antone; 11-09-2007 at 10:18 AM. |
|
|||
|
need coding: when GAP occurs..
Hello everyone,
Could someone give me the code to prevent EA opening new trades when there is a gap on 1H chart? cause i want to run this ea 24 hours. Please help me ... my EA almost finish. thank you ![]() Last edited by c14n6; 11-13-2007 at 03:01 PM. Reason: edit |
![]() |
| Bookmarks |
| Tags |
| candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 07:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 05:22 PM |