Search found 6 matches
- 31 Mar 2020
- Forum: MultiCharts
- Topic: OpenD, CloseD etc fetching wrong values [SOLVED]
- Replies: 12
- Views: 2754
Re: OpenD, CloseD etc fetching wrong values [SOLVED]
Thankyou Svetlana and TJ. Ill try to get my logics right next time by using the plot functions. I can see that the order generated is carried overnight and thus the contract is bought on the opening of the day. And I want to prevent this from happening, is there any kind of code that can automatical...
- 30 Mar 2020
- Forum: MultiCharts
- Topic: OpenD, CloseD etc fetching wrong values [SOLVED]
- Replies: 12
- Views: 2754
Re: OpenD, CloseD etc fetching wrong values [SOLVED]
Yes I have tried using OpenS, still got the same results.
Also here is the data and also the workspace if anyone want to check out.
https://www.dropbox.com/sh/wi4bt8spyyjk ... 0m7wa?dl=0
Also here is the data and also the workspace if anyone want to check out.
https://www.dropbox.com/sh/wi4bt8spyyjk ... 0m7wa?dl=0
- 28 Mar 2020
- Forum: MultiCharts
- Topic: OpenD, CloseD etc fetching wrong values [SOLVED]
- Replies: 12
- Views: 2754
Re: OpenD, CloseD etc fetching wrong values [SOLVED]
Oh sorry, Ive missed that you have also change the time from 0920 to 0915.
So I quickly did the change to the program.
But when I change to "time = 0915" no orders are made no matter using which set of the two datas I have.
So I quickly did the change to the program.
But when I change to "time = 0915" no orders are made no matter using which set of the two datas I have.
- 28 Mar 2020
- Forum: MultiCharts
- Topic: OpenD, CloseD etc fetching wrong values [SOLVED]
- Replies: 12
- Views: 2754
Re: OpenD, CloseD etc fetching wrong values [SOLVED]
Forgot to tell you that Ive actually tried to use Close instead of CloseD before, still got the same results.
Thanks.
Thanks.
- 28 Mar 2020
- Forum: MultiCharts
- Topic: OpenD, CloseD etc fetching wrong values [SOLVED]
- Replies: 12
- Views: 2754
Re: OpenD, CloseD etc fetching wrong values [SOLVED]
But Ive tried to use the 24/7 session, still shows the same problem
Thanks
- 28 Mar 2020
- Forum: MultiCharts
- Topic: OpenD, CloseD etc fetching wrong values [SOLVED]
- Replies: 12
- Views: 2754
OpenD, CloseD etc fetching wrong values [SOLVED]
Hi, [IntrabarOrderGeneration = false]; Var:pass(false),openv(0); if time = 0920 then begin openv=OpenD(0); pass=true; end; if (marketposition = 0) and (close > (openv+100)) and (pass=true) then buy(NumToStr(openv,0)) next bar (openv +50) limit; if time = 1600 then pass=false; SetExitOnClose ; versio...