Help me.
            
                 20 Jul 2021, 18:51
            
                    
I'm happy to have someone.
I want every negative 20pip to automatically stuff more orders with the same volume.
20-40-60-80
#region ontick
        protected override void OnTick()
        {
            var position = Positions.Find(InstanceName, SymbolName);
            {
                if (_rsi.Result.Last(1) > 30 && _rsi.Result.Last(1) < 70 && _rsi.Result.IsFalling())
                {
                    if (position == null)
                        ExecuteMarketOrder(TradeType.Buy, SymbolName, volume, InstanceName, StopLossInPips, TakeProfitInPips);
                }
                if (_rsi.Result.Last(1) < 10 && _rsi.Result.Last(1) > 70 && _rsi.Result.IsRising())
                {
                    if (position == null)
                        ExecuteMarketOrder(TradeType.Sell, SymbolName, volume, InstanceName, StopLossInPips, TakeProfitInPips);
                }
            }
        }
        #endregion
    }
}

amusleh
22 Jul 2021, 10:06
Hi,
Your question is not clear at all, nor is your code.
Please read the Automate API references before asking for help.
@amusleh