Easy Language Question

Questions about MultiCharts and user contributed studies.
Thomas Mann
Posts: 173
Joined: 25 Aug 2007

Easy Language Question

Postby Thomas Mann » 05 Nov 2007

Does anyone know how to get a script to not process trigger conditions until after it has reached the last bar on a chart and currently up to date ?
I am having a issue where as my custom script processes the amount of days loaded into the chart it starts to fire orders because it reached a trigger condition. Obviously this is useless since the trigger condition happened in the past. I have tried to add in LastBarOnChart into my qualifier, but that did not seem to work. Any thoughts would be appreciated.

User avatar
Posts: 7407
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 996 times
Been thanked: 2123 times

Postby TJ » 05 Nov 2007

yes it can be done. There was a thread on the subject with solution posted. You have to do a search to find it.

Basically you insert a statement to compare the triggered bar with the current time. If it matches then fire off the order.

Thomas Mann
Posts: 173
Joined: 25 Aug 2007

Postby Thomas Mann » 06 Nov 2007

Thanks TJ
I will try to find it

Return to “MultiCharts”