|
BarByBar EA Contest
Hi All,
Here is the BarBy Bar EA.
The conditions are missing.
Is looking as that:
if(CalculateCurrentOrders(Symbol())==0)
{
if(openenable)
{
if(YOUR BUY CONDITION)
{
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,spread,A sk-SLlevel*Point,Ask+TakeProfit*Point,OrdComment+":"+ wrkPeriodTxt,MagicNo,0,OpenBuy_Sig_Color);
}
if(YOUR SELL CONDITION)
{
ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,spread, Bid+SLlevel*Point,Bid-TakeProfit*Point,OrdComment+":"+wrkPeriodTxt,Magic No,0,OpenSell_Sig_Color);
}
}
...................................
Good luck and have a fun!
B.
|