StockFetcher Forums · General Discussion · Why don't this work?<< >>Post Follow-up
freshpotato
36 posts
msg #58361
Ignore freshpotato
12/20/2007 10:08:39 PM

set{High%, 150}
set{Low%, 140}
and close is between Low% and High%

If I do and close is between 140 and 150 that's fine

TheRumpledOne
6,358 posts
msg #58364
Ignore TheRumpledOne
modified
12/21/2007 12:16:39 AM

Fetcher[
set{ H1, 150 }
set{ L1, 140 }

CLOSE BELOW H1
CLOSE ABOVE L1
]



Rule of thumb:

DON'T USE SPECIAL CHARACTERS OR RESERVED WORDS IN VARIABLE NAMES.

But I don't think that is the real problem. SF seems to have problems SOMETIMES when you assign numbers in SET statements.

nikoschopen
2,824 posts
msg #58367
Ignore nikoschopen
12/21/2007 2:28:47 AM

Well, call it a fuzzy logic. It's my understanding that you can't assign a string value when using the "between" modifier. Geez, talk about no strings attached.

:?)

guru_trader
485 posts
msg #58368
Ignore guru_trader
12/21/2007 3:30:17 AM

I have noticed the same problem when using numbers in set statements ... best to avoid them.

TheRumpledOne
6,358 posts
msg #58377
Ignore TheRumpledOne
12/21/2007 9:24:25 AM

Well, call it a fuzzy logic. It's my understanding that you can't assign a string value when using the "between" modifier. Geez, talk about no strings attached.

..........................

You mean you can't use a variable, right?

nikoschopen
2,824 posts
msg #58393
Ignore nikoschopen
12/21/2007 3:36:57 PM

Any non-numeric value, including a variable from predefined set, can be considered as a string.

This will work:
price is between 140 and 150

This will NOT work:
price is between MA(20) and MA(50)

StockFetcher Forums · General Discussion · Why don't this work?<< >>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 2016 - 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