| 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 | Thread Tools | Display Modes |
|
|||
|
trailing ea
I posted this on the yahoo MTE&I group.
I combined 7 different trailing stop ideas into a single ea. I have not tested this for manual trades but I have used many of the functions in eas and they do work. It will only trail positions entered for the currency pair where attached. It also sounds like what you want is the type 2, delayed trailing stop. Also try the type 3 with 3 levels, First level moves stop by the setting for that level, second level for that level and thirrd level trails from there. For example First move is 20 pips. To move to breakeven set the first stop to 20. Second move 30, lock in 15 by setting second stop to 15. Third move 40 trail by 10 by setting trailling to 10. Robert |
|
|||
|
Hello!everybody
I found almost all indicators very good, BUT indicator-- "arrow" in this forum is always above or below the bar. Many times, when i see the arrow, the best entry time has passed. It confuses me, what and when did the arrow appear?? So, i want to see the arrow display at the price positon when the arrow come out, better with the comment "XX:XX open price XXXX" on the chart left-up corner so that i may know what happened just now and deside the next step. i'm not a programmer, so i dont know how to write the code. Who here can help me finish it? thanks very much first. Sorry for poor english.. ![]() |
|
|||
|
Open-Range-Breakout (Larry Williams)
Hi,
I cant go on with programming until i found that %$§!!€-error. The EA analyse the last 3 days. After that, it has to send two stop-orders. Both got initial stops. Later There is a trailing-stop running, when break-even is reached. Now my problem is, that it doesn t send the long order?! No idea why not... Can someone help me? Quote:
|
|
|||
|
code sought
how to write this code .....
i need to measure the height of a wave and make decision according to that. For example ... I am looking at a 5 min chart. I see lots of up and down waves. I want to choose a wave which has a height of 40 pips or greater. How to write such a code? Anyone? thanks |
|
|||
|
Hi. Try this.
PHP Code:
|
|
||||
|
You can always write int crossTime = Time[0] when you had a cross, and then use iBarShift function using crossTime variable to check how many bars passed.
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
|
||||
|
Hi Kalenzo,
Quote:
I understand the ibarshift but this would include all bars since cross. You would still need to use a count system like I have it to count "Bear Bars" and I believe this is where my issue lies. I originally tested my code with this code .... Which worked fine.... but didn't translate into the code above that would actually be listed in my EA PHP Code:
Thanks, SaxMan |
|
||||
|
Sorry Omelette,
This doesn't work either Thanks, SaxMan Quote:
|
|
||||
|
I cant seame to place a time limit on my EA
code line is as follows: OrderSend(Symbol(),OP_BUY,LotsOptimized(),Ask,3,0, Ask+TakeProfit*Point,"timetest",16384,0,Green) I've tried changing that ZERO to a 1 or to a 12 and i can't get it to stop the trade ... i would like to have the trade expire in 12 hours how can i do this? i'm useing a backtesting. to nake sure it works.. the expire function does work with that right? |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 04:22 PM |