novacane32000 331 posts msg #141188 - Ignore novacane32000 |
1/20/2018 9:26:41 AM
Yes , GUSH gave another short signal and LABD and LABU toggled and switched direction,which I'm ok with. Whipsaws will happen and are part of the game.
The problem is ,the TMV short signal disappeared and now looks like it has been long for over a week which confirms it is impossible to backtest this filter accurately.
Still like the filter very much to help identify a possible reversal in trend.
|
karennma 8,057 posts msg #141189 - Ignore karennma |
1/20/2018 9:29:35 AM
@ Mac, (or anyone)
Re: long x short column in Mac's filters
"set{LONGxSHORT, LONGSHORTa - LONGSHORTb} and add column LONGxSHORT {LONG_x_SHORT}"
What is that for? What does it mean?
|
karennma 8,057 posts msg #141190 - Ignore karennma |
1/20/2018 9:40:08 AM
That's nice to see the color graph at the bottom, but I was trying to display it as columns so I wouldn't have to look at all the charts (i.e., if I have 50 results).
Does anyone know how to fix this, please?
set{longposition, count(E3 > 0,1)}
set{shortposition, count(E3 < 0,1)}
add column longposition
add column shortposition
That doesn't work. But I'm no coding expert, so .... WTH.
TIA!
|
karennma 8,057 posts msg #141192 - Ignore karennma |
1/20/2018 9:47:56 AM
Re: "/* LONGSHORT is number of consecutive days Longposition above (+)/below(-) previous Shortposition */
WHY is this important?
|
karennma 8,057 posts msg #141193 - Ignore karennma |
1/20/2018 10:04:10 AM
Or better still, that vertical red line on the chart on msg #141184 ...
If there were code to tell SF to draw that line when the trend flips .. WOW!
That would be great.
|
Mactheriverrat 3,172 posts msg #141198 - Ignore Mactheriverrat modified |
1/20/2018 3:52:21 PM
The red vertical line can be used in the pop up chart . Just change the color. Long and short is suggested when the dma(8,-5),8) and the cma(DMA(8,-5),8) intersect or make a crossover.
Submit
Submit
Not trying to muddle this thread but I picked up WYNN using this code . over 10% gain in a week. Now like I posted before that there is NO Holy Grail but its not bad trigger I would say.

|
karennma 8,057 posts msg #141202 - Ignore karennma |
1/20/2018 4:45:05 PM
Mactheriverrat
1,363 posts
msg #141198
- Ignore Mactheriverrat
modified 1/20/2018 3:52:21 PM
The red vertical line can be used in the pop up chart . Just change the color. Long and short is suggested when the dma(8,-5),8) and the cma(DMA(8,-5),8) intersect or make a crossover.
=====================================
Red, green, blue ... whatever ... it's not automatic ... correct? I mean in the code, it doesn't say "draw this vertical line when the trend flips from ___ to __.
BTW, HOW do you change the color?
Is there code for that too?
|
karennma 8,057 posts msg #141203 - Ignore karennma |
1/20/2018 4:49:29 PM
** REPOSTING **
karennma
6,868 posts
msg #141190
- Edit message 1/20/2018 9:40:08 AM
That's nice to see the color graph at the bottom, but additionally, I was trying to display it as columns so I wouldn't have to look at all the charts (i.e., if I have 50 results).
Does anyone know how to fix this, please?
set{longposition, count(E3 > 0,1)}
set{shortposition, count(E3 < 0,1)}
add column longposition
add column shortposition
That doesn't work. But I'm no coding expert, so .... WTH.
TIA!
|
davesaint86 726 posts msg #141206 - Ignore davesaint86 |
1/20/2018 6:07:48 PM
Mach - Just got home from skiing. Just reason I asked about the dots is because if you look under Settings I do not see dots listed. I never new dots was a selection. Anyways, I finally found the dots. Follow the dots they will lead you to riches.
|
olathegolf 119 posts msg #141207 - Ignore olathegolf |
1/20/2018 7:08:36 PM
I posted this on 1/12 but I think it's worth posting again.
If you're using DMA, you need to know that it's really not possible to backtest. When glancing at any chart with the long/short triggers, it seems like the holy grail - but on further inspection, you'll notice that the tabular data (when using date offset) does not match the chart.
Here was the SF response to my question:
SF>The tabular value, when using the date offset, shows the DMA value as it was on that date.The issue you are experiencing is related to date offset and the StockFetcher chart that shows a continuous plot of the DMA to the current date.
Further, I found the following link in SF Help:
https://www.stockfetcher.com/help/Negative-Offset-Displaced-Moving-Average/100315
|