Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

TinGull

[VSA] Volume Spread Analysis Part I

Recommended Posts

Hi dandxg,

 

I also use Wyckoff PnF. I use it to find stocks that have enough potential and to estimate price targets for exits.

 

nic

 

Nice. Can you recommend a source to learn Wyckoff P and F? Would the Hutson book suffice? I bought Hank Pruden's book but it's hard to learn something from just a few charts. I signed up for the yahoo group, but I don't see anyone posting P an F charts as of yet? I am willing to buy Dorsey's book if need be but he does 3 box instead of 1 I believe?

Share this post


Link to post
Share on other sites
Short set up(s):

 

Interesting things prior to the trade set up.

 

A: UpThrust out of place (Polar bear in Africa). If this had been real weakness, there would be weakness in the background.

 

B: Test. Notice that the volume is low and the close is in the middle. No sellers.

 

C: Test. Note that the volume on this Test is even lower than the Test two bars ago. Even more evidence that at this time the path of least resistance is up.

 

D: Narrower to equal range bar with more volume than previous bar that closes on the low and is a buying bar. That is, it makes a higher high than previous bar but not a lower low. This is a Squat/UpThrust. This candle is designed to get people in on the long side.

 

E: Now we get what we want to see. This is a dark WRB. High volume on down bars usually means selling and this is the case here. Since this is a WRB, we know that something is changing in the supply/demand dynamics in the market. This WRB sets up our Support/Resistance zone to look for an entry point.

 

F: This is a Test. But note that the volume here is higher than the previous two test, while being lower than the previous two candles. Hence, while we have low volume we have pretty high volume for a test. In other words, this is a failed test. It shows that there are sellers (supply) below. Also note the size of the range versus the previous two Test.

 

G: BINGO. Low volume sign within the range of the body of a WRB with high volume after a Failed Test. This is an Up bar on volume less than the previous two bars, making a higher high , on a narrower range. This is No Demand. The Smart Money is not interested in higher prices.

 

H: This is No Supply and out of place. More exactly, the background is full of weakness so this No Supply should not be taken as a long signal. The Pros may not be ready to take the market down, but they are not looking to go long.

 

I: Case and point we see No Demand. Clearly the market does not want to go up.

 

J: Higher high, closing on the lows, closing up on higher volume. This is an UpThrust. We have weakness in the background. This also occurs within the body of the Dark WRB making a good place to place a short entry.

 

K: High volume closing down from previous bar but closing in the upper portion of its range- this is stopping volume.

 

Hey really nice chart with annotations. :) I have to ask the obvious. How did you get all of the neat indicators?

Share this post


Link to post
Share on other sites
How did you get all of the neat indicators?

 

dandxg - I will take the liberty of answering on PPs behalf (he will be along to correct me if need be!) - he wrote them himself for his charting platform. Earlier on in this thread PP generously shared the coding for the indicators he had written up - it is in here somewhere! From memory the coding is in Metastock format, but if you do not have Metastock the coding is very logical and understandable so it can be reproduced on some other platform.

 

hope this helps

Share this post


Link to post
Share on other sites
dandxg - I will take the liberty of answering on PPs behalf (he will be along to correct me if need be!) - he wrote them himself for his charting platform. Earlier on in this thread PP generously shared the coding for the indicators he had written up - it is in here somewhere! From memory the coding is in Metastock format, but if you do not have Metastock the coding is very logical and understandable so it can be reproduced on some other platform.

 

hope this helps

 

Great, much appreciated. It's nice to be forum, not elitetrader, where ppl. help one another more often than they take cheap shots. So Soul Trader take that as a compliment. :)

Share this post


Link to post
Share on other sites
I'm a new user of Tradeguider (TG) and am wondering if someone might recommend a good Parent Stock Index to use for Stock Scanning in TG. Thank you.

 

Well I don't have TG, but I have read Williams' book and have read a fair amount on Wyckoff so let me attempt to give you a hand. I trade index futures.

 

On what exchange does your stock exist. It is S and P, DOW, NAS, Russ? The way I read it before, and correct me someone if I am wrong, is you want to get a macro view of the parent index, let say S&P 500. On a daily I feel it is down and that's as high as I need to go because I am a day trader. So then I would pick some stocks in that index using their scanner that show the greatest weakness and I wait for a signal and hit it. Some in Wyckoff use Dow Theory and look at the DJI, dow jones transports. If you determine they look weak you can then drill down to a specific stock showing the greatest signs of weakness and sell it when you have a signal. Make sense?

 

Conversely in a strong market you would want to look for the specific stock showing the greatest strength and trade that. It's covered in Master the Markets. Hopefully I answered your question.

Share this post


Link to post
Share on other sites
Nice. Can you recommend a source to learn Wyckoff P and F? Would the Hutson book suffice? I bought Hank Pruden's book but it's hard to learn something from just a few charts. I signed up for the yahoo group, but I don't see anyone posting P an F charts as of yet? I am willing to buy Dorsey's book if need be but he does 3 box instead of 1 I believe?

 

Hi,

 

Wyckoff and Dorsey construct and interpret PnF charts very differently. SMI has also modified and built upon how to use the charts. The original Wyckoff course covers the topic and the SMI course has an incredible amount of material, including audio tapes (now mp3) made in the 60's and 70's by Bob Evans who ran SMI during that time.

 

You don't need to worry about knowing how to calculate the charts unless you end up doing them by hand. Stockcharts.com, with special settings, does the charts correctly. Here are my settings: http://tinyurl.com/2qn3fn

 

Bull's-Eye Broker is a program that does them too and has a little explanation on their site. http://www.archeranalysis.com TradeGuider's next release is supposed to do them also.

 

I'll PM you.

 

nic

Share this post


Link to post
Share on other sites

I find some things very interesting on this weekly DJIA chart. One being the obvious, we clearly broke a key area noted with the first red arrow. Now we are nearing another key level, which was the low of last year. If the volume is correct, this week was the highest seen on this chart, which goes back to Jan. 05. Another thing I find interesting, is we retested that key level to the $ and sold straight off. The huge volume throws a flag up and the fact we are nearing 12000 and 07 low also throws a flag up. If I am to suspect this week showed some buying, I guess a test of the 07 low is in store. However, if this test fails then we could have a long way to fall. I am by no means a VSA expert, so if any of you guys with more knowledge care to comment please do so. Thanks for the time and everyone have a great weekend.

Djiaweekly.PNG.29e861a4f70690949efff058941560c6.PNG

Share this post


Link to post
Share on other sites
ES Analysis for friday 18th jan 08

 

Regards Sebastian

 

Thank you for the comentary Sebastian. If you were trading on the 18th where did you make your trades based upon your comentary?

In your discussions you say you expect the next bar to be up or down, are you then taking a position at the close of the bar that makes you think that?

 

thanks

Share this post


Link to post
Share on other sites
I find some things very interesting on this weekly DJIA chart. One being the obvious, we clearly broke a key area noted with the first red arrow. Now we are nearing another key level, which was the low of last year. If the volume is correct, this week was the highest seen on this chart, which goes back to Jan. 05. Another thing I find interesting, is we retested that key level to the $ and sold straight off. The huge volume throws a flag up and the fact we are nearing 12000 and 07 low also throws a flag up. If I am to suspect this week showed some buying, I guess a test of the 07 low is in store. However, if this test fails then we could have a long way to fall. I am by no means a VSA expert, so if any of you guys with more knowledge care to comment please do so. Thanks for the time and everyone have a great weekend.

 

jwhite, it's always a good idea to check out the futures market for the cash market you're looking at to get the consensus of the professionals. I only have CME data so I can't bring up a chart but seeing how the professinals are trying to benefit their personal accounts (futures) will give you a good hint.

Share this post


Link to post
Share on other sites
ES Analysis for friday 18th jan 08

 

Regards Sebastian

 

Hi Seb M

 

when I open this file it automatically starts up in windows media player.

 

I can hear the sound but can't see an image, what am I doing wrong.

 

dd

Share this post


Link to post
Share on other sites
I can hear the sound but can't see an image, what am I doing wrong.dd

 

Dick Dastardly ... love it! Muttley must be around somewhere too. :)

 

I am no computer expert but I think there are a couple of things to try to get the presentation working properly for you. Check you have a recent version of Windows Media Player - at least version 9. If it still doesn't work you may need to download some codecs. I tried a Google search for "wmv audio no video" and found a few places to get up to date codecs so give that a try.

 

Let us know how you go.

Share this post


Link to post
Share on other sites
Nice of you to join us. I have stated on one of these many pages that the best thread on the internet bar none is db phoenix's thread. Everyone should take a look at it. However, I sure hope we get back to VSA soon and end the TG bashing (and you know how much I hate TG)....

 

I would be remiss without saying how much I appreciate your contributions on this thread. Wow I just read this entire thread in the last 2 days! My brain is stretched and tired, in good way! Thanks PP for being so generous to share your coding as well as your insights. Thanks much too Sebastian. I get to catch you now on all 3 forums which is great. And lastly thanks all for their contributions as well. After so needed rest I will attempt to post some charts as I trade ER2 on a 3 min. Enjoy your day off Monday.

Share this post


Link to post
Share on other sites

If you know how to make this a zip, please feel free to do so. For those with VT, just copy into a new trading system and then go to outputs and input the various No Demand/No Supply and Squat signs.

 

VolAve:=Mov(V,30,S);

HV:=MOV(V,30,S)+(1.0*STDEV(V,30));

SHV:=MOV(V,30,S)+(2.0*STDEV(V,30));

UHV:=MOV(V,30,S)+(3.0*STDEV(V,30));

EHV:=MOV(V,30,S)+(4.0*STDEV(V,30));

 

NoDemand:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<Ref((H-L),-1) and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<Ref((H-L),-1) and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand1:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply1:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand2:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply2:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand3:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply3:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand4:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply4:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand5:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C>ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C>ref(C,+3) and H>=ref(H,+1) and H>=ref(H,+2) and H>=ref(H,+3) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply5:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C<ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C<ref(C,+3) and L<=ref(L,+1) and L<=ref(L,+2) and L<=ref(L,+3) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand6:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C>ref(C,+3) and H>=ref(H,+1) and H>=ref(H,+2) and H>=ref(H,+3) and V<ref(V,-1) and V<ref(V,-2) and NoDemand5=0,1,0);

NoSupply6:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C<ref(C,+3) and L<=ref(L,+1) and L<=ref(L,+2) and L<=ref(L,+3) and V<ref(V,-1) and V<ref(V,-2) and NoSupply5=0,1,0);

 

NoDemand7:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C>ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C>ref(C,+3) and H>=ref(H,+1) and H>=ref(H,+2) and H>=ref(H,+3) and V<ref(V,-1) and V<ref(V,-2) and NoDemand5=0,1,0);

NoSupply7:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C<ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C<ref(C,+3) and L<=ref(L,+1) and L<=ref(L,+2) and L<=ref(L,+3) and V<ref(V,-1) and V<ref(V,-2) and NoSupply5=0,1,0);

 

NoDemand8:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C=O and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply8:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C=O and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand9:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=H and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply9:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand10:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply10:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand11:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply11:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=H and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand12:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C=O and C=H and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply12:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C=O and C=L and C>ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand13:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2) and NoDemand12=0,1,0);

NoSupply13:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2) and NoSupply12=0,1,0);

 

NoDemand14:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C=O and C=L and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2) and NoDemand12=0,1,0);

NoSupply14:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C=O and C=H and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2) and NoSupply12=0,1,0);

 

NoDemand15:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply15:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand16:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply16:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand17:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply17:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand18:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply18:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand19:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply19:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand20:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C>ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C>ref(C,+3) and H>=ref(H,+1) and H>=ref(H,+2) and H>=ref(H,+3) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply20:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C<ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C<ref(C,+3) and L<=ref(L,+1) and L<=ref(L,+2) and L<=ref(L,+3) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand21:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C>ref(C,+3) and H>=ref(H,+1) and H>=ref(H,+2) and H>=ref(H,+3) and V<ref(V,-1) and V<ref(V,-2) and NoDemand20=0,1,0);

NoSupply21:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C<ref(C,+3) and L<=ref(L,+1) and L<=ref(L,+2) and L<=ref(L,+3) and V<ref(V,-1) and V<ref(V,-2) and NoSupply20=0,1,0);

 

NoDemand22:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C>ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C>ref(C,+3) and H>=ref(H,+1) and H>=ref(H,+2) and H>=ref(H,+3) and V<ref(V,-1) and V<ref(V,-2) and NoDemand20=0,1,0);

NoSupply22:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C<ref(C,-1) and C=ref(C,+1) and C=ref(C,+2) and C<ref(C,+3) and L<=ref(L,+1) and L<=ref(L,+2) and L<=ref(L,+3) and V<ref(V,-1) and V<ref(V,-2) and NoSupply20=0,1,0);

 

NoDemand23:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply23:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand24:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C<>O and C=H and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply24:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C<>O and C=L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand25:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply25:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand26:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=H and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply26:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=L and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand27:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2) and NoDemand26=0,1,0);

NoSupply27:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2) and NoSupply26=0,1,0);

 

NoDemand28:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply28:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand29:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply29:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand30:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply30:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand31:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C=ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply31:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C=ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand32:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C=ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2) and NoDemand34=0,1,0);

NoSupply32:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C=ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2) and NoSupply34=0,1,0);

 

NoDemand33:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C=O and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply33:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C=O and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand34:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply34:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand35:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=L and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply35:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=H and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand36:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply36:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand37:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply37:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand38:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply38:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand39:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply39:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand40:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C=ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply40:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C=ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand41:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C=ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2) and NoDemand40=0,1,0);

NoSupply41:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C=ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2) and NoSupply40=0,1,0);

 

NoDemand42:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=H and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply42:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=L and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand43:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2) and NoDemand42=0,1,0);

NoSupply43:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2) and NoSupply42=0,1,0);

 

NoDemand44:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=L and C=ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2) and NoDemand42=0,1,0);

NoSupply44:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=H and C=ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2) and NoSupply42=0,1,0);

 

NoDemand45:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C<ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply45:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C>ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand46:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply46:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand47:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C<ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply47:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C>ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand48:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply48:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand49:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C<ref(C,-1) and C=ref(C,+1) and C>ref(C,+2) and H>=ref(H,+1) and H>=ref(H,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2) and NoDemand48=0,1,0);

NoSupply49:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C>ref(C,-1) and C=ref(C,+1) and C<ref(C,+2) and L<=ref(L,+1) and L<=ref(L,+2) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2) and NoSupply48=0,1,0);

 

NoDemand50:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C=O and C<ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply50:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C=O and C>ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand51:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply51:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand52:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=L and C<ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)>Ref(C,-2),1,0);

NoSupply52:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)>=ref((H-L),-1) and C<>O and C=H and C>ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and Ref(C,-1)<Ref(C,-2),1,0);

 

NoDemand53:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V=ref(V,-1) and V<=ref(V,-2),1,0);

NoSupply53:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V=ref(V,-1) and V<=ref(V,-2),1,0);

 

NoDemand54:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V=ref(V,-1) and V<=ref(V,-2),1,0);

NoSupply54:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V=ref(V,-1) and V<=ref(V,-2),1,0);

 

NoDemand55:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V=ref(V,-1) and V<=ref(V,-2),1,0);

NoSupply55:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V=ref(V,-1) and V<=ref(V,-2),1,0);

 

NoDemand56:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V=ref(V,-1) and V<=ref(V,-2),1,0);

NoSupply56:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V=ref(V,-1) and V<=ref(V,-2),1,0);

 

NoDemand57:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V=ref(V,-2),1,0);

NoSupply57:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V=ref(V,-2),1,0);

 

NoDemand58:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V=ref(V,-2),1,0);

NoSupply58:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V=ref(V,-2),1,0);

 

NoDemand59:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V=ref(V,-2),1,0);

NoSupply59:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V=ref(V,-2),1,0);

 

NoDemand60:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V<ref(V,-1) and V=ref(V,-2),1,0);

NoSupply60:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V<ref(V,-1) and V=ref(V,-2),1,0);

 

NoDemand61:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C>ref(C,-1) and C>ref(C,+1) and H<ref(H,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

NoSupply61:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C<ref(C,-1) and C<ref(C,+1) and L>ref(L,+1) and V<ref(V,-1) and V<ref(V,-2),1,0);

 

NoDemand62:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,-1) and C>ref(C,+1) and H<ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and NoDemand61=0,1,0);

NoSupply62:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,-1) and C<ref(C,+1) and L>ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and NoSupply61=0,1,0);

 

NoDemand63:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C>ref(C,-1) and C>ref(C,+1) and H<ref(H,+1) and V<ref(V,-1) and V<ref(V,-2) and NoDemand61=0,1,0);

NoSupply63:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C<ref(C,-1) and C<ref(C,+1) and L>ref(L,+1) and V<ref(V,-1) and V<ref(V,-2) and NoSupply61=0,1,0);

 

SquatU:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and V>ref(V,-1) and V>=EHV,1,0);

SquatD:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and V>ref(V,-1) and V>=EHV,1,0);

 

SquatU1:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<EHV and V>=UHV,1,0);

SquatD1:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<EHV and V>=UHV,1,0);

 

SquatU2:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

SquatD2:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

 

SquatU3:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

SquatD3:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

 

SquatU4:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

SquatD4:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

 

SquatU5:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

SquatD5:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

 

SquatU6:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

SquatD6:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

 

SquatU7:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=HV and SquatU6=0,1,0);

SquatD7:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=HV and SquatD6=0,1,0);

 

SquatU8:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=HV and SquatU6=0,1,0);

SquatD8:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=HV and SquatD6=0,1,0);

 

SquatU9:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

SquatD9:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

 

SquatU10:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

SquatD10:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

 

SquatU11:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

SquatD11:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

 

SquatU12:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<HV and V>=VolAve,1,0);

SquatD12:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<HV and V>=VolAve,1,0);

 

SquatU13:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<HV and V>=VolAve and SquatU12=0,1,0);

SquatD13:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<HV and V>=VolAve and SquatD12=0,1,0);

 

SquatU14:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<HV and V>=VolAve and SquatU12=0,1,0);

SquatD14:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<HV and V>=VolAve and SquatD12=0,1,0);

 

SquatU15:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C>ref(C,-1) and V>ref(V,-1) and V>=EHV,1,0);

SquatD15:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<ref(C,-1) and V>ref(V,-1) and V>=EHV,1,0);

 

SquatU16:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<EHV and V>=UHV,1,0);

SquatD16:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<EHV and V>=UHV,1,0);

 

SquatU17:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

SquatD17:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

 

SquatU18:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

SquatD18:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

 

SquatU19:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

SquatD19:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

 

SquatU20:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

SquatD20:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

 

SquatU21:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=SHV,1,0);

SquatD21:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=SHV,1,0);

 

SquatU22:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=HV and SquatU21=0,1,0);

SquatD22:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=HV and SquatD21=0,1,0);

 

SquatU23:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=HV and SquatU21=0,1,0);

SquatD23:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=HV and SquatD21=0,1,0);

 

SquatU24:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

SquatD24:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

 

SquatU25:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

SquatD25:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=((H-L)*0.5)+L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

 

SquatU26:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

SquatD26:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C<>O and C=H and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<SHV and V>=HV,1,0);

 

SquatU27:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<HV and V>=VolAve,1,0);

SquatD27:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<HV and V>=VolAve,1,0);

 

SquatU28:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<HV and V>=VolAve and SquatU27=0,1,0);

SquatD28:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<HV and V>=VolAve and SquatD27=0,1,0);

 

SquatU29:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=L and C>ref(C,-1) and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<HV and V>=VolAve and SquatU27=0,1,0);

SquatD29:=If(H<=ref(H,-1) and L>=ref(L,-1) and (H-L)<ref((H-L),-1) and C=O and C=H and C<ref(C,-1) and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<HV and V>=VolAve and SquatD27=0,1,0);

 

SquatU30:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and V>ref(V,-1) and V>=EHV,1,0);

SquatD30:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)=ref((H-L),-1) and C=O and V>ref(V,-1) and V>=EHV,1,0);

 

SquatU31:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<EHV and V>=UHV,1,0);

SquatD31:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)=ref((H-L),-1) and C=O and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<EHV and V>=UHV,1,0);

 

SquatU32:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=H and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

SquatD32:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)=ref((H-L),-1) and C=O and C=L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<UHV and V>=SHV,1,0);

 

SquatU33:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<UHV and V>=SHV and SquatU32=0,1,0);

SquatD33:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)=ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<UHV and V>=SHV and SquatD32=0,1,0);

 

SquatU34:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and V<UHV and V>=SHV and SquatU32=0,1,0);

SquatD34:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)=ref((H-L),-1) and C=O and C=H and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and V<UHV and V>=SHV and SquatD32=0,1,0);

 

SquatU35:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=H and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and Ref(C,-1)>Ref(C,-2) and V<SHV and V>=VolAve,1,0);

SquatD35:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)=ref((H-L),-1) and C=O and C=L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and Ref(C,-1)<Ref(C,-2) and V<SHV and V>=VolAve,1,0);

 

SquatU36:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and Ref(C,-1)>Ref(C,-2) and V<SHV and V>=VolAve and SquatU35=0,1,0);

SquatD36:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)=ref((H-L),-1) and C=O and C=((H-L)*0.5)+L and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and Ref(C,-1)<Ref(C,-2) and V<SHV and V>=VolAve and SquatD35=0,1,0);

 

SquatU37:=If(H>ref(H,-1) and L>=ref(L,-1) and (H-L)=ref((H-L),-1) and C=O and C=L and C>ref(C,+1) and H>=ref(H,+1) and V>ref(V,-1) and Ref(C,-1)>Ref(C,-2) and V<SHV and V>=VolAve and SquatU35=0,1,0);

SquatD37:=If(L<ref(L,-1) and H<=ref(H,-1) and (H-L)=ref((H-L),-1) and C=O and C=H and C<ref(C,+1) and L<=ref(L,+1) and V>ref(V,-1) and Ref(C,-1)<Ref(C,-2) and V<SHV and V>=VolAve and SquatD35=0,1,0);

Share this post


Link to post
Share on other sites

PP - this programming you have done must represent many, many hours of work ... to just post it on the forum is extremely generous ... can I be the first to thank-you.

 

On a practical note, these formulae will work in Metastock, might require a little playing with but the logic and language is the same.

Share this post


Link to post
Share on other sites

Hi All ...

 

 

Special BIGGGGGGGGGGGGGG Thaaaaaaaaanx to PP ..

 

You are a rare man in this Universe .. I beleive so ..

 

Thanx for kindness & helping & Understanding ..

 

 

God bless you ...

Share this post


Link to post
Share on other sites
Thank you for the comentary Sebastian. If you were trading on the 18th where did you make your trades based upon your comentary?

In your discussions you say you expect the next bar to be up or down, are you then taking a position at the close of the bar that makes you think that?

 

thanks

 

Hi JJ

I trade FX now because the hours and liquidity suit me better, I analyze the eminis because that is what people seem to be interested in, but yes I trade off the principles that I use to comment.

 

Regards S

Share this post


Link to post
Share on other sites
Hi JJ

I trade FX now because the hours and liquidity suit me better, I analyze the eminis because that is what people seem to be interested in, but yes I trade off the principles that I use to comment.

 

Regards S

 

Cool, would love to see your forex analysis as well. One thing I noticed about forex it that it will continue up for quite some time even though weakness has appeared. How do you deal with this when trading?

Thanks for your contributions to the tradeguider events. You've made them much more worth while these days.

 

JJ

Share this post


Link to post
Share on other sites
Market Phases:

 

In many ways the forex market is easier to trade as the signs and market phases are so clear, but VSA is for all timeframes and all markets.

 

Thanks for the chart PP. Is your Euro chart from last Friday? If it is, it's amazing how it's action mirrors the ES. You can see the same phases happening.

 

Do you actually make your trades from a 5 min chart on the Euro? If you do, what kind of a move are you looking for with strength or weakness appearing on it? I know on longer term charts weakness/strength will hang around longer but I'm just curious what size of moves you take on the 5 with Forex. I'm contemplating trading the Euro myself.

5aa70e34bd4f2_ESFriday.jpg.63af7558f56aaa7999a44467ad19eb14.jpg

Share this post


Link to post
Share on other sites
Market Phases:

 

In many ways the forex market is easier to trade as the signs and market phases are so clear, but VSA is for all timeframes and all markets.

 

Hi PP,

 

I'm curious as to why you have "accumulation" as it's coming down hard off the top of a daily range? Thanks.

 

nic

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Topics

  • Posts

    • "To make more capable, powerful AI models, developers need a steady flow of fresh data to train their models on. However, they’re starting to run out. Current generative AIs have scraped everything from the Internet that can be scraped. The alternative is to use “synthetic” data—training data generated by earlier forms of AI instead of original sources found on the Internet.  Using synthetic data is tempting. It’s cheaper than licensing datasets (an increasingly common requirement); there’s virtually no limit to the amount of data, text, or images AIs can create; and no one’s privacy is violated. The problem is that, over several generations, AIs trained synthetically develop what has been called “Model Autophagy Disorder,” or MAD, by the researchers at Rice University who discovered it. They like the acronym “MAD” because it’s similar to “Mad Cow Disease,” a calamitous, fatal brain disease that turned up in beef cattle in the 1980s when they were fed the ground-up remains of their butchered colleagues.  The word “autophagy” is a combination of the Greek “auto,” meaning self, and “phagy,” to eat. After training successive visual AI models on synthesized data, the scientists found a disturbing pattern: images of faces began to show grid-patterned scratch marks and eventually began more and more to look like the same face. Images of numbers gradually distorted until they became a mass of unintelligible squiggles.  “Even after a few generations of such training, the new models can become irreparably corrupted,” computer engineer Richard Baraniuk said in a university press statement.  As synthetic data, and synthetically trained AIs, proliferate online, the problem will feed on itself and become steadily worse, he warned. “One doomsday scenario is that if left uncontrolled for many generations, MAD could poison the data quality and diversity of the entire Internet,” Baraniuk said. “Short of this, it seems inevitable that as-to-now-unseen unintended consequences will arise from AI autophagy even in the near term. “Without enough fresh real data,” he added, “future generative models are doomed to MADness.” TRENDPOST: If AI developers come to believe that it is no longer possible to advance generative AI much beyond its current state, two things will happen. First, engineers will switch from developing new models to tweaking existing ones and continue customizing them to make off-the-shelf versions for specific industries. Second, developers will turn their obsession with AI power from generative systems to general AI, which can reason and make decisions without the need for human guidance.  That day might be closer than any of us, including AI engineers, are ready to deal with." Zgbs73                        
    • TS Tenaris stock, watch for a top of range breakout above 39.17 at https://stockconsultant.com/?TS
    • UAL United Airlines stock nice breakout setup at https://stockconsultant.com/?UAL
    • AAL American Airlines stock, good trend, watch for a range breakout at https://stockconsultant.com/?AAL
    • Date: 10th January 2025. Why is the British Pound Declining?   The Great British Pound is the worst performing currency of 2025 so far after witnessing sharp declines for 3 consecutive days. The decline is largely being triggered by the bond selloff, lack of business confidence due to the UK Autumn budget and political uncertainty. Will the trend continue?     The GBP Index Declines 2% In 2025! Why Is The Pound Dropping? The Great British Pound is the worst performing currency of the week and of the year so far. Below you can see a table showing the Pound’s performance in January 2025 so far. GBPUSD -2.25% EURGBP +1.69% GBPJPY -1.44% GBPCHF -1.42% GBPAUD -1.91% GBPCAD -2.00% A key reason for the GBP’s decline is the latest labor budget, which is driving a selloff in UK bonds. Bonds across the global market are declining, including in the US and Germany. However, the global decline is mainly due to monetary policy. The decline in UK bond yields is due to concerns regarding the UK budget, higher costs for business and investor confidence. As a result, investors are selling UK bonds, but also reducing their exposure to the Pound. Bond Selloff and Rising Yields: Higher bond yields can sometimes strengthen a currency by attracting increased investor demand. However, this effect is unlikely when rising yields result from a bond selloff driven by declining investor confidence. The UK 30-Year Bond Yields are at their highest level since 1998 and the 10-Year Bond Yields are up to the highest level since the banking crisis of 2008. Investors’ concerns are that the higher costs for business will be passed onto consumers, triggering higher stickier inflation. As a result, the Bank of England will struggle to reduce the cost of borrowing in 2025 and foreign investors will become more cautious of operations in the UK. The short-term impact is that the UK Chancellor may struggle to meet her fiscal rules. Her budget margin of £9.9bn to avoid overshooting borrowing has likely shrunk to about £1 billion due to market shifts, even before the OBR updates its forecasts. This uncertainty may force the Treasury to cut future spending plans, but the full picture won’t emerge until the OBR's March forecast. According to reports, the UK Chancellor cannot risk higher increases in taxes and will be forced to cut public spending. The GBPUSD Falls To A 60-Week Low! The GBP is struggling against all currencies, but the sharpest decline can be seen against the USD. The GBP’s decline is partially due to the incoming president, Donald Trump, who is expected to introduce Dollar-supporting measures, but also potentially impose tariffs on the UK.   The new White House administration is likely to impose new tariffs on imports from China, Canada, and Mexico. This is likely to potentially disrupt supply chains and prompt the Federal Reserve to adopt tighter monetary policy, thereby strengthening the national currency. Some experts believe the UK will face tariffs or be pressured to adopt more pro-American economic policies. This is also something the EU will likely experience. In addition to this, reports suggest that the UK Prime Minister, Keir Starmer, and Trump supporters are not on good terms, nor agree on much including on Geo-politics. Therefore, the decline is also related to concerns the UK may be put into a difficult position by the new US administration. According to analysts, Dollar strength is likely to continue throughout the year due to the new administration’s measures, but also due to a hawkish Federal Reserve. In the latest FOMC meeting minutes, the committee stated it expects interest rates to decline at a slower pace. The Federal Reserve is likely to only cut 0.50% in 2025 and may not cut until May or June. Liz Truss 2022 Or James Callaghan 1976? Is this the first Pound crisis? The GBP has experienced many "sterling crises” in the past. For example, Black Wednesday from 1992 and after Brexit in 2016. However, there have been similar crises in the past which are very similar to the current situation. For example, the Liz Truss Budget from 2022 which saw the GBP decline more than 23%. During the Sterling Crisis of 1976 the GBPUSD fell from 2.0231 to 1.5669. Both sterling crises were due to the budget, inflation and rising bond yields. Today’s issues for the GBP and UK are very similar, however, the performance of the GBP will depend on if the new SI contributions triggers lower economic activity, inflation and if the Federal Reserve indeed avoids cutting interest rates in the near future. If inflation rises it will dampen consumer demand and the Bank of England will be forced to pause any rate adjustments. As a result, the economy may contract or stall further pressuring the GBP. However, this cannot yet be certain. KPMG experts anticipate accelerated economic growth this year, supported by monetary policy and increased government spending. They project GDP to rise to 1.7%, more than doubling last year’s 0.8%. This growth, according to their estimates, will be driven by a recovery in consumer spending, expected to increase by 1.8% compared to 1.0% last year. In addition to this, if the Federal Reserve unexpectedly opts for more frequent rate cuts, the GBP and EUR are likely to benefit. When monitoring the price movement and patterns which can be seen in the exchange rate, the decline looks similar to the price movement seen in 2022, during the Truss reign. The price has now fallen below the support level from April 2024. The next support levels can be seen at 1.20391 and 1.17992. Technical analysis for the GBP can also be viewed in HFM’s latest Live Trading Session.   Key Takeaways: The Great British Pound is the worst performing currency of the year so far, having declined by more than 2.00%. A key reason for the GBP’s decline is the latest labor budget, which is driving a selloff in UK bonds. UK 30-year bond yields are at their highest since 1998, while 10-year yields have reached levels last seen during the 2008 banking crisis. Investors reduce exposure to the GBP as the US edges closer to a new president and pro-Dollar supportive measures. The UK labour government will not reconsider higher taxes but may be forced to reduce public spending. Always trade with strict risk management. Your capital is the single most important aspect of your trading business. Please note that times displayed based on local time zone and are from time of writing this report. Click HERE to access the full HFM Economic calendar. Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding of how markets work. Click HERE to register for FREE! Click HERE to READ more Market news. Andria Pichidi HFMarkets Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in Leveraged Products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.