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.
Someone has helped me build my own EA, works fine in back test but will not trade on demo or live account, what should I look for or change in the script.?
I presently use a indicator called riskyachtar and would like someone to create an EA for me where if its red and its value is at or below -0.030 it would trigger a sell signal (or close a previous buy if there was one)and if its green and it is at or above 0.030 it would trigger a buy signal (closing the previous sell). I am new to using EA's. I am using the mt4 platform and would also like to know how to add the EA to it and use it
I am attempting to backtest an EA, however in order to do so efficiently I need to add a stop loss sunction.
Can anyone please provide me with some code to add to my EA? I do have money management EA's, but I cannot run them simultaneously iwith my EA during backtesting.
I'm working on an EA that retrieves the closing price of the last closed bar i.e. bar[1] using the hour timeframe. My initial assumption was that once the hour changed lets say from 11:59:59 to 12:00:00 close price of the bar would be the opening price of the next bar unless a new tick came in. That assumption was obviously wrong as the new doesn't update until a new tick comes in. What a stupid idea that was.
Timing on this EA is critical and I need to tally up the close price for the last closed bar for each pair asap after the new bar opens. The problem is if I'm reading say bar[1] for gbpusd at 12:00:00 but a new tick doesn't come in until say 12:00:05, then I'm getting data from what should now be bar[2].
So I Created a function that that gets the current server time and the open time for bar[0] then use the hour (12) for each to compare. If the server time hour is 12 and the open time hour for bar[0] is 12 then I assume the bar has updated. If not, I use the bid price for bar[0] to plug in as the close price for bar[1]. Most of the time this works fine.
But every so often, the times for the comparison are not updating even though the bar on the chart has clearly updated. Here is the code that checks to see of the bar has updated.....
My EA doesn't use the 1 minute window but I coded it in for debugging so I don't have to wait an hour for a bar to close.
Also, this EA does not use the start() function. All of the code is called from the init() function so it runs continuously regardless of ticks.
Can anyone shed some light on why this would occasionally fail?
Code:
bool bHasBarUpdated(string sSymbolName)
{
datetime tCurrentBarOpenTime, tCurrentServerTime, tPreviousBarOpenTime;
int iCurrentBarOpenTime, iCurrentServerTime, iPreviousBarOpenTime, iDifference;
RefreshRates();
tPreviousBarOpenTime=iTime(sSymbolName,iTimeFrame,iBar_Shift);
tCurrentBarOpenTime =iTime(sSymbolName,iTimeFrame,0);
tCurrentServerTime=TimeCurrent();
switch(iTimeFrame) //extract the hour from the time to make the comparison
{
case 1: //minute TF
iCurrentBarOpenTime = StrToInteger(StringSubstr(TimeToStr(tCurrentBarOpenTime,TIME_DATE|TIME_SECONDS),14,2));
iCurrentServerTime = StrToInteger(StringSubstr(TimeToStr(tCurrentServerTime,TIME_DATE|TIME_SECONDS),14,2));
break;
case 60: //1 hour TF
iCurrentBarOpenTime = StrToInteger(StringSubstr(TimeToStr(tCurrentBarOpenTime,TIME_DATE|TIME_SECONDS),11,2));
iCurrentServerTime = StrToInteger(StringSubstr(TimeToStr(tCurrentServerTime,TIME_DATE|TIME_SECONDS),11,2));
break;
default:
Print("Time Frame Not Supported");
return(TRUE);
}
iDifference=iCurrentServerTime-iCurrentBarOpenTime;
if(iDifference==0)
return(true);
return(False);
}
i have this indicator but the sound and the indicator don't work. If you compile it has an error.
Part of the code with a problem is as follows
here is the code as well as the indicator.....I would be very grateful for your time as well as your solution.
int start()
{
double thisCCI;
double lastCCI;
int counted_bars = IndicatorCounted();
if (counted_bars < 0) return (-1);
if (counted_bars > 0) counted_bars--;
int limit = Bars - counted_bars;
I am attempting to backtest an EA, however in order to do so efficiently I need to add a stop loss sunction.
Can anyone please provide me with some code to add to my EA? I do have money management EA's, but I cannot run them simultaneously iwith my EA during backtesting.
I have a trade management EA with a breakeven trigger and a breakeven shift feature where the stop is moved to breakeven plus a shift "X" number of pips. I need to have a trailing stop added that would take over after the breakeven shift is triggered. For example, if the breakeven level is 50 and the breakeven shift is set to 25, after I'm 50 pips up the stop is moved to +25 pips. The trailing stop should take over at +25 and needs to be adjustable. Or even if a second level could be added to the breakeven shift where if the priced moved another "X" number of pips, it would shift the stop higher, that would work also. Any help would be appreciated, thanks.
i have this indicator called tend weldon but where i got the indi some of the indi were missing .This is an rar file for this indi and see the picture below
i have this indicator called tend weldon but where i got the indi some of the indi were missing .This is an rar file for this indi and see the picture below
now the problem is here.When i download the indis and placement in their appropriate place this is what appears in my chart(below).now in that rar there is indi called tcci that is missing and the indi that displays those circles above and the indi that display multi arrow above the circle and thema that changes the colour if is the one.if anybody knows where to get this indis or hhas the rar with all the indi pliz attach here so that we can discuss fully on the trade using this set up