Robot executes one trade and stops working

Created at 08 Mar 2013, 16:56
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!
condor's avatar

condor

Joined 28.02.2013

Robot executes one trade and stops working
08 Mar 2013, 16:56


My robot executes only one trade and stops working after that.

I've added an instruction to force it to restart but it doesn't works :

        protected override void OnPositionClosed(Position position)
        {
        	OnBar();
        }




@condor
Replies

cAlgo_Fanatic
08 Mar 2013, 17:32

Hello,

Look at the log. If the robot crashes, there will be an error message there. You may post that message and/or post your code so that we can take a look at what the issue may be. You may also email the code to engage@ctrader.com

Regards,


@cAlgo_Fanatic

condor
08 Mar 2013, 18:07

The problem is there is that there is nothing in the log file and nothing in the error file i created. I'll send the entire code to the email adress you gave me.


@condor

gibson
20 Mar 2013, 05:24

I got the same problem, nothing wrong with log and no errors. 


@gibson

cAlgo_Fanatic
20 Mar 2013, 11:26

Please post the code or send it to engage@ctrader.com if you have not already done so, so that we can assist you.

 


@cAlgo_Fanatic