I'm trying to program something like:
if today Open is less than yestarday low, and yesterday's (RSI < 50 & DI+ > DI-) Then Enterlong TODAY.
My provisional code is:
if (RSI(9, 3)[1] < 50
&& DM(14).DiPlus[1] > DM(14).DiMinus[1])
if (Open[0]<Low[1])
EnterLong();
The problem is that the order is doesn't filled Today, it is filled Tomorrow.
I'll hope you understand what i'm trying to expose.
Is there Any sample where I can find the solution? can you help me?
Thanks a lot.
Comment