Specific day trade condition

Created at 09 Feb 2013, 02:35
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!
TA

tasr1r1

Joined 25.12.2012

Specific day trade condition
09 Feb 2013, 02:35


can somebody help me with a code for a bot that will not trade on friday?


@tasr1r1
Replies

algotrader
09 Feb 2013, 11:09

RE:
tasr1r1 said:

can somebody help me with a code for a bot that will not trade on friday?

 

        protected override void OnTick()
        {
        	if (Server.Time.DayOfWeek == DayOfWeek.Friday)
        		return;

 


@algotrader