StockFetcher Forums · General Discussion · Help please<< >>Post Follow-up
7 posts
msg #66104
Ignore meirkl
8/12/2008 7:47:11 AM

I want to cakcukate safe stop loss by the following steps and need help how to use SF language:

find out the days in them the price is blow ma(22) within the last 15 days.

sum up, ob those days, in every day the difference between the ma(22) and the low of this day.
now to divide the sum by the number of the days that were found.
multiply the last result by 2 or 3.
Now:deduct the result from yesterday close.

Please help me if you can.

485 posts
msg #66287
Ignore guru_trader
8/16/2008 5:24:23 PM

To get you started ...

/* Basic Criteria */
and not otcbb
and avgvol(100) > 543210
and close > 0.5
and chart-length is 45
and date offset 0

/* Safe Stop Loss per Meirkl */

and draw ma(22)
and close < ma(22)

and set{days_below_ma22,count( close < ma(22), 15)}
and add column days_below_ma22
and draw days_below_ma22

and set{ma22_minus_low, ma(22) - low}
and add column ma22_minus_low
and draw ma22_minus_low

and set{sum_ma22_minus_low, sum(ma22_minus_low, days_below_ma22)}
and add column sum_ma22_minus_low
and draw sum_ma22_minus_low

and set{div_ma22_minus_low, ma22_minus_low / days_below_ma22 }
and add column div_ma22_minus_low
and draw div_ma22_minus_low

and set{mult_div_ma22_minus_low, div_ma22_minus_low * 2.5}
and add column mult_div_ma22_minus_low
and draw mult_div_ma22_minus_low

and set{meirkl_safe_stop_loss, close - mult_div_ma22_minus_low}
and add column meirkl_safe_stop_loss
and draw meirkl_safe_stop_loss on plot price

I left the columns and drawings so you could check each step of the filter

7 posts
msg #66317
Ignore meirkl
8/17/2008 12:39:06 PM

I'll check it.

StockFetcher Forums · General Discussion · Help please<< >>Post Follow-up

*** Disclaimer *** 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. does not recommend particular securities., 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 2018 - 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