Scorpion,
Thanks for the newbie coding help - appreciated.
I plugged all that in and produced an mql which I've attached.
Last code block as follows doesn't make much sense to me on the entry conditions - both buy and sell would produce the same in my opinion.
Code:
// Check for BUY entry signal
If IsBuying and IsSelling=False and IsClosing=False then
{
// Buy
If StopLoss>0 then
{
RealSL=Ask-StopLoss*Point;
}
If TakeProfit>0 then
{
RealTP=Ask+TakeProfit*Point;
}
SetOrder(OP_BUY,Lots,Ask, Slippage,RealSL,RealTP,RED);
Alert("Reversal Beta 1: Buying");
};
// Check for SELL entry signal
If IsSelling and IsBuying=False and IsClosing=False then
{
// Sell
If StopLoss>0 then
{
RealSL=Bid+StopLoss*Point;
}
If TakeProfit>0 then
{
RealTP=Bid-TakeProfit*Point;
}
SetOrder(OP_SELL,Lots,Bid,Slippage,RealSL,RealTP,RED);
Alert("Reversal Beta 1: Selling");
};
As an aside, can placing Limits simply be a find/replace on the Buy/Sell instructions ? Forgive my lack of knowledge on mql
Cheers
Martin