From f74b1d466c52e198340c999ab9ad50895576263f Mon Sep 17 00:00:00 2001 From: Sean Date: Wed, 22 Oct 2025 15:59:42 -0400 Subject: [PATCH] Update NFLX and reorder GetLatestPrice to execute Robinhood first because BarChart was giving a wonky low price (1.00) for NFLX. --- MarketData/MarketData/Models/CMT20200817.TXT | 10 +++++----- MarketData/MarketDataLib/Helper/MarketDataHelper.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/MarketData/MarketData/Models/CMT20200817.TXT b/MarketData/MarketData/Models/CMT20200817.TXT index 14bf191..926ee0d 100755 --- a/MarketData/MarketData/Models/CMT20200817.TXT +++ b/MarketData/MarketData/Models/CMT20200817.TXT @@ -1,16 +1,16 @@ CMTSESSIONv1.00 -LastUpdated=10/21/2025 9:06:03 PM +LastUpdated=10/22/2025 9:56:07 AM TradeDate=10/21/2025 StartDate=1/1/0001 -AnalysisDate=10/21/2025 -CashBalance=2781.979999999999 +AnalysisDate=10/22/2025 +CashBalance=2879.819999999999 NonTradeableCash=6456.42 -SuspendTrading=False|UsePriceSlopeIndicator=True|UsePriceSlopeIndicatorDays=252|AnalysisDate=10/21/2025|BetaMonths=6|TradeDate=10/21/2025|MarketCapLowerLimit=500000000|SidewaysDetection=False|SidewaysAfterDays=30|PriceTrendDays=20|CheckOutliersInReturnStream=True|DailyReturnLimit=0.25|MaxDailyPositions=3|MaxOpenPositions=3|NoTradeSymbols=CODYY,MARUY,CSTM,CS,NATI,QADA,CRTO,GTBIF,CLCT,PRSC,CMD,STAY,GBTC,YOKU,PNY,RFMD,ASAZY,USMO,VNR,STB,XIV,SYNT,DFP|OnlyTradeSymbols=|MinRSI=70|InitialCash=10000|TotalRiskPercentDecimal=0.05|PositionRiskPercentDecimal=0.12|EquityOnly=False|MinPercentReturnProximityTo52WeekHigh=30|MinPercentReturnOver52WeekLow=80|ProfitMarginCheck=True|EPSCheck=True|MinDaysBetweenReholding=30|LiquidityCheck=True|MinVolume=1000|DMA200Horizon=15|MinDaysBetweenStopAdjustments=30|MinDaysBetweenInitialStopAdjustment=5|MaxPricingExceptions=3|MACDSetup=(12,26,9)|MACDSignalDays=5|MACDRejectStrongSells=True|MACDRejectWeakSells=True|UseMarketIndicator=True|Benchmark=SPY|BenchmarkMovingAverageDays=200|BenchmarkMovingAverageHorizon=5|UseMarketIndicatorVolatility=True|UseMarketIndicatorVolatilityHorizon=60|UseMarketIndicatorVolatilityBenchmark=^VIX|UseStopLimitScaling=True|StopLimitScalingType=AverageTrueRange|StopLimitScalingVolatilityDays=30|SellOnDMABreak=True|DMABreakValues=200|DMABreakForceBreak=False|EntryType=OverExtended,MVP,PriceTrend,VolumeTrend|EntryHorizon=30|CandidateExpiryDays=180|VolumeTrendDays=10|ChannelBreakoutHorizon=40|UseOverExtendedIndicatorDays=45|UseOverExtendedIndicatorViolationThreshhold=1|UseOverExtendedIndicatorMarginPercent=1|MaxBeta=10|UseMaxBeta=False|UseProfitMaximization=True|UseProfitMaximizationExpression=R_THRESSHOLD=4;MAX_ATR=3;MULTIPLIER=MAX_ATR;IF(RMultiple>=R_THRESSHOLD){MULTIPLIER=1.2;}|UseTradeOnlySectors=False|UseTradeOnlySectorsSectors=Healthcare,Technology,Basic Materials,Consumer Defensive,Industrials|EvaluateStopOnUpTrend=False +SuspendTrading=False|UsePriceSlopeIndicator=True|UsePriceSlopeIndicatorDays=252|AnalysisDate=10/22/2025|BetaMonths=6|TradeDate=10/21/2025|MarketCapLowerLimit=500000000|SidewaysDetection=False|SidewaysAfterDays=30|PriceTrendDays=20|CheckOutliersInReturnStream=True|DailyReturnLimit=0.25|MaxDailyPositions=3|MaxOpenPositions=3|NoTradeSymbols=CODYY,MARUY,CSTM,CS,NATI,QADA,CRTO,GTBIF,CLCT,PRSC,CMD,STAY,GBTC,YOKU,PNY,RFMD,ASAZY,USMO,VNR,STB,XIV,SYNT,DFP|OnlyTradeSymbols=|MinRSI=70|InitialCash=10000|TotalRiskPercentDecimal=0.05|PositionRiskPercentDecimal=0.12|EquityOnly=False|MinPercentReturnProximityTo52WeekHigh=30|MinPercentReturnOver52WeekLow=80|ProfitMarginCheck=True|EPSCheck=True|MinDaysBetweenReholding=30|LiquidityCheck=True|MinVolume=1000|DMA200Horizon=15|MinDaysBetweenStopAdjustments=30|MinDaysBetweenInitialStopAdjustment=5|MaxPricingExceptions=3|MACDSetup=(12,26,9)|MACDSignalDays=5|MACDRejectStrongSells=True|MACDRejectWeakSells=True|UseMarketIndicator=True|Benchmark=SPY|BenchmarkMovingAverageDays=200|BenchmarkMovingAverageHorizon=5|UseMarketIndicatorVolatility=True|UseMarketIndicatorVolatilityHorizon=60|UseMarketIndicatorVolatilityBenchmark=^VIX|UseStopLimitScaling=True|StopLimitScalingType=AverageTrueRange|StopLimitScalingVolatilityDays=30|SellOnDMABreak=True|DMABreakValues=200|DMABreakForceBreak=False|EntryType=OverExtended,MVP,PriceTrend,VolumeTrend|EntryHorizon=30|CandidateExpiryDays=180|VolumeTrendDays=10|ChannelBreakoutHorizon=40|UseOverExtendedIndicatorDays=45|UseOverExtendedIndicatorViolationThreshhold=1|UseOverExtendedIndicatorMarginPercent=1|MaxBeta=10|UseMaxBeta=False|UseProfitMaximization=True|UseProfitMaximizationExpression=R_THRESSHOLD=4;MAX_ATR=3;MULTIPLIER=MAX_ATR;IF(RMultiple>=R_THRESSHOLD){MULTIPLIER=1.2;}|UseTradeOnlySectors=False|UseTradeOnlySectorsSectors=Healthcare,Technology,Basic Materials,Consumer Defensive,Industrials|EvaluateStopOnUpTrend=False PricingExceptions=0 TotalActivePositions=3 Symbol=DASH|PurchaseDate=10/20/2025 12:00:00 AM|SellDate=1/1/0001 12:00:00 AM|Shares=14|PurchasePrice=265.85|CurrentPrice=261.97|Exposure=3721.9000000000005|MarketValue=3667.5800000000004|GainLoss=-54.320000000000164|GainLossPcnt=-0.014594696257287987|PositionRiskDecimal=0.12|R=31.8444|C=468.074|P=14.698785343733906|InitialStopLimit=233.95|TrailingStopLimit=233.95|TotalRiskExposure=445.8216|RMultiple=-0.12R|Volatility=5.874480724334717|Volume=0|LastStopAdjustment=1/1/0001 12:00:00 AM|Comment=Price changed on 10/21/2025 from $265.37 to $265.85 Symbol=CX|PurchaseDate=10/20/2025 12:00:00 AM|SellDate=1/1/0001 12:00:00 AM|Shares=144|PurchasePrice=9.54|CurrentPrice=9.16|Exposure=1373.7599999999998|MarketValue=1319.04|GainLoss=-54.7199999999998|GainLossPcnt=-0.039832285115303845|PositionRiskDecimal=0.12|R=1.1472|C=166.14399999999998|P=144.82566248256623|InitialStopLimit=8.4|TrailingStopLimit=8.4|TotalRiskExposure=165.1968|RMultiple=-0.33R|Volatility=0.16408906877040863|Volume=0|LastStopAdjustment=1/1/0001 12:00:00 AM|Comment=Price changed on 10/21/2025 from $9.56 to $9.54 -Symbol=NFLX|PurchaseDate=10/21/2025 12:00:00 AM|SellDate=1/1/0001 12:00:00 AM|Shares=1|PurchasePrice=1241.35|CurrentPrice=1241.35|Exposure=1241.35|MarketValue=1241.35|GainLoss=0|GainLossPcnt=0|PositionRiskDecimal=0.12|R=148.962|C=199.30799999999996|P=1.3379788133886492|InitialStopLimit=1092.388|TrailingStopLimit=1092.388|TotalRiskExposure=148.962|RMultiple=0.00R|Volatility=19.877721786499|Volume=0|LastStopAdjustment=1/1/0001 12:00:00 AM +Symbol=NFLX|PurchaseDate=10/21/2025 12:00:00 AM|SellDate=1/1/0001 12:00:00 AM|Shares=1|PurchasePrice=1143.51|CurrentPrice=1241.35|Exposure=1143.51|MarketValue=1241.35|GainLoss=97.83999999999992|GainLossPcnt=0.08556112320836715|PositionRiskDecimal=0.12|R=148.962|C=199.30799999999996|P=1.3379788133886492|InitialStopLimit=1006.29|TrailingStopLimit=1006.29|TotalRiskExposure=148.962|RMultiple=0.66R|Volatility=19.877721786499|Volume=0|LastStopAdjustment=1/1/0001 12:00:00 AM|Comment=Price changed on 10/22/2025 from $1,241.35 to $1,143.51 TotalPositions=129 Symbol=CDNS|PurchaseDate=8/25/2020 12:00:00 AM|SellDate=9/3/2020 12:00:00 AM|Shares=16|PurchasePrice=111.82|CurrentPrice=109.57|Exposure=1789.12|MarketValue=1753.12|GainLoss=-36|GainLossPcnt=-0.020121624038633518|PositionRiskDecimal=0.12|R=13.3512|C=225.6365|P=16.900091377554077|InitialStopLimit=97.9088|TrailingStopLimit=109.599856939316|TotalRiskExposure=213.6192|RMultiple=-0.17R|Volatility=2.3209912776947|Volume=1767980|LastStopAdjustment=9/2/2020 12:00:00 AM|Comment=Manual close. Symbol=LULU|PurchaseDate=8/28/2020 12:00:00 AM|SellDate=9/4/2020 12:00:00 AM|Shares=3|PurchasePrice=377.5|CurrentPrice=370.23|Exposure=1132.5|MarketValue=1110.69|GainLoss=-21.809999999999945|GainLossPcnt=-0.019258278145695317|PositionRiskDecimal=0.12|R=45.2976|C=136.6285|P=3.016241478577231|InitialStopLimit=332.1824|TrailingStopLimit=372.562428512573|TotalRiskExposure=135.89280000000002|RMultiple=-0.16R|Volatility=25.858959197998|Volume=2871665|LastStopAdjustment=9/2/2020 12:00:00 AM|Comment=Manual close. diff --git a/MarketData/MarketDataLib/Helper/MarketDataHelper.cs b/MarketData/MarketDataLib/Helper/MarketDataHelper.cs index c7a9987..ea51b86 100755 --- a/MarketData/MarketDataLib/Helper/MarketDataHelper.cs +++ b/MarketData/MarketDataLib/Helper/MarketDataHelper.cs @@ -4569,7 +4569,7 @@ namespace MarketData.Helper return null; } DateTime currentMarketDate=PremarketDA.GetLatestMarketDate(); - LatestPriceDelegate[] latestPriceDelegates=new LatestPriceDelegate[]{GetLatestPriceBarChart,GetLatestPriceYahoo,GetLatestPriceRobinhood,GetLatestPriceGoogle}; + LatestPriceDelegate[] latestPriceDelegates=new LatestPriceDelegate[]{GetLatestPriceRobinhood,GetLatestPriceBarChart,GetLatestPriceYahoo,GetLatestPriceGoogle}; Price latestPrice=null; foreach(LatestPriceDelegate latestPriceDelegate in latestPriceDelegates) {