Close All On Market Close Sample
Close All On Market Close Sample
16 Aug 2024, 05:45
Hi everyone,
I'm very much a newbie when it comes to cBot!
I would like all of my open positions to be closed at 3:30pm New York Time (30mins before NY close).
I managed to make a cBot using the “Close All On Market Sample” but I'm not sure what time to put in the “parameters” to close my positions at 3:30pm NY time.
My cTrader server time is UTC+0. I usually have my time set to UTC-4 (New York time). I have tested by using a time a minute or 2 after the current UTC0 and UTC-4 time but the Bot didn't fire. I don't understand the time convention the Bot is using. I did manage to get the cBot to close a position so I know it works.
I am based in Melbourne, Australia and use cTrader on the Mac desktop app, predominately using 5 min charts.
Any help would be much appreciated.
Here is the code (I didn't make any mods):
firemyst
11 Oct 2024, 00:54 ( Updated at: 11 Oct 2024, 05:05 )
Did you ever get this resolved or figured out?
@firemyst