Ok. And now what was your logical reason for wanting to not run theses lines of code.
See if there is some logical reasoning we can use a if statement.
Like for example If Today is Monday do not run these lines of code.
Is there some standard logic here?
Or if Range("A1") value="Mom" do not run these line of code.
Some of these columns contain indexes (SMA10 - Simple Moving Average for 10 days; SMA30 - for 30 days (in technical analysis of the stock price graphs there are dozens of various indexes)), others designed for BUY/SELL signals (based on conditions like you mentioned: =IF(AND(F2>I2,F3<I3,I2>J2),"BUY",IF(AND(F2<I2,F3>I3),"SELL","")).
[TABLE="width: 762"]
<colgroup><col><col><col span="8"><col></colgroup><tbody>[TR]
[TD]Security Code[/TD]
[TD]Date[/TD]
[TD]Open[/TD]
[TD]High[/TD]
[TD]Low[/TD]
[TD]Close[/TD]
[TD]Adj Close[/TD]
[TD]Volume[/TD]
[TD]SMA10[/TD]
[TD]SMA30[/TD]
[TD]BUY/SELL SMA10[/TD]
[/TR]
[TR]
[TD]ABB[/TD]
[TD="align: right"]01-Feb-2019[/TD]
[TD="align: right"]€19.31[/TD]
[TD="align: right"]€19.36[/TD]
[TD="align: right"]€19.22[/TD]
[TD="align: right"]€19.24[/TD]
[TD="align: right"]€19.24[/TD]
[TD="align: right"]2,671,100[/TD]
[TD="align: right"]€19.22[/TD]
[TD="align: right"]€19.11[/TD]
[TD]BUY[/TD]
[/TR]
[TR]
[TD]ABB[/TD]
[TD="align: right"]31-Jan-2019[/TD]
[TD="align: right"]€19.09[/TD]
[TD="align: right"]€19.17[/TD]
[TD="align: right"]€18.96[/TD]
[TD="align: right"]€19.15[/TD]
[TD="align: right"]€19.15[/TD]
[TD="align: right"]9,149,300[/TD]
[TD="align: right"]€19.21[/TD]
[TD="align: right"]€19.12[/TD]
[TD]SELL[/TD]
[/TR]
[TR]
[TD]ABB[/TD]
[TD="align: right"]30-Jan-2019[/TD]
[TD="align: right"]€19.12[/TD]
[TD="align: right"]€19.39[/TD]
[TD="align: right"]€19.06[/TD]
[TD="align: right"]€19.36[/TD]
[TD="align: right"]€19.36[/TD]
[TD="align: right"]4,633,000[/TD]
[TD="align: right"]€19.21[/TD]
[TD="align: right"]€19.12[/TD]
[TD]BUY[/TD]
[/TR]
[TR]
[TD]ABB[/TD]
[TD="align: right"]29-Jan-2019[/TD]
[TD="align: right"]€19.17[/TD]
[TD="align: right"]€19.25[/TD]
[TD="align: right"]€19.02[/TD]
[TD="align: right"]€19.02[/TD]
[TD="align: right"]€19.02[/TD]
[TD="align: right"]4,735,600[/TD]
[TD="align: right"]€19.20[/TD]
[TD="align: right"]€19.12[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABB[/TD]
[TD="align: right"]28-Jan-2019[/TD]
[TD="align: right"]€19.15[/TD]
[TD="align: right"]€19.23[/TD]
[TD="align: right"]€19.02[/TD]
[TD="align: right"]€19.21[/TD]
[TD="align: right"]€19.21[/TD]
[TD="align: right"]2,334,600[/TD]
[TD="align: right"]€19.24[/TD]
[TD="align: right"]€19.12[/TD]
[TD]SELL[/TD]
[/TR]
[TR]
[TD]ABB[/TD]
[TD="align: right"]25-Jan-2019[/TD]
[TD="align: right"]€19.42[/TD]
[TD="align: right"]€19.57[/TD]
[TD="align: right"]€19.41[/TD]
[TD="align: right"]€19.49[/TD]
[TD="align: right"]€19.49[/TD]
[TD="align: right"]1,979,000[/TD]
[TD="align: right"]€19.26[/TD]
[TD="align: right"]€19.12[/TD]
[TD]BUY[/TD]
[/TR]
</tbody>[/TABLE]
But these are just different algorithms which I'm trying to figure out empirically. That is why they need frequent tweaking. The logic is based on position of current price in relation to various types of indexes, and interrelationship between indexes. Unfortunately maths and logic are not sufficient to make BUY/SELL decisions, many things depend on shape of the linear indexes on the graphs. Conditions like "when price crosses SMA10 above or below" are not enough because there will be too many false signals. That is why all signals after selection must be validated by checking graphs of these stocks. The aim of tweaking is to reduce number of false signals. What you suggesting I'm already using in algorithm formulas. Those "rigid" logical conditions would be more applicable during reverse backtesting, when you want to test profitability of your trading strategy/algorithm based on historical price data, but I'm just making first steps in programming and it would be too complicated for me.
Thank for your willingness to help anyway.