top of page

Easylanguage Code for Testing Big VIX Divergences

Capstone Trading

On October 7, 2024, we noticed the S&P 500 was only about 1.5% off of its recent highs from September 26, 2024 while the VIX was up over 50% from its lows on September 26, 2024. This stood out as a big VIX Divergence. You would think this would be a leading indicator and the market would potentially sell off on this technical divergence. The sample size is very small and not indicative of a good sell signal.


The code to test this idea is below.


//** Copyright (c) 1998-2022 Capstone Trading Systems All rights reserved. **

//On October 7, 2024, we noticed the S&P 500 was only about 1.5% off of its recent highs from //September 26,2024 while the VIX was up over 50% from its lows on September 26, 2024.

//Data1 is @ES Daily and data2 is $VIX.X Daily


Value1=High of data2;

Value2=Lowest(Low of data2,7) of data2;


If Value1 > 1.5*Value2

and Close > .985*(Highest(H,7))

Then sell short this bar on Close;


SetStopContract;

SetStopLoss(3000);

SetProfitTarget(2000);


Comentarios


EXCLUSIVE MARKET AND STRATEGY UPDATES

 Capstone Trading Systems © 2025. All Rights Reserved.

U.S. Government Required Disclaimer - Commodity Futures Trading Commission. Futures and options trading has large potential rewards, but also large potential risk. You must be aware of the risks and be willing to accept them in order to invest in the futures and options markets. Don't trade with money you can't afford to lose. This website is neither a solicitation nor an offer to Buy/Sell futures or options. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this website. The past performance of any trading system or methodology is not necessarily indicative of future results.

CFTC RULE 4.41 - HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY, SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.

bottom of page