Correct. Something like this. Code: { color criteria } if RSIValue > OverBought then SetPlotColor( 1, OverBColor ) else if RSIValue < OverSold then SetPlotColor( 1, OverSColor ) ;
Hi guys, Thanks all for getting back to me! I had a play this evening before looking at these messages and came up with a manual solution. [LegacyColorValue = true]; inputs: UpColor(Green), DownColor(Red); vars: Answer(0); Answer = VWAP_H; if 8.80 (PM High) >= Answer then SetPlotColor(1,DownColor) else SetPlotColor(1,UpColor); Plot1(Answer,"VWAP"); Probably not the cleanest code in the world but seems to work. Thanks again for all the help! Very much appreciated! Many Thanks, Tom
Very cool! It's always great to actually see something you coded work. Now go and automate the PM High stuff ... coding is an addictive little thing; there's always more you'll want to do
It really is a good feeling when it works!! Very true! I've been working on it this evening and making some ground but not there yet. I am able to get the High of a specific time e.g. Market open. But I can't find a way of finding the high of a time range. So looking for the High between PM Start and PM End - Giving me the PM High value. This is what i've got so far, let me know if you guys have any ideas!: [LegacyColorValue = true]; inputs: UpColor(Green), DownColor(Red), StartTime(0905), //UK PM Start EndTime(1430); //UK Open Time vars: Answer(0), PMHigh(0); Answer = VWAP_H; If Time = EndTime then Begin PMHigh = High; End; if PMHigh >= Answer then SetPlotColor(1,DownColor) else SetPlotColor(1,UpColor); Plot1(Answer,"VWAP"); Many Thanks, Tom