Experts: N- candles v2

 

N- candles v2:

We look for N identical candles in a row. If the found candles bull — we buy, if bear — we sell.

N- candles v2

Author: Vladimir Karputov

 

Thanks for the good work! Reading your code is a good way to learn ;-)

I think there is a error in the call to your OpenSell function

OpenSell(m_symbol.Ask()+ExtTakeProfit,m_symbol.Bid()-ExtStopLoss);

This call gives wrong tp and sl 

I think the correct call should be:

OpenSell(m_symbol.Bid()+ExtStopLoss, m_symbol.Ask()-ExtTakeProfit);

best regards

Markus

 
rogempo:

Thanks for the good work! Reading your code is a good way to learn ;-)

I think there is a error in the call to your OpenSell function

OpenSell(m_symbol.Ask()+ExtTakeProfit,m_symbol.Bid()-ExtStopLoss);

This call gives wrong tp and sl 

I think the correct call should be:

OpenSell(m_symbol.Bid()+ExtStopLoss, m_symbol.Ask()-ExtTakeProfit);

best regards

Markus


There are no rules regarding the issue of TakeProfit and StopLoss. Everyone does as he likes :). Subtlety begins only with those who try to set the levels of the close to the current price.
Reason: