For Y = 5 to 1

Questions about MultiCharts and user contributed studies.
bowlesj3
Posts: 2134
Joined: 21 Jul 2007
Has thanked: 209 times
Been thanked: 422 times

For Y = 5 to 1

Postby bowlesj3 » 20 Apr 2009

I just found out that this does not work.

For Y = 5 to 1

However this does work.

For Y = 1 to 5


That was all I had to change and my changes to my study worked.

John
Last edited by bowlesj3 on 20 Apr 2009, edited 1 time in total.

bowlesj3
Posts: 2134
Joined: 21 Jul 2007
Has thanked: 209 times
Been thanked: 422 times

Postby bowlesj3 » 20 Apr 2009

I checked the syntax and it appears you can work backward if you put in "DownTo".

For Counter = IValue DownTo FValue

Interesting. Learn something every day. It appears the compiler does not do a numeric value check and let my syntax error get buy.


in VBA you can change the increment like this.

For myNum = 16 To 2 Step -2

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 21 Apr 2009

For Y = 5 downto 1

bowlesj3
Posts: 2134
Joined: 21 Jul 2007
Has thanked: 209 times
Been thanked: 422 times

Postby bowlesj3 » 21 Apr 2009

Thanks Andrew. I figured that. John.

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 21 Apr 2009

You are always welcome.


Return to “MultiCharts”