Search found 4 matches

by odrk
28 Aug 2018
Forum: MultiCharts
Topic: Using print for signals
Replies: 6
Views: 826

Re: Using print for signals

Yeah sure, but this strategy computes at the open of the next bar (lets call this bar X), and then PRINT only computes on the close of X. This means that there is a a lag between them. I would like PRINT to compute the same moment as the short position is entered, not at the close of bar X
by odrk
28 Aug 2018
Forum: MultiCharts
Topic: Using print for signals
Replies: 6
Views: 826

Re: Using print for signals

Hi ABC, Thank you for your help. The only issue with this solution is that since I use if condition1 and long_on <> 1 then sellshort ("SE") 1 contract next bar open; and if marketposition = -1 and barssinceentry >= 3 then buyToCover("SX") all contracts next bar open; I will only get the time/date pr...
by odrk
21 Aug 2018
Forum: MultiCharts
Topic: Using print for signals
Replies: 6
Views: 826

Re: Using print for signals

Ok looked into this a bit further. It prints every bar it is in a short position and every time it is not. Clearly I am very wrong. What I would like is to have it print the date and time for the short entry and then the date and time for the short cover
by odrk
21 Aug 2018
Forum: MultiCharts
Topic: Using print for signals
Replies: 6
Views: 826

Using print for signals

I am trying to use the print-function to print some information to a file that a py-script will interpretate. Right now it goes something like: condition1 = open[7] <= close[8] and high[4] > open[6]; if condition1 and long_on <> 1 then sellshort ("SE") 1 contract next bar open; if marketposition = -...

Go to advanced search