Search found 11 matches

by rsi77
02 Dec 2009
Forum: MultiCharts
Topic: Marekt Profile levels indicator????
Replies: 1
Views: 629

Marekt Profile levels indicator????

I can't figure out how to do a search in this forum. Every time I click "search" it shows me options for searching, but doesn't offer a place to enter my search topic. Am I missing something here? Anyway, my question is concerning whether there is any indicator for Multicharts which will give Market...
by rsi77
19 Apr 2009
Forum: MultiCharts
Topic: Reading Historical Data from File
Replies: 1
Views: 987

Reading Historical Data from File

Is it possible to read historical data from a comma delimited file and then have it saved in the cache so it doesn't have to read from the file anymore?
by rsi77
09 Dec 2008
Forum: MultiCharts
Topic: How can I use bar start time?
Replies: 6
Views: 1960

You could also try

IF BarStatus(1)=0 AND Time>=930 THEN...

BarStatus = 0 means that you are processing the very first tick of a new bar, so if you then check the time you will know the time at the start of the bar.
by rsi77
08 Dec 2008
Forum: MultiCharts
Topic: persistence scope of variables within a study
Replies: 24
Views: 4691

just for eveyone's information I will briefly explain what I did. I wanted my buy/sell signals to be based on indicators which were based on completed bars only. In order to achieve this a placed all indicator calculations in an IF statement as follows: IF BARSTATUS(1)=2 THEN BEGIN Calculate indicat...
by rsi77
08 Dec 2008
Forum: MultiCharts
Topic: New question on persistence of variables
Replies: 9
Views: 2451

OK, I didn't have time to thorougly study your problem, but try the following: Place your function call inside an if state as follows: IF BarStatu(1)=2 THEN Function Call; This will call the function only on the last tick of the bar. Next any variables which have been assigned values based on the fu...
by rsi77
08 Dec 2008
Forum: MultiCharts
Topic: persistence scope of variables within a study
Replies: 24
Views: 4691

OK, I'm still not totally understanding everything that's been explained here, but I did get the strategy to work using intrabarpersist and barstatus. For now I'm satisifed but I don't totally get how it works. I'll keep pondering it. Thanks for the help.
by rsi77
07 Dec 2008
Forum: MultiCharts
Topic: persistence scope of variables within a study
Replies: 24
Views: 4691

OK, see below. I added a print statement at the very first line...the value has changed from the last line of code to the first line of code. There are not statements in between. I am set to IOG, but this should not require any extra code on the parameters unless I don't want it to execute IOG. As f...
by rsi77
07 Dec 2008
Forum: MultiCharts
Topic: persistence scope of variables within a study
Replies: 24
Views: 4691

OK Guys, I'll post the pertinent code. In the first section below I assign a value to "StopLoss_Short" only after all the conditions for entry have been fulfilled. There are no other assignments to the variable "StopLoss_Short" outside of the code I've posted below. There are 3 loops which contain t...
by rsi77
07 Dec 2008
Forum: MultiCharts
Topic: persistence scope of variables within a study
Replies: 24
Views: 4691

Under IOG mode, I have been given to understand that conflict can happen between variables declared as intrabarpersist and variables calculated once per bar (non-intrabarpersist) . TS support was able to demonstrate this behaviour with a sample code they sent me few weeks backs and the suggestion w...
by rsi77
07 Dec 2008
Forum: MultiCharts
Topic: persistence scope of variables within a study
Replies: 24
Views: 4691

I did some troubleshooting and found that the variable resets once the code starts from the top of the strategy. I placed a Print statement for the line number and the variable value at the very end of the strategy and also at the very beginning. The value is correct at the very end of the startegy,...
by rsi77
07 Dec 2008
Forum: MultiCharts
Topic: persistence scope of variables within a study
Replies: 24
Views: 4691

I am having the same problem as described above. One of my variables is being set to a certain value within a loop. Once the value has been set the loop is not re-entered again. However, the variable retains its proper value for only a single bar, then it reverts to another value. There is only 1 st...

Go to advanced search