help with code. stop loss varying on each new trade
- Class CTrade without a stoploss value
- Please NEED HELP for coding!!
- Needs Help in coding.
You buy at Ask and Sell at Bid and you exit a buy at Bid and exit a sell at Ask.
So may be this solves the problem?
{Alert("BUY"); Ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,2,Bid-SL*Point,Bid+TP*Point);}
else
if (decision==2)
{Alert("SELL"); Ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,2,Ask+SL*Point,Ask-TP*Point);}
BTW mql4/mt4 questions belong the the thread at the bottom just for mt4/mql4!
You buy at Ask and Sell at Bid and you exit a buy at Bid and exit a sell at Ask.
So may be this solves the problem?
BTW mql4/mt4 questions belong the the thread at the bottom just for mt4/mql4!Alright, thanks for this correction. Another issue am having is whenever i restart mT4, the EA restarts and open a position, yet i want it to only opne positions at the hour change. How can i sort that one