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
Some indicators - modified
Hi,
a_ZZ and a_ZZInd - "High_Low v2 (ZigZag)" and others(wich i don't remember now,&))
aDin - "ang_PR (Din)-v2"
What do you think ?
Cheers.
MACD Cross
Hi All,
I have a idea for EA using MACD 13,32,48 and PSAR Step 0.005 Max.0.05 or 0.006 and 0.06 H1 TF
Entry point when MACD Cross (Close Bar)and exit PSAR or optional trailing stop.
Regards
MFX
Best daily strategy...
Hi guys,
I'm glad to be here among you again. I've been away for a couple of days. Anyway I'd like to ask you which are the best daily and 4-hour strategy you have found, used maybe...
Thank you
REGARDS
codersguru: could you change EMA for triple exponential moving average?
in EMACROSS EA.
it is best than EMA.
thanks.
Best system for Cross pairs
Hi
I found a very good system which is very good to trade cross pairs.
It is very simple and based on SMA and EMA, but very effective. If some one can develop an EA for this we can test.
2 type of Moving Average of Prervious bar will be used
6 ema,12 sma
Trend is down if 6ema<12ma
and Trend is up if 6ema>12ma
buy or sale signal
Sell: if is trend down and sell(bid) H
Or
Buy: if trend is up and buy(ask) L[Lowest(6,0)]
exit:
if trend is down, short, L[Lowest(6,0)]
if trend up, long, H
reverse:
trend is up, short, L[Lowest(6,0)]
trend is down, long, H
------------------------------------------
If any programmar can make indicator or EA for this system. we all can see its potential.
I am sorry, but I did not understand the rules. Can you please elaborate or possibly use some numerical values to explain.
Thanks,
Maji
Breakout EA
Hi experts,
I would like to draw your attention to the following thread, especially the one discussion by fxengines. Here is the link: http://www.strategybuilderfx.com/forums/showthread.php?t=11530&page=4&pp
Most importantly, he has mentioned two systems in his discussions that I am copying and pasting here -
Example 1: Entry signal is a 60 minute breakout of 15 over the high of the last period, limit exit of 30. The probability in the report for GBP 60 MIN 15 trigger is 85.7%. This test yielded 84%, and made money.
"This engine had a net performance of 1298 pips with an 84% success rate. Had all trades been exited at the high, the engine would have been worth 2521 pips. However, an average of 1.97 pips per trade was "given back" from the high to the point where you exited. The maximum drawdown for this engine was 454 pips, with 3 losing trades during the worst losing streak and 46 winners during the best winning streak."
EXAMPLE 2: Entry signal is a 60 minute breakout of 25 over the high of the last period, limit exit of 30. The probability in the report for GBP 60 MIN 25 trigger is 95.2%. This test yielded 84%, and made money.
"This engine had a net performance of 941 pips with an 84% success rate. Had all trades been exited at the high, the engine would have been worth 1832 pips. However, an average of 2.02 pips per trade was "given back" from the high to the point where you exited. The maximum drawdown for this engine was 452 pips, with 3 losing trades during the worst losing streak and 25 winners during the best winning streak."
Has anyone written an EA to backtest and verify this claim? I tried, but could not duplicate their results or even come close, but I am no expert. I hope one of the gurus here can do it.
Thanks,
Maji
Need help coding EA
Hi, I downloaded the following EA and it seems to work quite well. However it does not apply Trailingstop, takeprofit and stoploss. could someone please correct the code. Any help is greatly appreciated. many thanks
//+------------------------------------------------------------------+
//| SMC Autotrader Momentum.mq4 |
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
extern double Lots = 1;
extern double InitialStop = 30;
extern double TrailingStop = 20;
extern bool TakeProfitMode = True;
extern int TakeProfit = 10;
extern bool StopLossMode = True;
extern int StopLoss = 25;
datetime BarTime;
//################################################## ###################
int init()
{
//----
//----
return(0);
}
//################################################## ###################
int start()
{
int cnt,total,ticket,MinDist,tmp;
double Spread;
//################################################## ##########################
if(Bars<100){
Print("bars less than 100");
return(0);
}
//exit if not new bar
if(BarTime == Time[0]) {return(0);}
//new bar, update bartime
BarTime = Time[0];
//################################################## #######################################
//~~~~~~~~~~~~~~~~Miscellaneous setup stuff~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
MinDist=MarketInfo(Symbol(),MODE_STOPLEVEL);
Spread=(Ask-Bid);
//################################################## #######################################
double SMAP1,SMAP2,MMAP1,MMAP2,LMAP1,LMAP2;
SMAP1=iMA(NULL,0,4,0,MODE_EMA,PRICE_CLOSE,1);
SMAP2=iMA(NULL,0,4,0,MODE_EMA,PRICE_CLOSE,2);
MMAP1=iMA(NULL,0,9,0,MODE_EMA,PRICE_CLOSE,1);
MMAP2=iMA(NULL,0,9,0,MODE_EMA,PRICE_CLOSE,2);
LMAP1=iMA(NULL,0,100,0,MODE_EMA,PRICE_CLOSE,1);
LMAP2=iMA(NULL,0,100,0,MODE_EMA,PRICE_CLOSE,2);
//################################################## ######################################
//################## ORDER CLOSURE ################################################## #
// If Orders are in force then check for closure against Technicals LONG & SHORT
//CLOSE LONG Entries
total=OrdersTotal();
if(total>0)
{
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()==OP_BUY && OrderSymbol()==Symbol())
{
if(SMAP2 > MMAP2 && SMAP1 < MMAP2)
{
OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet) ; // close LONG position
}}
//CLOSE SHORT ENTRIES:
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()==OP_SELL && OrderSymbol()==Symbol()) // check for symbol
{
if(SMAP2 MMAP2)
{
OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet) ; // close SHORT position
}}
} // for loop return
} // close 1st if
//################################################## ############################
//################## ORDER TRAILING STOP Adjustment #######################
//TRAILING STOP: LONG
if(0==1) //This is used to turn the trailing stop on & off
{
total=OrdersTotal();
if(total>0)
{
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()==OP_BUY && OrderSymbol()==Symbol()
&&
Bid-OrderOpenPrice()> (Point*TrailingStop)
&&
OrderStopLoss()<Bid-(Point*TrailingStop)
)
{OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderTakeProfit(),1,White);
return(0);}
}}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//TRAILING STOP: SHORT
total=OrdersTotal();
if(total>0)
{
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()==OP_SELL && OrderSymbol()==Symbol()
&&
OrderOpenPrice()-Ask > (Point*TrailingStop)
&&
OrderStopLoss() > Ask+(Point*TrailingStop)
)
{OrderModify(OrderTicket(),OrderOpenPrice(),Ask+(P oint*TrailingStop),OrderTakeProfit(),0,Yellow);
return(0);}
}}
} // end bracket for on/off switch
//################################################## ########################################
//~~~~~~~~~~~ END OF ORDER Closure routines & Stoploss changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~
//################################################## ########################################
//~~~~~~~~~~~~START of NEW ORDERS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//######################### NEW POSITIONS ? ######################################
//Possibly add in timer to stop multiple entries within Period
// Check Margin available
// ONLY ONE ORDER per SYMBOL
// Loop around orders to check symbol doesn't appear more than once
// Check for elapsed time from last entry to stop multiple entries on same bar
if (0==1) // switch to turn ON/OFF history check
{
total=HistoryTotal();
if(total>0)
{
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_HISTORY); //Needs to be next day not as below
if(OrderSymbol()==Symbol()&& CurTime()- OrderCloseTime() < (Period() * 60 )
)
{
return(0);
}}}}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
total=OrdersTotal();
if(total>0)
{
for(cnt=0;cnt<total;cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if(OrderSymbol()==Symbol()) return(0);
}
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(AccountFreeMargin()<(1000*Lots))
{Print("We have no money. Free Margin = ", AccountFreeMargin());
return(0);}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//################################################## #######################################
//ENTRY RULES: LONG
if(SMAP2 MMAP2)
{
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,"M axMin Long",16384,0,Orange); //Bid-(Point*(MinDist+2))
if(ticket>0)
{
if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES )) Print("BUY order opened : ",OrderOpenPrice());
}
else Print("Error opening BUY order : ",GetLastError());
return(0);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//ENTRY RULES: SHORT //################################
if(SMAP2 > MMAP2 && SMAP1 < MMAP2)
{
ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,0," MaxMin Short",16384,0,Red);
if(ticket>0)
{
if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES )) Print("SELL order opened : ",OrderOpenPrice());
}
else Print("Error opening SELL order : ",GetLastError());
return(0);
}
//################################################## ##################################
//############ End of PROGRAM #########################
return(0);
}