Topics
23 Sep 2022, 21:25
 1517
 13
26 Oct 2021, 11:33
 6
 908
 1
25 Feb 2021, 15:07
 837
 4
19 Oct 2020, 16:18
 0
 1042
 1
Replies

xabbu
17 Oct 2022, 14:26 ( Updated at: 17 Oct 2022, 14:58 )

Hey ncel01,

You can try an onTimer with

Symbol.MarketHours.TimeTillClose() <= _afterSessionOpen

and before define

afterSessionOpen = "22:" + Convert.ToString(minutesAfter) + ":00";                    
TimeSpan.TryParse(afterSessionOpen, CultureInfo.InvariantCulture, out _afterSessionOpen);

So with that logic my trades are only executed if the time to market close is smaller 22 hours and x minutes, which means I don't trade between 23 pm and 1 am (my time) broker dependend - but you got the idea.

xabbu

 


@xabbu

xabbu
05 Oct 2022, 13:34

support- or development-team???

error exists still also in 4.4.13


@xabbu

xabbu
04 Oct 2022, 16:28 ( Updated at: 04 Oct 2022, 16:36 )

probably because of that bug), if you load an old (from yesterday before upgarde) parameter file, the double fields are not imported correctly

 

HOW DO I CAN ROLL BACK to the pre version? Downloading 4.1 in help doesn't work and installing 4.1 from my download folder says there is already a newer version installed?

 

 


@xabbu

xabbu
26 Sep 2022, 12:44

Thank you very much for the kind and fast support, Panagiotis. 

 

Completly of topic but on my question list for a long time:

1) (when) will 2FA finally arive?

2) (when) will backtesting Renko comes anytime?

3) (when) will ctrader sales be so successfull as ctrader support ;-)?


@xabbu

xabbu
26 Sep 2022, 12:20 ( Updated at: 21 Dec 2023, 09:22 )

thanks for that hint, Panagiotis. Every selection but the selected (6.0.400) works fine, now - What should I select for best results? The embedded one or the latest 401?

 


@xabbu

xabbu
26 Sep 2022, 10:44

the error comes immeadiatly after pressing build with very short to no delay...

 


@xabbu

xabbu
26 Sep 2022, 10:41 ( Updated at: 21 Dec 2023, 09:22 )

sure... Thank you Panagiotis for taking care!


@xabbu

xabbu
10 Nov 2021, 15:24 ( Updated at: 10 Nov 2021, 15:25 )

sorry that does not work for me. I can switch dealmap on / off and it is greyed out after switching back to Renko

tested again, deal map is not selectable BUT trade is shown. Thank you!!!

 

 


@xabbu

xabbu
10 Nov 2021, 12:48

Dear Panagiotis,

I might be wrong, but look at the required sell margin. 14.000 GBP for 0.7 Lots?

We discussed a very similar issue with the order placement on my cBot and I could get the impression that something within cTrader is running not correctly. I don't want to interfere with this case here, only mentioning that are some similarities to my case, even if I place the trades with a cBot and in this case they are placed manually

Best regards to Cyprus,

 


@xabbu

xabbu
04 Nov 2021, 14:29

sorry, due to a signed NDA that is not possible. The command to open the pending order is:
 

PlaceStopLimitOrderAsync(type, SymbolName, volume, price, 3, InstanceName, stoploss, takeprofit, expiration, comment,
            true, OrderTriggered);

 

and there are NO cBots running which could interfere with a pending order or no commands in the cBot which close a pending order

 


@xabbu

xabbu
04 Nov 2021, 14:20 ( Updated at: 21 Dec 2023, 09:22 )

Panagiotis, another problem occures multiple time and I don't know if it's connected or not:

A pending order is placed by the cBot and and the system accepts this order. After a while (or some time immediatly) the order is CANCELLED by the system, I can't recognise any pattern. No other running cBot as any cancelling pending order commands implemented, I have absolutly no clue WHY the system cancels a pending order (exepted when the expiration time is reached, of course):

 

 

or here:

 


@xabbu

xabbu
04 Nov 2021, 10:36

Panagiotis, did you and your team received the file? Kindest regards

 


@xabbu

xabbu
04 Nov 2021, 09:36

the order is triggered with an algo and the following command:

PlaceStopLimitOrderAsync(type, SymbolName, volume, price, 3, InstanceName, stoploss, takeprofit, expiration, comment,
            true, OrderTriggered);


@xabbu

xabbu
04 Nov 2021, 09:34 ( Updated at: 21 Dec 2023, 09:22 )

the bug works also in the other direction, cTrader (and Windows) is restartet reveral times. TO what adress should I send the report, Panagiotis?

first picture checking pending order after placement / second modify to 0.5 lots / third modify back to initial volume 

 

 

 


@xabbu

xabbu
04 Nov 2021, 09:30

same for me


@xabbu

xabbu
02 Nov 2021, 15:29 ( Updated at: 21 Dec 2023, 09:22 )

and this is shown and will happen if I adjust to 0.09 and than back again to 0.1 with the little up/down arrows:

 

 


@xabbu

xabbu
02 Nov 2021, 15:24

Panagiotis, thank you for the quick answer an clarification


@xabbu

xabbu
26 Oct 2021, 11:25

Dear amusleh,

thank you for your kind support with my question and the code you have provided!

I have implemented it into my cBot and will run it - in my test it works as wanted.

Again, great support and great community here - appreciate it a lot!

Kindest regards to you and Panagiotis


@xabbu

xabbu
25 Oct 2021, 13:17

thanl you very much, @firemyst, for your kind reply.

can you or the cTrader support team help me to understand, how I can implement this or a similar logic for m1 into a Renko cBot?

Kindest regards and a great and successful week,


@xabbu

xabbu
12 Oct 2021, 15:54

on cTrader mobile (ios) everything is okay and right, only on cTrader Windows 4.1.9.49636 it is not since yesterday or so


@xabbu