Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
I double-clicked it, get to the line, then check it with opening-ending brackets prior to it, and still don't know where I made mistake.
This is the second EA I tried, with the same error message, based on the same indicator.
Thank you.
Sendra, send the program to my email address as an attachment and I will look at it and try to fix it. Normally the problem is a bracket missing after a statement. Unfortunately, this is a low level language and because it is a basic language, it cannot tell you exactly where the error is many times, so it defaults to the error it is showing you. Only experience in coding will help in troubleshooting this type of error.
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.
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.
I'm not asking for the coding of an EA, just a little help with one problem.
What I would like to code is this, if I have an open long order I want to be able to call the Highest quoted price that the order has seen since that specific long order opened. Obviously, when the order first opens, the open price would be returned. If the order increases by 20 pips, the price of OrderOpenPrice() + 20 pips would be returned. If the price then decreases by 10 pips, the price OrderOpenPrice() + 20 would still be the returned value. I know this can be done within a specific bar by using OrderOpenPrice() + High[0], but when a new bar is formed, High[0] becomes High[1]. I will also use the same logic in reverse to return the lowest value a specific short order has seen. When the order closes, the returned values will re-set to zero.
I'm having trouble figuring this one out, can anyone help?
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 . . .