| 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 |
|
|
||||
|
||||
|
Quote:
Dave <><<< ddiebold7@aol.com |
|
|
|||
|
|||
|
anyone help with coding?
Can anyone code this EA minus the price entry and hibernation function plus add a breakeven function? I only have the EX4 file as the owner will not make any modifications but said it was pretty straightforward to make. If someone has an EX4 decompiler that would help. I would be willing to pay for this EA if someone her wants to take it on. Here is the thread if someone needs more info on how it works along with the EA and the Breakeven EA I would like to incorporate into it.
FXTradepro: Strategy using a “Semi-Martingale” Position Sizing |
|
|
|||
|
|||
|
Ralph, HELP with some Daily Close logic
Hello Ralph.
Perhaps, if you wouldn't mind a bit of guidance. This has been a bit of a challenge for me to figure out!! I want to define some conditions for the EA to look at to determine whether or not to close an open trade. Let's just use a buy order as an example (I know Sell order would be the opposite logic). So, I have an Buy order opened on a Monday. I want the EA to look at the Daily Close over the next X # of days. If the Daily Close on each of the next X number of days (let's say 5 days for example) is lower than the Order Open price of the trade, then I want the EA to execute an OrderClose to closeout the trade. I was also thinking another possible part of this condition I might want the EA to look at is if the Daily close over each of the next X number of days was lower than the previous days close. Also too, My EA runs on the one hour time frame. I hope I explained what I want to accomplish clearly enough for you to understand. Thanks in advance for your help. Last edited by waaustin; 10-11-2007 at 01:58 PM. |
|
|
||||
|
||||
|
Save the current bar's highest quoted value to a variable. Every time you get another quote, compare it with the value of the variable. If the new value is higher, save it to the variable. If the new value is lower, keep the variable the same.
if(variable < newquote) variable = newquote; Hope that helps!
__________________
Success is more perspiration than inspiration . . .
|
|
|
||||
|
||||
|
Quote:
Thanks ![]() |
|
|
||||
|
||||
|
Quote:
|
|
|
||||
|
||||
|
Quote:
Of course my example was for a "BUY" position. For "SELL," you want to get the lowest value saved.
__________________
Success is more perspiration than inspiration . . .
|
|
|
|||
|
|||
|
Help with negative values ??
Could anyone share with what syntax and instructions I would use in mql to write some code in EA using the following:
(OrderProfit() < 0). Except I really want to know when OrderProfit() is some specific value less than zero such as when the profit on an open trade is -1,250.00. For example: if (OrderProfit() < -1,250.00). Thanks |
|
|
||||
|
||||
|
Quote:
Hope this helps ![]() |
| Bookmarks |
| Thread Tools | |
|
|
|
|
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 |