cbot issue with execute order once everytime condition activates
cbot issue with execute order once everytime condition activates
05 Jan 2019, 20:39
Please how do i execute an order once everytime the condition is met
ive used eg if positions.count==1 etc. but it ends up executing all the time.
how do i automate one trade per conditions been met like at tradingview
Replies
ryanoia@gmail.com
31 Jul 2019, 16:15
I tried incorporating the above in one of my cbots and an error occurred showing this:
Error CS0649: Field 'cAlgo.Robots.BlueMethDemoExpiration._conditionMet' is never assigned to, and will always have its default value false
I guess the part where you wrote" _conditionMet = ..." means something and needs to be applied to the condition. However, I am not certain how. Assistance with a more specific sample would be highly appreciated.
@ryanoia@gmail.com
PanagiotisCharalampous
07 Jan 2019, 09:41
Hi missyeam,
Thanks for posting in our forum. You can use a flag. See an example below.
Best Regards,
Panagiotis
@PanagiotisCharalampous