I am using Steve's shell EA for this experiment. Any help appreciated.
Cheers
ds
Code: Select all
//Long
if (SendLong)
{
stype = " Buy ";
price = Ask;//Change this to whatever the price needs to be
if (!SendAlertNotTrade)
{
take = CalculateTakeProfit(OP_BUY);
stop = CalculateStopLoss(OP_BUY);
//Lot size calculated by risk
if (RiskPercent > 0) SendLots = CalculateLotSize(price, NormalizeDouble(stop, Digits) );
type = OP_BUY;
}//if (!SendAlertNotTrade)
SendTrade = true;
}//if (SendLong)
//Short
if (SendShort)
{
stype = " Sell ";
price = Bid;//Change this to whatever the price needs to be
if (!SendAlertNotTrade)
{
take = CalculateTakeProfit(OP_SELL);
stop = CalculateStopLoss(OP_SELL);
//Lot size calculated by risk
if (RiskPercent > 0) SendLots = CalculateLotSize(NormalizeDouble(stop, Digits), price);
type = OP_SELL;
}//if (!SendAlertNotTrade)
SendTrade = true;
