
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am trying to add an "exit filter" to terminator. What I would like to do
is be in secure profit by x amount and if a MA occurs// close the trade.
I can get the the coding to compile properly below but am frustrated that
it doesn't continue to open orders if the trade goes against and also doesnt close at the cross. Ive checked the coding but appears to get hungup on the intialization and doesn't get past it.
Any help would be appreciated.
int FreshCross ()
{
double sJ1=0, sJ2=0, fJ1=0, fJ2=0;
sJ1=iCustom(NULL,15,"Turbo_JMA",JMA_SlowPeriod,0,0,0);
sJ2=iCustom(NULL,15,"Turbo_JMA",JMA_SlowPeriod,0,0,1);
fJ1=iCustom(NULL,15,"Turbo_JMA",JMA_FastPeriod,-100,0,0);
fJ2=iCustom(NULL,15,"Turbo_JMA",JMA_FastPeriod,-100,0,1);
if((fJ1 = sJ2))return(5);
if((fJ1 > sJ1) && (fJ2 <= sJ2))return(6);
return (0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
static int isCrossed = 0;
isCrossed = FreshCross ();
return(0);No idea sorry. I only see that you was trying to code something on open bar:
sJ2=iCustom(NULL,15,"Turbo_JMA",JMA_SlowPeriod,0,0,1);
fJ1=iCustom(NULL,15,"Turbo_JMA",JMA_FastPeriod,-100,0,0);
fJ2=iCustom(NULL,15,"Turbo_JMA",JMA_FastPeriod,-100,0,1);---------------------------
Please find updated statements.
Hi All,
First time poster, but having been reading the forums a fair bit in the last few weeks, just wondering where are these files?
I have read the whole thread, picked up some great advice, but cannot seem to find the latest version (2.03?) of this EA.
Can someone please post it, or pm me the link (i could be using a brail keyboard).
Cheers,
Grum
Hi All,
First time poster, but having been reading the forums a fair bit in the last few weeks, just wondering where are these files?
I have read the whole thread, picked up some great advice, but cannot seem to find the latest version (2.03?) of this EA.
Can someone please post it, or pm me the link (i could be using a brail keyboard).
Cheers,
GrumDid you check first post of this thread?
Also all EAs links to download are on sticky files thread.
Personally I am using this EA with this settings https://www.mql5.com/en/forum/174859/page31
Hi All,
First time poster, but having been reading the forums a fair bit in the last few weeks, just wondering where are these files?
I have read the whole thread, picked up some great advice, but cannot seem to find the latest version (2.03?) of this EA.
Can someone please post it, or pm me the link (i could be using a brail keyboard).
Cheers,
Grumcheck post# 1
tom
Please find updated statements.
Statements by pairs updated.
Adding MagicNumber generation to Terminator v2.03
Wanting to run this EA against multiple Symbols (and possibly Timeframes) I added a GenerateMagicNumber function.
I can now attach it to various charts/timeframes and not worry about the magic number. It is attached here for anyone who is interested.
Wanting to run this EA against multiple Symbols (and possibly Timeframes) I added a GenerateMagicNumber function. I can now attach it to various charts/timeframes and not worry about the magic number. It is attached here for anyone who is interested.
Thanks a lot.
I updated files thread https://www.mql5.com/en/forum/176044/page2
Performance of some pairs:
USDJPY: only long;
EURJPY: only long;
EURUSD: only short;
USDCHF: only long.
Question relating to recent performance
Sorry to ask again. What EA settings used for this performance?
Thanks.