Usage Of A Array

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

Usage Of A Array

Postby Thomas Mann » 28 Oct 2007

Hi,
Could someone please show me how to use a array statement in PL.
I have tried to create an array of 32 locations and init them to 0 on start up.
I am trying to store each tick price into a single array location for the duration of the bar. In this case my chart is set to 31 ticks so I created a array of 31 locations. I seem to get an error trying to do the statement below. Any help would be appreciated
Thanks

array: PriceHit[32] (0);

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 29 Oct 2007

Hi Thomas Mann,

The statement compiles successfully. Do you get an error when you try to apply the statement? Or do you get the results that are different from what you expect them to be? Could you please give us more details on the problem?

Also, the following EasyLanguage guides might be useful: https://www.TS.com/support/bo ... tarted.pdf and https://www.TS.com/support/bo ... _Guide.pdf

Thomas Mann
Posts: 173
Joined: 25 Aug 2007

Postby Thomas Mann » 30 Oct 2007

Thanks Marina
I had a error a line above causing the issue.
It is resolved now

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 30 Oct 2007

You're welcome Thomas Mann. If you have any problems again just let us know.

Regards.


Return to “MultiCharts”