Existing cBots don't work on Gold (XAU) or Oil (XTI)....????
Created at 28 Apr 2019, 08:25
Existing cBots don't work on Gold (XAU) or Oil (XTI)....????
28 Apr 2019, 08:25
Hi @Panagiotis, I have some cBots which I coded a while ago for cTrader 3.0. They still work fine on currencies Ver 3.3, yet the the ExecuteMarketOrder command (simple... see below) is not opening positions in either oil or metals....????
if (_ma1.Result.HasCrossedAbove(_ma2.Result, 1)) { ExecuteMarketOrder(TradeType.Buy, Symbol, VolumeInUnits, InstanceName, StopLossPips, TakeProfitPips);
Other trade commands ie: Stop(); appear to work fine. I understand it may have something to do with the 0.00 (two digit) values of these instruments?
Can you suggest a fix or reason why this is happening. Thx in advance.
PanagiotisCharalampous
30 Apr 2019, 14:16
Hi Symposium,
You need to provide more information on this. Where does this happen? On backesting? How can we reproduce? What is the volume? Do you get any error messages in the log?
Best Regards,
Panagiotis
@PanagiotisCharalampous