StockFetcher Forums · Filter Exchange · QUESTION REGARDING SET COMMAND<< >>Post Follow-up
SAFeTRADE
644 posts
msg #161387
Ignore SAFeTRADE
10/4/2024 11:35:14 PM

WHY DOES STOCKFETCHER NOT LIKE MY SELL COMMAND?
FOR THE LIFE OF ME i CANNOT SEE IT.

Fetcher[SET{A10,CLOSE - MA(10)}
SET{A9,POW(A10,0.50)}
SET{A8,SUM(A9,10)}
SET{A7,A8 / 10}
SET{A6,POW(A7,0.50)}

set{vmult, atr(10) * 2}
set{vstopu1a, close 10 day low + A6}
set{vstopu2a, close + A6}
set{vstoph, min(vstopu1a 1 day ago,vstopu2a)}

set{vstopu1a2, close 10 day high - A6}
set{vstopu2a2, close - A6}
set{vstopl, max(vstopu1a2 1 day ago,vstopu2a2)}
SET{MIDX,VSTOPH + VSTOPL}
SET{MID,MIDX / 2}
SET{SELL,COUNT(CLOSE CROSSED BELOW MID,1)} /* <----- THIS ONE */
SET{BUY,COUNT(CLOSE CROSSED ABOVE VSTOPH,1)}

SYMLIST(SPY,NVDA,MSFT,META,WMT,GOOG,)
DRAW VSTOPL ON PLOT PRICE
DRAW VSTOPH ON PLOT PRICE
DRAW OUT ON PLOT PRICE
DRAW EMA(11)
DRAW BUY
DRAW SELL
ADD COLUMN BUY
ADD COLUMN SELL
DRAW MACD(12,26,9)
]



wantonellis
161 posts
msg #161388
Ignore wantonellis
10/5/2024 11:55:30 AM

SET{SELL,COUNT(CLOSE CROSSED BELOW MID,1)} /* <----- THIS ONE */

It appears you can't use a variable as the object in crossed below.

If I change MID to something standard like ema(5) the filter works.

SET{SELL,COUNT(CLOSE CROSSED BELOW ema(5),1)} /* <----- THIS ONE */

SAFeTRADE
644 posts
msg #161389
Ignore SAFeTRADE
10/5/2024 12:46:38 PM

Why does this work? Stockfetcher why does not the mid in the first filter not work.

Fetcher[SET{HL,HIGH 10 DAY LOW + LOW 10 DAY LOW}
SET{MID,HL / 2}
SET{BUY,COUNT(CLOSE CROSSED ABOVE MID,1)}
DRAW MID ON PLOT PRICE
SYMLIST(SPY)
DRAW BUY
]



StockFetcher Forums · Filter Exchange · QUESTION REGARDING SET COMMAND<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.