This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

SetTradeDelays does not work

xxx

Joined
21 October 2016
Posts
31
Reactions
0
Hello,

I wrote a code where I would like to buy the next day opening thats why I set SetTradeDelays (1,0,0,0).
But it still buys on the same day and not on the following.
Does anybody knows why?
 
It does work.

Perhaps a code example might help to see where the anomoly is, we don't have crystal balls. How do you know it's not doing the right thing ? is it the date in explorer, real time testing, or buying the wrong price.

A few things it could be
1 - setting BuyPrice to the wrong days close or open.
2 - using ref incorrectly
3 - incorrect setting in the settings dialog.
 

thank you very much for your help!
I found my fault. It works now. I ad a fallacy.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more...