Topics
Replies
RadoWay
07 Jun 2022, 09:35
( Updated at: 07 Jun 2022, 10:43 )
RE:
amusleh said:
Hi,
What do you mean by "How to fix Boolean"?
sorry i am very beginner,
this part i think need to be combined in one line
if (_rsi.Result.Last(1) < 70 && _rsi.Result.Last(2) >= 70)
{
foreach (var position in Positions.Where(p => p.SymbolName == SymbolName && p.TradeType == TradeType.Buy))
position.Close();
}
if (_rsi.Result.Last(1) >= 30 && _rsi.Result.Last(2) < 30)
{
foreach (var position in Positions.Where(p => p.SymbolName == SymbolName && p.TradeType == TradeType.Buy))
position.Close();
}
do i need to describe the strategy idea of the cBot?
@RadoWay
RadoWay
08 Jun 2022, 09:04
RE: RE:
thanks a lot
@RadoWay