Code to open only ome trade at a time

Created at 21 Aug 2021, 00:53
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
NI

ninsonphilip2

Joined 21.08.2021

Code to open only ome trade at a time
21 Aug 2021, 00:53


Hi guys

I'm new to cAlgo and I have been learning how to automate. I have managed to put together a cbot that trades with MA signals. The problem I have is it opens hundred of trades just on one signal.i don't know what's wrong. I've been searching but found no solution. Can someone please suggest a code for me that I can insert in my codes to only allow the EA to open only one trade at a time. Thanks


@ninsonphilip2
Replies

PanagiotisCharalampous
23 Aug 2021, 11:24

Hi ninsonphilip2,

Please share your source code so that we can help you further.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

ninsonphilip2
23 Aug 2021, 22:03

RE: I've been able to do it guys. Thanks

PanagiotisCharalampous said:

Hi ninsonphilip2,

Please share your source code so that we can help you further.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

 


@ninsonphilip2